Commit 478abf4f authored by Emmanuel Christophe's avatar Emmanuel Christophe

DOC: line formating for software guide

parent a991e359
......@@ -131,7 +131,8 @@ int main(int argc, char * argv[])
// Software Guide : EndLatex
// Software Guide : BeginCodeSnippet
typedef otb::MeanShiftVectorImageFilter<VectorImageType,VectorImageType, LabeledImageType> FilterType;
typedef otb::MeanShiftVectorImageFilter
<VectorImageType,VectorImageType, LabeledImageType> FilterType;
FilterType::Pointer filter = FilterType::New();
filter->SetSpatialRadius(spatialRadius);
filter->SetRangeRadius(rangeRadius);
......
......@@ -144,10 +144,11 @@ int main(int argc, char * argv[])
LabelMapType::Pointer labelMap = shape->GetOutput();
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.
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();
......
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