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

DOC: Software guide typos + figure

parent 779c9818
No related branches found
No related tags found
No related merge requests found
...@@ -124,7 +124,7 @@ int main(int argc, char * argv[]) ...@@ -124,7 +124,7 @@ int main(int argc, char * argv[])
// Software Guide : BeginLatex // 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 // of the \code{Update()} method on the writer triggers the
// execution of the pipeline. // execution of the pipeline.
// //
...@@ -158,6 +158,20 @@ int main(int argc, char * argv[]) ...@@ -158,6 +158,20 @@ int main(int argc, char * argv[])
prettyWriter->SetInput( rescaler->GetOutput() ); prettyWriter->SetInput( rescaler->GetOutput() );
prettyWriter->Update(); 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; return 0;
} }
...@@ -24,8 +24,9 @@ ...@@ -24,8 +24,9 @@
// Software Guide : BeginLatex // Software Guide : BeginLatex
// //
// This basic example shows how compute shape attributes at the object level. // 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}) // The input image is firstly translated in a set of regions (of
// and some attributes values of each object are then save to an ASCII file. // \doxygen{itk}{ShapeLabelObject}), some attributes values of each
// object are computed and then save to an ASCII file.
// //
// Software Guide : EndLatex // Software Guide : EndLatex
...@@ -57,13 +58,14 @@ int main(int argc, char * argv[]) ...@@ -57,13 +58,14 @@ int main(int argc, char * argv[])
// Software Guide : EndLatex // Software Guide : EndLatex
// Software Guide : BeginCodeSnippet // Software Guide : BeginCodeSnippet
const int dim = 2; const int dim = 2;
typedef unsigned long PixelType; typedef unsigned long PixelType;
typedef itk::Image< PixelType, dim > ImageType; typedef itk::Image< PixelType, dim > ImageType;
typedef unsigned long LabelType; typedef unsigned long LabelType;
typedef itk::ShapeLabelObject< LabelType, dim > LabelObjectType; typedef itk::ShapeLabelObject< LabelType, dim > LabelObjectType;
typedef itk::LabelMap< LabelObjectType > LabelMapType; typedef itk::LabelMap< LabelObjectType > LabelMapType;
typedef itk::LabelImageToLabelMapFilter< ImageType, LabelMapType > ConverterType; typedef itk::LabelImageToLabelMapFilter
< ImageType, LabelMapType > ConverterType;
// Software Guide : EndCodeSnippet // Software Guide : EndCodeSnippet
...@@ -152,5 +154,4 @@ int main(int argc, char * argv[]) ...@@ -152,5 +154,4 @@ int main(int argc, char * argv[])
// Software Guide : EndCodeSnippet // Software Guide : EndCodeSnippet
return EXIT_SUCCESS; return EXIT_SUCCESS;
} }
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