Commit cf7249be authored by Emmanuel Christophe's avatar Emmanuel Christophe

DOC: Software guide typos + figure

parent 779c9818
......@@ -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;
}
......@@ -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;
}
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment