Commit b2b441d8 authored by Manuel Grizonnet's avatar Manuel Grizonnet

STY: kwstyle compliant

parent 93e9ff5f
......@@ -62,12 +62,12 @@ int main(int argc, char * argv[])
// Software Guide : EndLatex
// Software Guide : BeginCodeSnippet
const int dim = 2;
typedef unsigned short PixelType;
typedef otb::Image< PixelType, dim > ImageType;
const int dim = 2;
typedef unsigned short PixelType;
typedef otb::Image< PixelType, dim > ImageType;
// Software Guide : EndCodeSnippet
typedef itk::LabelObject< PixelType, dim > LabelObjectType;
typedef itk::LabelMap< LabelObjectType > LabelMapType;
typedef itk::LabelMap< LabelObjectType > LabelMapType;
// Software Guide : BeginLatex
//
......@@ -138,9 +138,9 @@ int main(int argc, char * argv[])
// Software Guide : EndCodeSnippet
// Pretty image creation for the printing
typedef otb::Image<unsigned char, dim> OutputPrettyImageType;
typedef otb::ImageFileWriter<OutputPrettyImageType> WriterPrettyType;
typedef itk::RescaleIntensityImageFilter< ImageType, OutputPrettyImageType> RescalerType;
typedef otb::Image<unsigned char, dim> OutputPrettyImageType;
typedef otb::ImageFileWriter<OutputPrettyImageType> WriterPrettyType;
typedef itk::RescaleIntensityImageFilter< ImageType, OutputPrettyImageType> RescalerType;
RescalerType::Pointer rescaler = RescalerType::New();
......@@ -160,9 +160,3 @@ int main(int argc, char * argv[])
return 0;
}
......@@ -66,8 +66,8 @@ int main(int argc, char * argv[])
const char * infname = argv[1];
const char * outfname = argv[2];
// Software Guide : BeginLatex
//
// Software Guide : BeginLatex
//
// The image types are defined using pixel types and
// dimension. The input image is defined as an \doxygen{itk}{Image},
// the output is a \doxygen{otb}{VectorData}.
......@@ -75,10 +75,10 @@ int main(int argc, char * argv[])
// Software Guide : EndLatex
// Software Guide : BeginCodeSnippet
const unsigned int Dimension = 2;
typedef unsigned short LabelType;
typedef otb::Image<LabelType,Dimension> LabeledImageType;
typedef otb::VectorData<double,2> VectorDataType;
const unsigned int Dimension = 2;
typedef unsigned short LabelType;
typedef otb::Image<LabelType,Dimension> LabeledImageType;
typedef otb::VectorData<double,2> VectorDataType;
// Software Guide : EndCodeSnippet
// We instantiate reader and writer types
......@@ -94,15 +94,15 @@ int main(int argc, char * argv[])
// Software Guide : EndLatex
// Software Guide : BeginCodeSnippet
typedef otb::AttributesMapLabelObject<LabelType,Dimension,double> LabelObjectType;
typedef itk::LabelMap<LabelObjectType> LabelMapType;
typedef itk::LabelImageToLabelMapFilter<LabeledImageType,LabelMapType> LabelMapFilterType;
typedef otb::Polygon<double> PolygonType;
typedef otb::AttributesMapLabelObject<LabelType,Dimension,double> LabelObjectType;
typedef itk::LabelMap<LabelObjectType> LabelMapType;
typedef itk::LabelImageToLabelMapFilter<LabeledImageType,LabelMapType> LabelMapFilterType;
typedef otb::Polygon<double> PolygonType;
typedef otb::Functor::LabelObjectToPolygonFunctor<LabelObjectType,PolygonType> FunctorType;
// Software Guide : EndCodeSnippet
typedef VectorDataType::DataNodeType DataNodeType;
typedef VectorDataType::DataNodeType DataNodeType;
typedef otb::VectorDataProjectionFilter<VectorDataType,VectorDataType> VectorDataFilterType;
typedef otb::VectorDataProjectionFilter<VectorDataType,VectorDataType> VectorDataFilterType;
LabeledReaderType::Pointer lreader = LabeledReaderType::New();
......
......@@ -40,8 +40,8 @@
int main(int argc, char * argv[])
{
const int dim = 2;
typedef unsigned long PixelType;
const int dim = 2;
typedef unsigned long PixelType;
typedef itk::Image< PixelType, dim > ImageType;
if( argc != 3)
......@@ -59,9 +59,9 @@ int main(int argc, char * argv[])
// is chosen in order to read some attribute related to the shape
// of the objects (by opposition to the content of the object, with
// the StatisticsLabelObejct).
typedef unsigned long LabelType;
typedef unsigned long LabelType;
typedef itk::ShapeLabelObject< LabelType, dim > LabelObjectType;
typedef itk::LabelMap< LabelObjectType > LabelMapType;
typedef itk::LabelMap< LabelObjectType > LabelMapType;
// convert the image in a collection of objects
typedef itk::LabelImageToLabelMapFilter< ImageType, LabelMapType > ConverterType;
......@@ -98,5 +98,4 @@ int main(int argc, char * argv[])
outfile.close();
return EXIT_SUCCESS;
}
}
/*=========================================================================
Program: ORFEO Toolbox
......
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