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

DOC: line formating for software guide

parent a991e359
No related branches found
No related tags found
No related merge requests found
...@@ -131,7 +131,8 @@ int main(int argc, char * argv[]) ...@@ -131,7 +131,8 @@ int main(int argc, char * argv[])
// Software Guide : EndLatex // Software Guide : EndLatex
// Software Guide : BeginCodeSnippet // Software Guide : BeginCodeSnippet
typedef otb::MeanShiftVectorImageFilter<VectorImageType,VectorImageType, LabeledImageType> FilterType; typedef otb::MeanShiftVectorImageFilter
<VectorImageType,VectorImageType, LabeledImageType> FilterType;
FilterType::Pointer filter = FilterType::New(); FilterType::Pointer filter = FilterType::New();
filter->SetSpatialRadius(spatialRadius); filter->SetSpatialRadius(spatialRadius);
filter->SetRangeRadius(rangeRadius); filter->SetRangeRadius(rangeRadius);
......
...@@ -144,10 +144,11 @@ int main(int argc, char * argv[]) ...@@ -144,10 +144,11 @@ int main(int argc, char * argv[])
LabelMapType::Pointer labelMap = shape->GetOutput(); LabelMapType::Pointer labelMap = shape->GetOutput();
for( unsigned long label=1; label<=labelMap->GetNumberOfLabelObjects(); label++ ) for( unsigned long label=1; label<=labelMap->GetNumberOfLabelObjects(); label++ )
{ {
// we don't need a SmartPointer of the label object here, because the reference is kept in // we don't need a SmartPointer of the label object here, because the reference is kept
// in the label map. // in the label map.
const LabelObjectType * labelObject = labelMap->GetLabelObject( label ); const LabelObjectType * labelObject = labelMap->GetLabelObject( label );
outfile << label << "\t" << labelObject->GetPhysicalSize() << "\t" << labelObject->GetCentroid() << std::endl; outfile << label << "\t" << labelObject->GetPhysicalSize() << "\t"
<< labelObject->GetCentroid() << std::endl;
} }
outfile.close(); outfile.close();
......
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