1 #ifndef _DFAST_AREA_OPENING_H_
2 #define _DFAST_AREA_OPENING_H_
4 #include "Core/include/DCore.h"
33 template <
class T1,
class T2>
43 template <
class T1,
class T2>
47 ASSERT_ALLOCATED(&imIn)
48 ASSERT_SAME_SIZE(&imIn, &imOut)
50 RES_T res =
inv(imIn, imNeg);
56 return inv(imOut, imOut);
65 template <
class T1,
class T2>
75 template <
class T1,
class T2>
78 ASSERT_ALLOCATED(&imIn)
79 ASSERT_SAME_SIZE(&imIn, &imOut)
81 RES_T res =
inv(imIn, imNeg);
87 return inv(imOut, imOut);
96 template <
class T1,
class T2>
106 template <
class T1,
class T2>
110 ASSERT_ALLOCATED(&imIn)
111 ASSERT_SAME_SIZE(&imIn, &imOut)
113 RES_T res =
inv(imIn, imNeg);
119 return inv(imOut, imOut);
128 template <
class T1,
class T2>
137 template <
class T1,
class T2>
140 ASSERT_ALLOCATED(&imIn)
141 ASSERT_SAME_SIZE(&imIn, &imOut)
143 RES_T res =
inv(imIn, imNeg);
149 return inv(imOut, imOut);
158 template <
class T1,
class T2>
170 template <
class T1,
class T2>
180 template <
class T1,
class T2>
184 ASSERT_ALLOCATED(&imIn)
185 ASSERT_SAME_SIZE(&imIn, &imOut)
187 RES_T res =
inv(imIn, imNeg);
193 return inv(imOut, imOut);
200 #include "FastAreaOpening/AreaOpeningPixelQueue.hpp"
201 #include "FastAreaOpening/AreaOpeningMaxTree.hpp"
202 #include "FastAreaOpening/AreaOpeningUnionFind.hpp"
203 #include "FastAreaOpening/AreaOpeningLine.hpp"
RES_T ImAreaOpening_PixelQueue(const Image< T1 > &imIn, int size, Image< T2 > &imOut)
Area Opening with pixel queue algorithm (V4)
Definition: DFastAreaOpening.h:44
RES_T ImAreaOpening_Line(const Image< T1 > &imIn, int size, Image< T2 > &imOut)
Non exact implementation of the Area opening with an 1D line (V4)
Definition: AreaOpeningLine.hpp:27
RES_T ImInertiaThickening_MaxTree(const Image< T1 > &imIn, double size, Image< T2 > &imOut)
Inertia thickening with a max tree algorithm (V4)
Definition: DFastAreaOpening.h:181
RES_T ImAreaOpening_UnionFind(const Image< T1 > &imIn, int size, Image< T2 > &imOut)
Area opening with an union find algorithm (V4)
Definition: AreaOpeningUnionFind.hpp:190
RES_T ImAreaClosing_MaxTree(const Image< T1 > &imIn, int size, Image< T2 > &imOut)
Area closing with a max tree algorithm (V4)
Definition: DFastAreaOpening.h:76
RES_T ImInertiaThinning_MaxTree(const Image< T1 > &imIn, double size, Image< T2 > &imOut)
Inertia thinning with a max tree algorithm (V4)
Definition: AreaOpeningMaxTree.hpp:813
RES_T ImAreaClosing_Line(const Image< T1 > &imIn, int size, Image< T2 > &imOut)
Non exact implementation of the Area closing with an 1D line (V4)
Definition: DFastAreaOpening.h:138
RES_T ImAreaOpening_LineSupEqu(const Image< T1 > &imIn, int size, Image< T2 > &imOut)
Non exact implementation of the Area opening with an 1D line (V4)
Definition: AreaOpeningLine.hpp:194
RES_T ImAreaClosing_UnionFind(const Image< T1 > &imIn, int size, Image< T2 > &imOut)
Area closing with an union find algorithm (V4)
Definition: DFastAreaOpening.h:107
RES_T ImAreaClosing_PixelQueue(const Image< T1 > &imIn, int size, Image< T2 > &imOut)
Area closing with pixel queue algorithm (V4)
Definition: AreaOpeningPixelQueue.hpp:339
RES_T ImAreaOpening_MaxTree(const Image< T1 > &imIn, int size, Image< T2 > &imOut)
Area opening with a max tree algorithm (V4)
Definition: AreaOpeningMaxTree.hpp:772
RES_T inv(const Image< T > &imIn, Image< T > &imOut)
inv() - Invert an image.
Definition: DImageArith.hpp:70