Request for changes-109: Refactor PixelValue application

From OTBWiki
Jump to: navigation, search

[Request for Changes - 109] Refactor PixelValue application



This is a refactoring of the application PixelValue aiming at adding new ways to locate the pixel.


There is two new coordinates space that can be chosen in the application. Either in the physical space attached to the image, or with an EPSG code. Error message has also been improved in order to give the definition domain of the input image in the chosen mode.

Implementation details

Classes and files

M       Modules/Applications/AppImageUtils/app/otbPixelValue.cxx
M       Modules/Applications/AppImageUtils/test/CMakeLists.txt


No impact on other application has been made. The api is not changed as the default mode is the index mode (the only one available before the refactoring).


Two new tests have been made in order to test the modes phy and epsg :

  • apTvUtPixelValuePhys
  • apTvUtPixelValueEpsg

The index test has been renamed : apTvUtPixelValueIndex.


This application gives the value of a selected pixel. There are three ways of designate a pixel, with its index, its physical coordinate (in the physical space attached to the image), and with geographical coordinate system. Coordinates will be interpreted differently depending on which mode is chosen.

Additional notes

List remaining open issues if any, and additional notes.