diff --git a/Examples/OBIA/ImageToLabelToImage.cxx b/Examples/OBIA/ImageToLabelToImage.cxx index bc04b9c3399fc5f46deb80416f09479e9cb5aba2..be4d21091487e31e2bfafb6b0274dcb96fec2524 100755 --- a/Examples/OBIA/ImageToLabelToImage.cxx +++ b/Examples/OBIA/ImageToLabelToImage.cxx @@ -124,7 +124,7 @@ int main(int argc, char * argv[]) // Software Guide : BeginLatex // - // The output can be passed to a writer.The invocation + // The output can be passed to a writer. The invocation // of the \code{Update()} method on the writer triggers the // execution of the pipeline. // @@ -158,6 +158,20 @@ int main(int argc, char * argv[]) prettyWriter->SetInput( rescaler->GetOutput() ); prettyWriter->Update(); + // Software Guide : BeginLatex + // + // Figure~\ref{fig:ImageToLabel} shows effect of transforming an + // image into a label object map and back to an image + // + // \begin{figure} + // \center + // \includegraphics[width=0.44\textwidth]{OBIAI2L2IInputPretty.eps} + // \includegraphics[width=0.44\textwidth]{OBIAI2L2IOutputPretty.eps} + // \itkcaption[Image to Label Object Map]{transforming an + // image (left) into a label object map and back to an image (right).} + // \label{fig:ImageToLabel} + // \end{figure} + // Software Guide : EndLatex + return 0; } - diff --git a/Examples/OBIA/ShapeAttributeComputation.cxx b/Examples/OBIA/ShapeAttributeComputation.cxx index b8d94a8ab14fa5d371d0ed6392e67518f69fab3d..a5e524642e1e55538511a2599cf48586bfd91457 100755 --- a/Examples/OBIA/ShapeAttributeComputation.cxx +++ b/Examples/OBIA/ShapeAttributeComputation.cxx @@ -24,8 +24,9 @@ // Software Guide : BeginLatex // // This basic example shows how compute shape attributes at the object level. -// The input image is firstly translate in a set of regions (of \doxygen{itk}{ShapeLabelObject}) -// and some attributes values of each object are then save to an ASCII file. +// The input image is firstly translated in a set of regions (of +// \doxygen{itk}{ShapeLabelObject}), some attributes values of each +// object are computed and then save to an ASCII file. // // Software Guide : EndLatex @@ -57,13 +58,14 @@ int main(int argc, char * argv[]) // Software Guide : EndLatex // Software Guide : BeginCodeSnippet - const int dim = 2; - typedef unsigned long PixelType; - typedef itk::Image< PixelType, dim > ImageType; + const int dim = 2; + typedef unsigned long PixelType; + typedef itk::Image< PixelType, dim > ImageType; typedef unsigned long LabelType; typedef itk::ShapeLabelObject< LabelType, dim > LabelObjectType; typedef itk::LabelMap< LabelObjectType > LabelMapType; - typedef itk::LabelImageToLabelMapFilter< ImageType, LabelMapType > ConverterType; + typedef itk::LabelImageToLabelMapFilter + < ImageType, LabelMapType > ConverterType; // Software Guide : EndCodeSnippet @@ -152,5 +154,4 @@ int main(int argc, char * argv[]) // Software Guide : EndCodeSnippet return EXIT_SUCCESS; -} - +}