Skip to content
Snippets Groups Projects
Commit ce02cf78 authored by Julien Malik's avatar Julien Malik
Browse files

STY: typo and doc

parent 25e55a83
No related branches found
No related tags found
No related merge requests found
......@@ -32,10 +32,20 @@ PURPOSE. See the above copyright notices for more information.
namespace otb
{
template <class TInputImage, class TLabeledImage, class TLabel, class TObjectLabel >
/** \class LabelImageToLabelMapWithAdjacencyFilter
* \brief Convert a labeled image to a label map with adjacency information
* and computes feature attributes for each LabelObject
*
* Convert a labeled image and its associated vector image
* to a label map with adjacency information, and computes shape and
* radiometric attributes for each LabelObject.
*
* It is suitable to be used with otb::LabelMapWithAdjacency<otb::AttributesMapLabelObject>
*/
template <class TInputImage, class TLabeledImage, class TLabel, class TLabelObject >
class ITK_EXPORT ImageToLabelMapWithAttributesFilter
: public itk::LabelMapFilter< LabelMapWithAdjacency<TObjectLabel >,
LabelMapWithAdjacency< TObjectLabel > >
: public itk::LabelMapFilter< LabelMapWithAdjacency<TLabelObject>,
LabelMapWithAdjacency<TLabelObject> >
{
public:
......@@ -43,8 +53,8 @@ public:
typedef ImageToLabelMapWithAttributesFilter Self;
typedef itk::SmartPointer<Self> Pointer;
typedef itk::SmartPointer<const Self> ConstPointer;
typedef itk::LabelMapFilter< LabelMapWithAdjacency<TObjectLabel >,
LabelMapWithAdjacency< TObjectLabel > > Superclass;
typedef itk::LabelMapFilter< LabelMapWithAdjacency<TLabelObject >,
LabelMapWithAdjacency<TLabelObject > > Superclass;
/** Standard type macro */
itkTypeMacro(ImageToLabelMapWithAttributesFilter,itk::LabelMapFilter);
......@@ -53,11 +63,9 @@ public:
typedef TInputImage InputImageType;
typedef TLabeledImage LabeledImageType;
typedef TLabel LabelType;
typedef TLabelObject LabelObjectType;
/** Algorithms typedef */
typedef TObjectLabel LabelObjectType;
//typedef AttributesMapLabelObjectWithClassLabel<LabelType,2,double,LabelType> LabelObjectType;
typedef typename LabelObjectType::LabelType LabelType;
typedef LabelMapWithAdjacency<LabelObjectType> LabelMapType;
typedef typename LabelMapType::AdjacentLabelsContainerType AdjacentLabelsContainerType;
......
......@@ -25,7 +25,7 @@ PURPOSE. See the above copyright notices for more information.
namespace otb {
/** \class MinMaxAttributesLabelMapFilter
* \brief Computes the min/max of all attributes of a otb::LabelMap<AttributesMapLabelObject>
* \brief Computes the min/max of all attributes of a itk::LabelMap<otb::AttributesMapLabelObject>
*/
template<class TInputImage, class TOutputImage>
class ITK_EXPORT MinMaxAttributesLabelMapFilter :
......
......@@ -38,7 +38,6 @@ int otbImageToLabelMapWithAttributesFilter(int argc, char* argv[])
typedef otb::Image<unsigned int,2> LabeledImageType;
typedef otb::AttributesMapLabelObjectWithClassLabel<double,2,double,double> LabelObjectType;
//typedef otb::AttributesMapLabelObjectWithClassLabel<unsigned int,2,double,unsigned int> LabelObjectType;
typedef otb::ImageToLabelMapWithAttributesFilter<ImageType,
LabeledImageType,unsigned int, LabelObjectType> FilterType;
......@@ -54,8 +53,6 @@ int otbImageToLabelMapWithAttributesFilter(int argc, char* argv[])
reader->SetFileName(infname);
reader->UpdateOutputInformation();
labeledReader->SetFileName(lfname);
labeledReader->UpdateOutputInformation();
......
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