Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
otb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
273
Issues
273
List
Boards
Labels
Service Desk
Milestones
Merge Requests
8
Merge Requests
8
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Main Repositories
otb
Commits
d401c28d
Commit
d401c28d
authored
Feb 21, 2010
by
Emmanuel Christophe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DOC: code formatting for software guide
parent
3559c7a7
Changes
89
Hide whitespace changes
Inline
Side-by-side
Showing
89 changed files
with
1 addition
and
881 deletions
+1
-881
Examples/BasicFilters/DEMToRainbowExample.cxx
Examples/BasicFilters/DEMToRainbowExample.cxx
+0
-2
Examples/BasicFilters/MeanShiftVectorImageFilterExample.cxx
Examples/BasicFilters/MeanShiftVectorImageFilterExample.cxx
+0
-4
Examples/ChangeDetection/ChangeDetectionFrameworkExample.cxx
Examples/ChangeDetection/ChangeDetectionFrameworkExample.cxx
+0
-3
Examples/ChangeDetection/RatioChDet.cxx
Examples/ChangeDetection/RatioChDet.cxx
+0
-2
Examples/Classification/KMeansImageClassificationExample.cxx
Examples/Classification/KMeansImageClassificationExample.cxx
+0
-11
Examples/Classification/SOMImageClassificationExample.cxx
Examples/Classification/SOMImageClassificationExample.cxx
+0
-13
Examples/Classification/SVMImageClassifierExample.cxx
Examples/Classification/SVMImageClassifierExample.cxx
+0
-13
Examples/Classification/ScalarImageKmeansClassifier.cxx
Examples/Classification/ScalarImageKmeansClassifier.cxx
+0
-1
Examples/Classification/ScalarImageKmeansModelEstimator.cxx
Examples/Classification/ScalarImageKmeansModelEstimator.cxx
+0
-2
Examples/DataRepresentation/Image/Image3.cxx
Examples/DataRepresentation/Image/Image3.cxx
+0
-1
Examples/DataRepresentation/Image/Image5.cxx
Examples/DataRepresentation/Image/Image5.cxx
+0
-3
Examples/DataRepresentation/Image/Image6.cxx
Examples/DataRepresentation/Image/Image6.cxx
+0
-5
Examples/DataRepresentation/Image/ImageListExample.cxx
Examples/DataRepresentation/Image/ImageListExample.cxx
+0
-13
Examples/DataRepresentation/Image/RGBImage.cxx
Examples/DataRepresentation/Image/RGBImage.cxx
+0
-1
Examples/DataRepresentation/Image/VectorImage.cxx
Examples/DataRepresentation/Image/VectorImage.cxx
+0
-2
Examples/DataRepresentation/Mesh/Mesh3.cxx
Examples/DataRepresentation/Mesh/Mesh3.cxx
+0
-1
Examples/DataRepresentation/Mesh/PointSet3.cxx
Examples/DataRepresentation/Mesh/PointSet3.cxx
+0
-1
Examples/DataRepresentation/Path/PolyLineParametricPath1.cxx
Examples/DataRepresentation/Path/PolyLineParametricPath1.cxx
+0
-4
Examples/DisparityMap/EstimateAffineTransformationExample.cxx
...ples/DisparityMap/EstimateAffineTransformationExample.cxx
+0
-25
Examples/DisparityMap/SIFTDisparityMapEstimation.cxx
Examples/DisparityMap/SIFTDisparityMapEstimation.cxx
+0
-28
Examples/DisparityMap/SimpleDisparityMapEstimationExample.cxx
...ples/DisparityMap/SimpleDisparityMapEstimationExample.cxx
+0
-51
Examples/FeatureExtraction/AlignmentsExample.cxx
Examples/FeatureExtraction/AlignmentsExample.cxx
+0
-3
Examples/FeatureExtraction/AssymmetricFusionOfLineDetectorExample.cxx
...tureExtraction/AssymmetricFusionOfLineDetectorExample.cxx
+0
-3
Examples/FeatureExtraction/CloudDetectionExample.cxx
Examples/FeatureExtraction/CloudDetectionExample.cxx
+0
-21
Examples/FeatureExtraction/ComplexMomentImageExample.cxx
Examples/FeatureExtraction/ComplexMomentImageExample.cxx
+0
-8
Examples/FeatureExtraction/ComplexMomentPathExample.cxx
Examples/FeatureExtraction/ComplexMomentPathExample.cxx
+0
-6
Examples/FeatureExtraction/CorrelationLineDetectorExample.cxx
...ples/FeatureExtraction/CorrelationLineDetectorExample.cxx
+0
-3
Examples/FeatureExtraction/EdgeDensityExample.cxx
Examples/FeatureExtraction/EdgeDensityExample.cxx
+0
-7
Examples/FeatureExtraction/ExtractRoadByStepsExample.cxx
Examples/FeatureExtraction/ExtractRoadByStepsExample.cxx
+0
-15
Examples/FeatureExtraction/ExtractSegmentsByStepsExample.cxx
Examples/FeatureExtraction/ExtractSegmentsByStepsExample.cxx
+0
-7
Examples/FeatureExtraction/ExtractSegmentsExample.cxx
Examples/FeatureExtraction/ExtractSegmentsExample.cxx
+0
-6
Examples/FeatureExtraction/FlusserMomentImageExample.cxx
Examples/FeatureExtraction/FlusserMomentImageExample.cxx
+0
-9
Examples/FeatureExtraction/HarrisExample.cxx
Examples/FeatureExtraction/HarrisExample.cxx
+0
-6
Examples/FeatureExtraction/HuMomentImageExample.cxx
Examples/FeatureExtraction/HuMomentImageExample.cxx
+0
-9
Examples/FeatureExtraction/InnerProductPCAExample.cxx
Examples/FeatureExtraction/InnerProductPCAExample.cxx
+0
-7
Examples/FeatureExtraction/LineSegmentDetectorExample.cxx
Examples/FeatureExtraction/LineSegmentDetectorExample.cxx
+0
-12
Examples/FeatureExtraction/LocalHoughExample.cxx
Examples/FeatureExtraction/LocalHoughExample.cxx
+0
-7
Examples/FeatureExtraction/PanTexExample.cxx
Examples/FeatureExtraction/PanTexExample.cxx
+0
-2
Examples/FeatureExtraction/RatioLineDetectorExample.cxx
Examples/FeatureExtraction/RatioLineDetectorExample.cxx
+0
-3
Examples/FeatureExtraction/RightAngleDetectionExample.cxx
Examples/FeatureExtraction/RightAngleDetectionExample.cxx
+0
-5
Examples/FeatureExtraction/SFSExample.cxx
Examples/FeatureExtraction/SFSExample.cxx
+0
-1
Examples/FeatureExtraction/SIFTDensityExample.cxx
Examples/FeatureExtraction/SIFTDensityExample.cxx
+0
-17
Examples/FeatureExtraction/SIFTExample.cxx
Examples/FeatureExtraction/SIFTExample.cxx
+0
-2
Examples/FeatureExtraction/SIFTFastExample.cxx
Examples/FeatureExtraction/SIFTFastExample.cxx
+0
-34
Examples/FeatureExtraction/SURFExample.cxx
Examples/FeatureExtraction/SURFExample.cxx
+0
-34
Examples/FeatureExtraction/TextureExample.cxx
Examples/FeatureExtraction/TextureExample.cxx
+0
-2
Examples/FeatureExtraction/TouziEdgeDetectorExample.cxx
Examples/FeatureExtraction/TouziEdgeDetectorExample.cxx
+0
-2
Examples/Filtering/CompositeFilterExample.cxx
Examples/Filtering/CompositeFilterExample.cxx
+0
-3
Examples/Filtering/SecondDerivativeRecursiveGaussianImageFilter.cxx
...iltering/SecondDerivativeRecursiveGaussianImageFilter.cxx
+0
-1
Examples/IO/DEMToImageGenerator.cxx
Examples/IO/DEMToImageGenerator.cxx
+0
-1
Examples/IO/DEMToOrthoImageGenerator.cxx
Examples/IO/DEMToOrthoImageGenerator.cxx
+0
-1
Examples/IO/ExplicitStreamingExample.cxx
Examples/IO/ExplicitStreamingExample.cxx
+0
-4
Examples/IO/ImageReadRegionOfInterestWrite.cxx
Examples/IO/ImageReadRegionOfInterestWrite.cxx
+0
-2
Examples/IO/LidarToImageExample.cxx
Examples/IO/LidarToImageExample.cxx
+0
-2
Examples/IO/VectorDataIOExample.cxx
Examples/IO/VectorDataIOExample.cxx
+0
-21
Examples/Iterators/ImageLinearIteratorWithIndex2.cxx
Examples/Iterators/ImageLinearIteratorWithIndex2.cxx
+0
-2
Examples/Iterators/ImageRandomConstIteratorWithIndex.cxx
Examples/Iterators/ImageRandomConstIteratorWithIndex.cxx
+0
-1
Examples/Iterators/ShapedNeighborhoodIterators1.cxx
Examples/Iterators/ShapedNeighborhoodIterators1.cxx
+0
-1
Examples/Learning/SOMClassifierExample.cxx
Examples/Learning/SOMClassifierExample.cxx
+0
-26
Examples/Learning/SOMExample.cxx
Examples/Learning/SOMExample.cxx
+0
-36
Examples/Learning/SVMGenericKernelImageModelEstimatorExample.cxx
...s/Learning/SVMGenericKernelImageModelEstimatorExample.cxx
+0
-1
Examples/Learning/SVMImageClassificationExample.cxx
Examples/Learning/SVMImageClassificationExample.cxx
+0
-44
Examples/Learning/SVMImageEstimatorClassificationMultiExample.cxx
.../Learning/SVMImageEstimatorClassificationMultiExample.cxx
+0
-34
Examples/Learning/SVMImageModelEstimatorExample.cxx
Examples/Learning/SVMImageModelEstimatorExample.cxx
+0
-2
Examples/Learning/SVMPointSetClassificationExample.cxx
Examples/Learning/SVMPointSetClassificationExample.cxx
+0
-41
Examples/Learning/SVMPointSetModelEstimatorExample.cxx
Examples/Learning/SVMPointSetModelEstimatorExample.cxx
+0
-15
Examples/Markov/MarkovClassification1Example.cxx
Examples/Markov/MarkovClassification1Example.cxx
+0
-22
Examples/Markov/MarkovClassification2Example.cxx
Examples/Markov/MarkovClassification2Example.cxx
+0
-4
Examples/Markov/MarkovRegularizationExample.cxx
Examples/Markov/MarkovRegularizationExample.cxx
+0
-2
Examples/Markov/MarkovRestaurationExample.cxx
Examples/Markov/MarkovRestaurationExample.cxx
+0
-4
Examples/MultiScale/MorphologicalPyramidAnalysisFilterExample.cxx
.../MultiScale/MorphologicalPyramidAnalysisFilterExample.cxx
+0
-22
Examples/MultiScale/MorphologicalPyramidSegmentationExample.cxx
...es/MultiScale/MorphologicalPyramidSegmentationExample.cxx
+0
-15
Examples/MultiScale/MorphologicalPyramidSegmenterExample.cxx
Examples/MultiScale/MorphologicalPyramidSegmenterExample.cxx
+0
-8
Examples/MultiScale/MorphologicalPyramidSynthesisFilterExample.cxx
...MultiScale/MorphologicalPyramidSynthesisFilterExample.cxx
+0
-23
Examples/OBIA/ImageToLabelToImage.cxx
Examples/OBIA/ImageToLabelToImage.cxx
+0
-2
Examples/OBIA/KeepNObjects.cxx
Examples/OBIA/KeepNObjects.cxx
+0
-2
Examples/OBIA/ShapeAttributeComputation.cxx
Examples/OBIA/ShapeAttributeComputation.cxx
+0
-1
Examples/Projections/OrthoRectificationExample.cxx
Examples/Projections/OrthoRectificationExample.cxx
+0
-21
Examples/Projections/SensorModelExample.cxx
Examples/Projections/SensorModelExample.cxx
+1
-50
Examples/Projections/VectorDataProjectionExample.cxx
Examples/Projections/VectorDataProjectionExample.cxx
+0
-6
Examples/Radiometry/AtmosphericCorrectionSequencement.cxx
Examples/Radiometry/AtmosphericCorrectionSequencement.cxx
+0
-1
Examples/Radiometry/NDVIRAndNIRVegetationIndexImageFilter.cxx
...ples/Radiometry/NDVIRAndNIRVegetationIndexImageFilter.cxx
+0
-1
Examples/Registration/ImageRegistration1.cxx
Examples/Registration/ImageRegistration1.cxx
+0
-2
Examples/Registration/ImageRegistration5.cxx
Examples/Registration/ImageRegistration5.cxx
+0
-2
Examples/Registration/ImageRegistration9.cxx
Examples/Registration/ImageRegistration9.cxx
+0
-2
Examples/SARPolarimetry/PiOver4ExamplePolarimetricSynthesisFilter.cxx
...Polarimetry/PiOver4ExamplePolarimetricSynthesisFilter.cxx
+0
-18
Examples/Tutorials/Multispectral.cxx
Examples/Tutorials/Multispectral.cxx
+0
-2
Examples/Tutorials/OrthoFusion.cxx
Examples/Tutorials/OrthoFusion.cxx
+0
-12
Examples/Visu/VisuExample1.cxx
Examples/Visu/VisuExample1.cxx
+0
-4
No files found.
Examples/BasicFilters/DEMToRainbowExample.cxx
View file @
d401c28d
...
...
@@ -125,7 +125,6 @@ int main(int argc, char * argv[])
// Software Guide : EndLatex
// Software Guide : BeginCodeSnippet
typedef
itk
::
ScalarToRGBColormapImageFilter
<
ImageType
,
RGBImageType
>
ColorMapFilterType
;
ColorMapFilterType
::
Pointer
colormapper
=
ColorMapFilterType
::
New
();
colormapper
->
UseInputImageExtremaForScalingOff
();
...
...
@@ -138,7 +137,6 @@ int main(int argc, char * argv[])
colormap
->
SetMaximumInputValue
(
4000
);
colormapper
->
SetColormap
(
colormap
);
}
// Software Guide : EndCodeSnippet
else
...
...
Examples/BasicFilters/MeanShiftVectorImageFilterExample.cxx
View file @
d401c28d
...
...
@@ -112,7 +112,6 @@ int main(int argc, char * argv[])
typedef
otb
::
MeanShiftVectorImageFilter
<
ImageType
,
ImageType
>
FilterType
;
typedef
FilterType
::
LabeledOutputType
LabeledImageType
;
typedef
otb
::
StreamingImageFileWriter
<
LabeledImageType
>
LabeledWriterType
;
// Software Guide : EndCodeSnippet
// Software Guide : BeginLatex
...
...
@@ -130,7 +129,6 @@ int main(int argc, char * argv[])
WriterType
::
Pointer
writer2
=
WriterType
::
New
();
LabeledWriterType
::
Pointer
writer3
=
LabeledWriterType
::
New
();
LabeledWriterType
::
Pointer
writer4
=
LabeledWriterType
::
New
();
// Software Guide : EndCodeSnippet
// Software Guide : BeginLatex
...
...
@@ -145,7 +143,6 @@ int main(int argc, char * argv[])
writer2
->
SetFileName
(
clusteredfname
);
writer3
->
SetFileName
(
labeledclusteredfname
);
writer4
->
SetFileName
(
clusterboundariesfname
);
// Software Guide : EndCodeSnippet
// Software Guide : BeginLatex
...
...
@@ -180,7 +177,6 @@ int main(int argc, char * argv[])
// Software Guide : EndLatex
// Software Guide : BeginCodeSnippet
filter
->
SetInput
(
reader
->
GetOutput
());
writer1
->
SetInput
(
filter
->
GetOutput
());
writer2
->
SetInput
(
filter
->
GetClusteredOutput
());
...
...
Examples/ChangeDetection/ChangeDetectionFrameworkExample.cxx
View file @
d401c28d
...
...
@@ -150,7 +150,6 @@ private:
void
operator
=
(
const
Self
&
);
//purposely not implemented
};
// Software Guide : EndCodeSnippet
// Software Guide : BeginLatex
...
...
@@ -223,7 +222,6 @@ int main(int argc, char* argv[] )
InputImageType1
,
InputImageType2
,
ChangeImageType
>
FilterType
;
// Software Guide : EndCodeSnippet
ReaderType1
::
Pointer
reader1
=
ReaderType1
::
New
();
...
...
@@ -255,7 +253,6 @@ int main(int argc, char* argv[] )
rescaler
->
SetInput
(
filter
->
GetOutput
()
);
writer
->
SetInput
(
rescaler
->
GetOutput
()
);
// Software Guide : EndCodeSnippet
typedef
otb
::
CommandProgressUpdate
<
FilterType
>
CommandType
;
...
...
Examples/ChangeDetection/RatioChDet.cxx
View file @
d401c28d
...
...
@@ -189,8 +189,6 @@ int main(int argc, char* argv[] )
// Software Guide : EndLatex
// Software Guide : BeginCodeSnippet
filter
->
SetInput1
(
reader1
->
GetOutput
()
);
filter
->
SetInput2
(
reader2
->
GetOutput
()
);
...
...
Examples/Classification/KMeansImageClassificationExample.cxx
View file @
d401c28d
...
...
@@ -62,10 +62,8 @@ int main(int argc, char * argv[])
// Software Guide : EndLatex
// Software Guide : BeginCodeSnippet
typedef
otb
::
VectorImage
<
PixelType
,
Dimension
>
ImageType
;
typedef
otb
::
Image
<
LabeledPixelType
,
Dimension
>
LabeledImageType
;
// Software Guide : EndCodeSnippet
// Software Guide : BeginLatex
//
...
...
@@ -78,7 +76,6 @@ int main(int argc, char * argv[])
typedef
otb
::
KMeansImageClassificationFilter
<
ImageType
,
LabeledImageType
>
ClassificationFilterType
;
typedef
ClassificationFilterType
::
KMeansParametersType
KMeansParametersType
;
// Software Guide : EndCodeSnippet
// Software Guide : BeginLatex
//
...
...
@@ -89,10 +86,8 @@ int main(int argc, char * argv[])
// Software Guide : EndLatex
// Software Guide : BeginCodeSnippet
typedef
otb
::
ImageFileReader
<
ImageType
>
ReaderType
;
typedef
otb
::
StreamingImageFileWriter
<
LabeledImageType
>
WriterType
;
// Software Guide : EndCodeSnippet
// Software Guide : BeginLatex
//
...
...
@@ -105,14 +100,11 @@ int main(int argc, char * argv[])
// Software Guide : EndLatex
// Software Guide : BeginCodeSnippet
ClassificationFilterType
::
Pointer
filter
=
ClassificationFilterType
::
New
();
ReaderType
::
Pointer
reader
=
ReaderType
::
New
();
reader
->
SetFileName
(
infname
);
reader
->
GenerateOutputInformation
();
// Software Guide : EndCodeSnippet
// Software Guide : BeginLatex
//
...
...
@@ -123,7 +115,6 @@ int main(int argc, char * argv[])
// Software Guide : EndLatex
// Software Guide : BeginCodeSnippet
const
unsigned
int
sampleSize
=
ClassificationFilterType
::
MaxSampleDimension
;
const
unsigned
int
parameterSize
=
nbClasses
*
sampleSize
;
KMeansParametersType
parameters
;
...
...
@@ -144,7 +135,6 @@ int main(int argc, char * argv[])
}
std
::
cout
<<
"Parameters: "
<<
parameters
<<
std
::
endl
;
// Software Guide : EndCodeSnippet
// Software Guide : BeginLatex
//
...
...
@@ -154,7 +144,6 @@ int main(int argc, char * argv[])
// Software Guide : EndLatex
// Software Guide : BeginCodeSnippet
filter
->
SetCentroids
(
parameters
);
filter
->
SetInput
(
reader
->
GetOutput
());
...
...
Examples/Classification/SOMImageClassificationExample.cxx
View file @
d401c28d
...
...
@@ -55,7 +55,6 @@ int main(int argc, char * argv[])
const
unsigned
int
Dimension
=
2
;
typedef
double
PixelType
;
typedef
unsigned
short
LabeledPixelType
;
// Software Guide : EndCodeSnippet
// Software Guide : BeginLatex
//
...
...
@@ -66,10 +65,8 @@ int main(int argc, char * argv[])
// Software Guide : EndLatex
// Software Guide : BeginCodeSnippet
typedef
otb
::
VectorImage
<
PixelType
,
Dimension
>
ImageType
;
typedef
otb
::
Image
<
LabeledPixelType
,
Dimension
>
LabeledImageType
;
// Software Guide : EndCodeSnippet
// Software Guide : BeginLatex
//
...
...
@@ -79,12 +76,9 @@ int main(int argc, char * argv[])
// Software Guide : EndLatex
// Software Guide : BeginCodeSnippet
typedef
otb
::
SOMMap
<
ImageType
::
PixelType
>
SOMMapType
;
typedef
otb
::
SOMImageClassificationFilter
<
ImageType
,
LabeledImageType
,
SOMMapType
>
ClassificationFilterType
;
// Software Guide : EndCodeSnippet
// Software Guide : BeginLatex
//
...
...
@@ -96,12 +90,9 @@ int main(int argc, char * argv[])
// Software Guide : EndLatex
// Software Guide : BeginCodeSnippet
typedef
otb
::
ImageFileReader
<
ImageType
>
ReaderType
;
typedef
otb
::
ImageFileReader
<
SOMMapType
>
SOMReaderType
;
typedef
otb
::
StreamingImageFileWriter
<
LabeledImageType
>
WriterType
;
// Software Guide : EndCodeSnippet
// Software Guide : BeginLatex
//
...
...
@@ -111,8 +102,6 @@ int main(int argc, char * argv[])
// Software Guide : EndLatex
// Software Guide : BeginCodeSnippet
ClassificationFilterType
::
Pointer
filter
=
ClassificationFilterType
::
New
();
ReaderType
::
Pointer
reader
=
ReaderType
::
New
();
...
...
@@ -123,7 +112,6 @@ int main(int argc, char * argv[])
somreader
->
Update
();
filter
->
SetMap
(
somreader
->
GetOutput
());
// Software Guide : EndCodeSnippet
// Software Guide : BeginLatex
//
...
...
@@ -133,7 +121,6 @@ int main(int argc, char * argv[])
// Software Guide : EndLatex
// Software Guide : BeginCodeSnippet
filter
->
SetInput
(
reader
->
GetOutput
());
WriterType
::
Pointer
writer
=
WriterType
::
New
();
...
...
Examples/Classification/SVMImageClassifierExample.cxx
View file @
d401c28d
...
...
@@ -56,7 +56,6 @@ int main(int argc, char * argv[])
const
unsigned
int
Dimension
=
2
;
typedef
double
PixelType
;
typedef
unsigned
short
LabeledPixelType
;
// Software Guide : EndCodeSnippet
// Software Guide : BeginLatex
//
...
...
@@ -67,10 +66,8 @@ int main(int argc, char * argv[])
// Software Guide : EndLatex
// Software Guide : BeginCodeSnippet
typedef
otb
::
VectorImage
<
PixelType
,
Dimension
>
ImageType
;
typedef
otb
::
Image
<
LabeledPixelType
,
Dimension
>
LabeledImageType
;
// Software Guide : EndCodeSnippet
// Software Guide : BeginLatex
//
...
...
@@ -80,11 +77,9 @@ int main(int argc, char * argv[])
// Software Guide : EndLatex
// Software Guide : BeginCodeSnippet
typedef
otb
::
SVMImageClassificationFilter
<
ImageType
,
LabeledImageType
>
ClassificationFilterType
;
typedef
ClassificationFilterType
::
ModelType
ModelType
;
// Software Guide : EndCodeSnippet
// Software Guide : BeginLatex
//
...
...
@@ -95,11 +90,8 @@ int main(int argc, char * argv[])
// Software Guide : EndLatex
// Software Guide : BeginCodeSnippet
typedef
otb
::
ImageFileReader
<
ImageType
>
ReaderType
;
typedef
otb
::
StreamingImageFileWriter
<
LabeledImageType
>
WriterType
;
// Software Guide : EndCodeSnippet
// Software Guide : BeginLatex
//
...
...
@@ -109,9 +101,6 @@ int main(int argc, char * argv[])
// Software Guide : EndLatex
// Software Guide : BeginCodeSnippet
ClassificationFilterType
::
Pointer
filter
=
ClassificationFilterType
::
New
();
ReaderType
::
Pointer
reader
=
ReaderType
::
New
();
...
...
@@ -121,7 +110,6 @@ int main(int argc, char * argv[])
model
->
LoadModel
(
modelfname
);
filter
->
SetModel
(
model
);
// Software Guide : EndCodeSnippet
// Software Guide : BeginLatex
//
...
...
@@ -131,7 +119,6 @@ int main(int argc, char * argv[])
// Software Guide : EndLatex
// Software Guide : BeginCodeSnippet
filter
->
SetInput
(
reader
->
GetOutput
());
WriterType
::
Pointer
writer
=
WriterType
::
New
();
...
...
Examples/Classification/ScalarImageKmeansClassifier.cxx
View file @
d401c28d
...
...
@@ -236,7 +236,6 @@ int main( int argc, char * argv [] )
std
::
cout
<<
"cluster["
<<
i
<<
"] "
;
std
::
cout
<<
" estimated mean : "
<<
estimatedMeans
[
i
]
<<
std
::
endl
;
}
// Software Guide : EndCodeSnippet
// Software Guide : BeginLatex
...
...
Examples/Classification/ScalarImageKmeansModelEstimator.cxx
View file @
d401c28d
...
...
@@ -88,7 +88,6 @@ int main( int argc, char * argv [] )
// Software Guide : BeginCodeSnippet
// Create a List from the scalar image
typedef
itk
::
Statistics
::
ScalarImageToListAdaptor
<
ImageType
>
AdaptorType
;
...
...
@@ -141,7 +140,6 @@ int main( int argc, char * argv [] )
std
::
cout
<<
"cluster["
<<
i
<<
"] "
<<
std
::
endl
;
std
::
cout
<<
" estimated mean : "
<<
estimatedMeans
[
i
]
<<
std
::
endl
;
}
// Software Guide : EndCodeSnippet
...
...
Examples/DataRepresentation/Image/Image3.cxx
View file @
d401c28d
...
...
@@ -112,7 +112,6 @@ int main(int, char *[])
// Software Guide : BeginCodeSnippet
ImageType
::
PixelType
pixelValue
=
image
->
GetPixel
(
pixelIndex
);
// Software Guide : EndCodeSnippet
...
...
Examples/DataRepresentation/Image/Image5.cxx
View file @
d401c28d
...
...
@@ -49,7 +49,6 @@
// Software Guide : BeginCodeSnippet
#include "otbImage.h"
#include "otbImportImageFilter.h"
// Software Guide : EndCodeSnippet
#include "otbImageFileWriter.h"
...
...
@@ -76,7 +75,6 @@ int main(int argc, char * argv[])
typedef
unsigned
char
PixelType
;
const
unsigned
int
Dimension
=
2
;
typedef
otb
::
Image
<
PixelType
,
Dimension
>
ImageType
;
// Software Guide : EndCodeSnippet
...
...
@@ -214,7 +212,6 @@ int main(int argc, char * argv[])
*
it
++
=
(
d2
<
radius2
)
?
255
:
0
;
}
}
// Software Guide : EndCodeSnippet
...
...
Examples/DataRepresentation/Image/Image6.cxx
View file @
d401c28d
...
...
@@ -50,7 +50,6 @@
#include "otbImage.h"
#include "otbVectorImage.h"
#include "otbImportVectorImageFilter.h"
// Software Guide : EndCodeSnippet
#include "otbImageFileWriter.h"
...
...
@@ -93,7 +92,6 @@ int main(int argc, char * argv[])
// Software Guide : BeginCodeSnippet
typedef
otb
::
ImportVectorImageFilter
<
ImageType
>
ImportFilterType
;
// Software Guide : EndCodeSnippet
...
...
@@ -189,8 +187,6 @@ int main(int argc, char * argv[])
const
unsigned
int
numberOfPixels
=
size
[
0
]
*
size
[
1
]
*
numberOfBands
;
PixelType
*
localBuffer
=
new
PixelType
[
numberOfPixels
];
// Software Guide : EndCodeSnippet
const
double
radius
=
80.0
;
...
...
@@ -224,7 +220,6 @@ int main(int argc, char * argv[])
length
++
;
}
}
// Software Guide : EndCodeSnippet
...
...
Examples/DataRepresentation/Image/ImageListExample.cxx
View file @
d401c28d
...
...
@@ -58,13 +58,11 @@ int main(int argc, char * argv[])
// Software Guide : EndLatex
// Software Guide : BeginCodeSnippet
const
unsigned
int
Dimension
=
2
;
typedef
unsigned
char
InputPixelType
;
typedef
otb
::
Image
<
InputPixelType
,
Dimension
>
InputImageType
;
typedef
otb
::
ImageFileReader
<
InputImageType
>
ReaderType
;
typedef
otb
::
ImageFileWriter
<
InputImageType
>
WriterType
;
// Software Guide : EndCodeSnippet
// Software Guide : BeginLatex
...
...
@@ -77,10 +75,7 @@ int main(int argc, char * argv[])
// Software Guide : EndLatex
// Software Guide : BeginCodeSnippet
typedef
otb
::
ImageList
<
InputImageType
>
ImageListType
;
// Software Guide : EndCodeSnippet
// Software Guide : BeginLatex
...
...
@@ -93,11 +88,9 @@ int main(int argc, char * argv[])
// Software Guide : EndLatex
// Software Guide : BeginCodeSnippet
ReaderType
::
Pointer
reader
=
ReaderType
::
New
();
reader
->
SetFileName
(
inputFilename
);
reader
->
Update
();
// Software Guide : EndCodeSnippet
// Software Guide : BeginLatex
...
...
@@ -107,9 +100,7 @@ int main(int argc, char * argv[])
// Software Guide : EndLatex
// Software Guide : BeginCodeSnippet
ImageListType
::
Pointer
imageList
=
ImageListType
::
New
();
// Software Guide : EndCodeSnippet
// Software Guide : BeginLatex
...
...
@@ -120,9 +111,7 @@ int main(int argc, char * argv[])
// Software Guide : EndLatex
// Software Guide : BeginCodeSnippet
imageList
->
PushBack
(
reader
->
GetOutput
());
// Software Guide : EndCodeSnippet
// Software Guide : BeginLatex
...
...
@@ -136,13 +125,11 @@ int main(int argc, char * argv[])
// Software Guide : EndLatex
// Software Guide : BeginCodeSnippet
// Getting the image from the list and writing it to file
WriterType
::
Pointer
writer
=
WriterType
::
New
();
writer
->
SetFileName
(
outputFilename
);
writer
->
SetInput
(
imageList
->
Back
());
writer
->
Update
();
// Software Guide : EndCodeSnippet
// Software Guide : BeginLatex
...
...
Examples/DataRepresentation/Image/RGBImage.cxx
View file @
d401c28d
...
...
@@ -158,7 +158,6 @@ int main( int , char * argv[] )
std
::
cout
<<
"Blue = "
<<
itk
::
NumericTraits
<
PixelType
::
ValueType
>::
PrintType
(
blue
)
<<
std
::
endl
;
// Software Guide : EndCodeSnippet
// Lets repeat that both \code{SetPixel()} and \code{GetPixel()} are
...
...
Examples/DataRepresentation/Image/VectorImage.cxx
View file @
d401c28d
...
...
@@ -100,10 +100,8 @@ int main(int, char *[])
// Software Guide : EndLatex
// Software Guide : BeginCodeSnippet
image
->
SetNumberOfComponentsPerPixel
(
4
);
image
->
Allocate
();
// Software Guide : EndCodeSnippet
...
...
Examples/DataRepresentation/Mesh/Mesh3.cxx
View file @
d401c28d
...
...
@@ -159,7 +159,6 @@ int main(int, char *[])
{
mesh
->
SetCellData
(
cellId
,
static_cast
<
PixelType
>
(
cellId
*
cellId
)
);
}
// Software Guide : EndCodeSnippet
...
...
Examples/DataRepresentation/Mesh/PointSet3.cxx
View file @
d401c28d
...
...
@@ -95,7 +95,6 @@ int main(int, char *[])
// Software Guide : EndLatex
// Software Guide : BeginCodeSnippet
const
bool
found
=
pointSet
->
GetPointData
(
dataId
,
&
value
);
if
(
found
)
{
...
...
Examples/DataRepresentation/Path/PolyLineParametricPath1.cxx
View file @
d401c28d
...
...
@@ -91,7 +91,6 @@ int main(int argc, char * argv [] )
// Software Guide : BeginCodeSnippet
ImageType
::
ConstPointer
image
=
reader
->
GetOutput
();
...
...
@@ -125,9 +124,6 @@ int main(int argc, char * argv [] )
image
->
TransformPhysicalPointToContinuousIndex
(
point
,
cindex
);
path
->
AddVertex
(
cindex
);
// Software Guide : EndCodeSnippet
return
EXIT_SUCCESS
;
...
...
Examples/DisparityMap/EstimateAffineTransformationExample.cxx
View file @
d401c28d
...
...
@@ -48,7 +48,6 @@
// Software Guide : BeginCodeSnippet
#include "otbKeyPointSetsMatchingFilter.h"
#include "otbImageToSIFTKeyPointSetFilter.h"
...
...
@@ -62,8 +61,6 @@
#ifdef _MSC_VER
#pragma warning(pop)
#endif
// Software Guide : EndCodeSnippet
#include "otbImage.h"
...
...
@@ -107,13 +104,11 @@ int main (int argc, char* argv[])
// Software Guide : EndLatex
// Software Guide : BeginCodeSnippet
typedef
double
RealType
;
typedef
unsigned
char
OutputPixelType
;
typedef
otb
::
Image
<
RealType
,
Dimension
>
ImageType
;
typedef
otb
::
Image
<
OutputPixelType
,
Dimension
>
OutputImageType
;
// Software Guide : EndCodeSnippet
// Software Guide : BeginLatex
//
...
...
@@ -123,10 +118,8 @@ int main (int argc, char* argv[])
// Software Guide : EndLatex
// Software Guide : BeginCodeSnippet
typedef
itk
::
VariableLengthVector
<
RealType
>
RealVectorType
;
typedef
itk
::
PointSet
<
RealVectorType
,
Dimension
>
PointSetType
;
// Software Guide : EndCodeSnippet
// Software Guide : BeginLatex
//
...
...
@@ -135,10 +128,8 @@ int main (int argc, char* argv[])
// Software Guide : EndLatex
// Software Guide : BeginCodeSnippet
typedef
otb
::
ImageToSIFTKeyPointSetFilter
<
ImageType
,
PointSetType
>
ImageToSIFTKeyPointSetFilterType
;
// Software Guide : EndCodeSnippet
// Software Guide : BeginLatex
//
...
...
@@ -149,7 +140,6 @@ int main (int argc, char* argv[])
// Software Guide : EndLatex
// Software Guide : BeginCodeSnippet
typedef
itk
::
Statistics
::
EuclideanDistance
<
RealVectorType
>
DistanceType
;
typedef
otb
::
KeyPointSetsMatchingFilter
<
PointSetType
,
DistanceType
>
EuclideanDistanceMatchingFilterType
;
...
...
@@ -161,7 +151,6 @@ int main (int argc, char* argv[])
// Software Guide : EndLatex
// Software Guide : BeginCodeSnippet
typedef
PointSetType
::
PointType
PointType
;
typedef
std
::
pair
<
PointType
,
PointType
>
MatchType
;
typedef
std
::
vector
<
MatchType
>
MatchVectorType
;
...
...
@@ -172,7 +161,6 @@ int main (int argc, char* argv[])
typedef
PointsContainerType
::
Iterator
PointsIteratorType
;
typedef
PointSetType
::
PointDataContainer
PointDataContainerType
;
typedef
PointDataContainerType
::
Iterator
PointDataIteratorType
;
// Software Guide : EndCodeSnippet
...
...
@@ -183,9 +171,7 @@ int main (int argc, char* argv[])
// Software Guide : EndLatex
// Software Guide : BeginCodeSnippet
typedef
otb
::
ImageFileReader
<
ImageType
>
ReaderType
;
// Software Guide : EndCodeSnippet
// Software Guide : BeginLatex
...
...
@@ -196,7 +182,6 @@ int main (int argc, char* argv[])
// Software Guide : EndLatex
// Software Guide : BeginCodeSnippet
ReaderType
::
Pointer
fixedReader
=
ReaderType
::
New
();
ReaderType
::
Pointer
movingReader
=
ReaderType
::
New
();
...
...
@@ -204,7 +189,6 @@ int main (int argc, char* argv[])
movingReader
->
SetFileName
(
movingfname
);
fixedReader
->
UpdateOutputInformation
();
movingReader
->
UpdateOutputInformation
();
// Software Guide : EndCodeSnippet
// Software Guide : BeginLatex
//
...
...
@@ -214,14 +198,12 @@ int main (int argc, char* argv[])
// Software Guide : EndLatex
// Software Guide : BeginCodeSnippet
ImageToSIFTKeyPointSetFilterType
::
Pointer
filter1
=
ImageToSIFTKeyPointSetFilterType
::
New
();
ImageToSIFTKeyPointSetFilterType
::
Pointer
filter2
=
ImageToSIFTKeyPointSetFilterType
::
New
();
EuclideanDistanceMatchingFilterType
::
Pointer
euclideanMatcher
=
EuclideanDistanceMatchingFilterType
::
New
();
// Software Guide : EndCodeSnippet
// Software Guide : BeginLatex
//
...
...
@@ -230,7 +212,6 @@ int main (int argc, char* argv[])
// Software Guide : EndLatex
// Software Guide : BeginCodeSnippet
filter1
->
SetInput
(
fixedReader
->
GetOutput
()
);