Skip to content
Snippets Groups Projects
Commit 62cffc41 authored by Emmanuel Christophe's avatar Emmanuel Christophe
Browse files

DOC: correct typo for Software guide

parent 12a89d33
No related branches found
No related tags found
No related merge requests found
......@@ -42,9 +42,10 @@
//
// In some situation, it is desirable to represent a gray level image in color for easier
// interpretation. This is particularly the case if pixel values in the image are used
// to represent some data such as elevation, deformation map, interferogram.
//
// In this case, it is important to ensure that similar values will get similar colors.
// to represent some data such as elevation, deformation map,
// interferogram. In this case, it is important to ensure that similar
// values will get similar colors. You can notice how this requirement
// differ from the previous case.
//
// The following example illustrates the use of the \doxygen{otb}{DEMToImageGenerator} class
// combined with the \doxygen{otb}{ScalarToRainbowRGBPixelFunctor}. You can refer to the
......@@ -163,6 +164,13 @@ int main(int argc, char * argv[])
colormapper->SetColormap(colormap);
}
}
// Software Guide : BeginLatex
//
// And we connect the color mapper filter with the filter producing
// the image of the DEM:
//
// Software Guide : EndLatex
// Software Guide : BeginCodeSnippet
colormapper->SetInput(demToImage->GetOutput());
......
......@@ -30,13 +30,13 @@
// Software Guide : BeginLatex
//
// Some algorithms produce as an output an indexed image. In such images,
// Some algorithms produce an indexed image as output. In such images,
// each pixel is given a value according to the region number it belongs to.
// This value starting at 0 or 1 is usually an integer value.
// Often, such images are produced by segmentation or classification algorithm.
// Often, such images are produced by segmentation or classification algorithms.
//
// If such regions are easy to manipulate, as it is easier to compare two integers
// than a RGB value, it is different when it comes to displaying the results.
// If such regions are easy to manipulate -- it is easier and faster to compare two integers
// than a RGB value -- it is different when it comes to displaying the results.
//
// Here we present a convient way to convert such indexed image to a color image. In
// such conversion, it is important to ensure that neighborhood region, which are
......
......@@ -50,7 +50,7 @@
// captured by the satellite with those captured by your eye: thus matching the red band
// with the red color, etc.
//
// Some satellite (SPOT 5 is an example) do not acquire all the {\em human} spectral bands:
// Some satellites (SPOT 5 is an example) do not acquire all the {\em human} spectral bands:
// the blue can be missing and replaced by some other wavelength of interest for a specific application.
// In these situations, another mapping has to be created. That's why, the vegetation often appears in
// red in satellite images (see on left of figure~\ref{fig:PRINTABLE_FILTER}).
......
......@@ -30,8 +30,9 @@
// Software Guide : BeginLatex
//
// Satellite images are commonly coded on more that 8 bits. On the opposite, image formats
// use for printing and display are usually limited to 8 bits. We need to convert the value
// On one hand, satellite images are commonly coded on more that 8 bits to provide
// the dynamic range required from shadows to clouds. On the other hand, image formats
// in use for printing and display are usually limited to 8 bits. We need to convert the value
// to enable a proper display. This is usually done using linear scaling. Of course, you have
// to be aware that some information is lost in the process.
//
......@@ -91,8 +92,9 @@ int main(int argc, char * argv[])
writer->Update();
// Software Guide : BeginLatex
// Figure~\ref{fig:SCALING_FILTER} shows the difference between a proper scaling and
// a simple truncation of the value
// Figure~\ref{fig:SCALING_FILTER} illustrates the difference between a proper scaling and
// a simple truncation of the value and demonstrates why it is
// important to keep this in mind.
// \begin{figure}
// \center
// \includegraphics[width=0.44\textwidth]{QB_Toulouse_Ortho_PAN_casted.eps}
......
......@@ -217,10 +217,8 @@ int main(int argc, char* argv[])
// SoftwareGuide : EndLatex
// Software Guide : BeginCodeSnippet
typedef MyChangeDetectorImageFilter<
InputImageType1,
InputImageType2,
ChangeImageType> FilterType;
typedef MyChangeDetectorImageFilter<InputImageType1,InputImageType2,
ChangeImageType> FilterType;
// Software Guide : EndCodeSnippet
ReaderType1::Pointer reader1 = ReaderType1::New();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment