SMIL  0.9.1
smil Namespace Reference

Author Vincent Morard Date : 7 march 2011 See : Morard V. and Dokladal P. and Decenciere E. LINEAR OPENINGS IN CONSTANT TIME WITH ARBITRARY ORIENTATIONS. More...

Classes

class  AaImageViewer
 AA (Ascii Art) image viewer. More...
 
struct  absDiffLine
 
struct  addLine
 
struct  addLine< Bit >
 
struct  addLine< UINT8 >
 
struct  addNoSatCstLine
 
struct  addNoSatLine
 
struct  addNoSatLine< Bit >
 
struct  addNoSatLine< UINT8 >
 
class  Allocator
 
class  AreaCriterion
 Area criterion. Useful for Area Opening/Closing algorithms based on max-tree. More...
 
struct  AreaData
 
class  AreaExtinctionFlooding
 
struct  AreaOP
 
class  arrowMinFunction
 
class  arrowMinStepFunction
 
class  arrowPropagate
 Propagation Functor on a Arrow Image. More...
 
struct  AttribStruct
 
class  Base
 
class  BaseFlooding
 
class  BaseImage
 Base Image class. More...
 
class  BaseImageEvent
 
class  BaseImageViewer
 
class  BaseObject
 Base Smil Object. More...
 
class  BaseSlot
 
struct  BIN
 
class  binaryImageFunction
 
struct  binaryLineFunctionBase
 
class  binaryMorphArrowImageFunction
 
struct  bitAndLine
 
class  BitArray
 
struct  bitIndex
 
struct  bitOrLine
 
struct  bitXOrLine
 
struct  Blob
 List of offset and size of line contiguous pixels. More...
 
class  BMPImageFileHandler
 
struct  Box
 
class  BufferPool
 
struct  Cache_Descriptors
 
class  CompStrElt
 Composite structuring element. More...
 
class  CompStrEltList
 Composite structuring element list. More...
 
class  Core
 Core module instance. More...
 
class  CpuID
 
class  Cross3DSE
 3D Cross structuring element (6 neighbors). More...
 
class  CrossSE
 Cross structuring element. More...
 
struct  CrossVectorComp
 
class  CubeSE
 3D Cubic structuring element (26 neighbors). More...
 
struct  DecisionStruct
 
struct  diffLine
 
struct  diffLine< Bit >
 
struct  divLine
 
struct  divLine< Bit >
 
class  DynamicExtinctionFlooding
 
class  Edge
 Non-oriented edge. More...
 
struct  enable_if
 
struct  enable_if< false, T >
 
struct  EnclRectData
 
struct  equLine
 
struct  equLine< Bit >
 
struct  equLine< RGB >
 
struct  equLines
 
struct  equLinesMasked
 
struct  equSupLine
 
struct  equSupLine3
 
class  Error
 
class  Event
 
class  ExtinctionFlooding
 Generic extinction flooding process. More...
 
class  FIFO_Queue
 Preallocated FIFO Queue. More...
 
class  FileCloser
 
struct  fillLine
 
struct  fillLine< Bit >
 
struct  fillLine< RGB >
 
class  FunctionSlot
 
class  GaussianKernel
 
class  GenericCriterion
 Generic criterion for the max-tree. A user-defined criterion should be derived from this class. More...
 
class  Graph
 Non-oriented graph. More...
 
struct  grtLine
 
struct  grtLine< Bit >
 
struct  grtOrEquLine
 
struct  grtOrEquLine< Bit >
 
struct  grtOrEquSupLine
 
struct  grtSupLine
 
class  Gui
 Gui module instance. More...
 
struct  HA
 
class  HACriterion
 HeightArea criterion. Useful for Height Opening/Closing algorithms based on max-tree. More...
 
class  HeightCriterion
 Height criterion. Useful for Height Opening/Closing algorithms based on max-tree. More...
 
class  HexSE
 Hexagonal structuring element. More...
 
class  HexSE0
 Hexagonal structuring element without center point. More...
 
class  HierarchicalQueue
 
class  hierarchy
 
class  HMT_hD
 Hexagonal D ([3,4,5], [1]) More...
 
class  HMT_hE
 Hexagonal E ([3,4,5,6], [0]) More...
 
class  HMT_hI
 Hexagonal I ([0], [1,2,3,4,5,6]) More...
 
class  HMT_hL
 Hexagonal L ([1,2], [4,5]) More...
 
class  HMT_hM
 Hexagonal M ([1], [3,4,5]) More...
 
class  HMT_hS1
 Hexagonal S1 ([2,3,5,6], [0,1,4]) More...
 
class  HMT_hS2
 Hexagonal S2 ([2,4,5,6], [0,1,3]) More...
 
class  HMT_sD
 Square D ([3,4,5,6], [1,8]) More...
 
class  HMT_sE
 Square E ([3,4,5,6,7], [0]) More...
 
class  HMT_sI
 Square I ([0], [1,2,3,4,5,6,7,8]) More...
 
class  HMT_sL1
 Square L1 ([8,1,2], [4,5,6]) More...
 
class  HMT_sL2
 Square L2 ([1,3], [5,6,7]) More...
 
class  HMT_sLineEnd
 Square line end ([0,1], [3,4,5,6,7]) More...
 
class  HMT_sLineJunc
 Square line junction ([0,1,4,6],[] and [0,1,3,5],[]) More...
 
class  HMT_sM
 Square M ([1,8], [3,4,5,6]) More...
 
class  HMT_sS1
 Square S1 ([3,7], [0,1,5]) More...
 
class  HMT_sS2
 Square S2 ([2,5,6,7], [0,1,3]) More...
 
class  HMT_sS3
 Square S3 ([3,4,5,6,7], [1]) More...
 
class  HorizSE
 Horizontal segment structuring element. More...
 
struct  HQueue
 
struct  HWA
 
class  HWACriterion
 HeightArea criterion. Useful for Height Opening/Closing algorithms based on max-tree. More...
 
class  Image
 Main Image class. More...
 
class  ImageEvent
 
class  ImageFileHandler
 
struct  ImageFileInfo
 
class  ImageFreezer
 
class  imageFunctionBase
 
struct  ImageGray
 
class  ImageViewer
 Base image viewer. More...
 
struct  ImDtTypes
 
struct  ImDtTypes< Bit >
 
struct  ImDtTypes< COLOR_32 >
 
struct  ImDtTypes< COLOR_UINT8_3 >
 
struct  ImDtTypes< RGB >
 
struct  index
 
struct  InertiaData
 
struct  infLine
 
struct  infLine< Bit >
 
struct  infLine< RGB >
 
struct  infLine< UINT8 >
 
struct  invLine
 
struct  invLine< Bit >
 
struct  is_base_of
 
struct  is_float
 
struct  is_integer
 
struct  is_same
 
struct  is_same< A, A >
 
class  JPGImageFileHandler
 
class  labelFunctFast
 
class  labelFunctGeneric
 
struct  lambdaEqualOperator
 
struct  leftShiftLine
 
struct  logicAndLine
 
struct  logicAndLine< Bit >
 
struct  logicOrLine
 
struct  logicOrLine< Bit >
 
struct  logicXOrLine
 
struct  logLine
 
struct  lowLine
 
struct  lowLine< Bit >
 
struct  lowOrEquLine
 
struct  lowOrEquLine< Bit >
 
struct  lowOrEquSupLine
 
struct  lowSupLine
 
struct  map_comp_value_less
 
struct  maxFunctor
 
struct  MaxNode
 
struct  MaxTree
 
class  MaxTree2
 
class  meanFunct
 
struct  measAreaFunc
 
struct  measBarycenterFunc
 
struct  measBoundBoxFunc
 
struct  measInertiaMatrixFunc
 
struct  measMaxValFunc
 
struct  measMaxValPosFunc
 
struct  measMeanValFunc
 
struct  measMedianValFunc
 
struct  measMinMaxValFunc
 
struct  measMinValFunc
 
struct  measMinValPosFunc
 
struct  measModeValFunc
 
struct  MeasureFunctionBase
 
struct  MeasureFunctionWithPos
 
struct  measVolFunc
 
class  medianFunct
 
class  MemberFunctionSlot
 
struct  minFunctor
 
class  MorphImageFunction
 
class  MorphImageFunction< T_in, lineFunction_T, T_in, true >
 
class  MorphImageFunctionBase
 Base morpho operator class. More...
 
class  MorphmInt
 MorphM Image Interface. More...
 
class  Morpho
 
class  mosaicToGraphFunct
 
struct  mulLine
 
struct  mulLine< Bit >
 
struct  mulNoSatLine
 
struct  mulNoSatLine< Bit >
 
class  MultichannelArray
 
class  MultichannelArrayItem
 
class  MultichannelType
 
class  neighborsFunct
 
class  NumpyInt
 Numpy Array Interface. More...
 
class  OpenCVInt
 OpenCV Image Interface. More...
 
class  PBMImageFileHandler
 
class  PGMImageFileHandler
 
struct  PixelHeap
 
struct  PixelSequence
 Start offset and length of pixels in an image. More...
 
class  PNGImageFileHandler
 
struct  Point
 
class  QtAppGui
 
class  QtGui
 
class  QtImageViewer
 Qt image viewer. More...
 
class  QVtkViewer
 QVtk image viewer. More...
 
class  rankFunct
 
struct  Rectangle
 
class  ResImage
 
struct  RGB
 
class  RhombicuboctahedronSE
 Rhombicuboctahedron struturing element (80 neighbors). More...
 
struct  rightShiftLine
 
struct  SampleFloodingFunctor
 
struct  SampleMorphoFunctor
 
class  SharedImage
 Image that uses an existing (1D) data pointer. More...
 
class  Signal
 
struct  SIMD_Instructions
 
class  Slot
 
class  SquSE
 Square structuring element. More...
 
class  SquSE0
 Square structuring element without center point. More...
 
class  STD_Queue
 
class  STD_Stack
 
class  stochastic_edge
 
class  stochastic_graph
 
class  stochastic_node
 
class  StrElt
 Base structuring element. More...
 
struct  stretchHistLine
 
struct  subLine
 
struct  subLine< Bit >
 
struct  subLine< UINT8 >
 
struct  subNoSatLine
 
struct  subNoSatLine< Bit >
 
struct  subNoSatLine< UINT8 >
 
struct  subset
 
struct  supCstLine
 
struct  supLine
 
struct  supLine< Bit >
 
struct  supLine< RGB >
 
struct  supLine< UINT8 >
 
struct  supLines
 
struct  tagMyPOINTS
 
class  tertiaryImageFunction
 
struct  tertiaryLineFunctionBase
 
class  TestCase
 
struct  testLine
 
struct  testLine< Bit, Bit >
 
class  TestSuite
 
struct  threshLine
 
class  TIFFImageFileHandler
 
class  unaryImageFunction
 
struct  unaryLineFunctionBase
 
class  unaryMorphArrowImageFunction
 
class  unaryMorphArrowImageFunction< Bit, lineFunction_T >
 
class  UniqueInstance
 
struct  valueListFunc
 
class  VertSE
 Vertical segment structuring element. More...
 
class  VolumeExtinctionFlooding
 
struct  VTKHeader
 
class  VTKImageFileHandler
 
class  VtkInt
 VTK Image Interface. More...
 
class  VtkInt< RGB >
 
class  WatershedFlooding
 
class  WidthCriterion
 Width criterion. Useful for Width Opening/Closing algorithms based on max-tree. More...
 

Typedefs

typedef struct smil::AreaData AreaData
 
typedef struct AttribStruct AttribStruct
 
typedef Slot< BaseImageEventBaseImageEventSlot
 
typedef UINT8 BIN_TYPE
 
typedef bool Bit
 
typedef MultichannelType< UINT8, 4 > COLOR_32
 
typedef MultichannelArray< UINT8, 4 > COLOR_32_Array
 
typedef MultichannelType< UINT8, 3 > COLOR_UINT8_3
 
typedef MultichannelArray< UINT8, 3 > COLOR_UINT8_3_Array
 
typedef struct DecisionStruct DecisionStruct
 
typedef Point< double > DoublePoint
 
typedef property_map< Graph_T, edge_capacity_t >::type EdgeCap_T
 
typedef property_map< GraphLV_T, edge_capacity_t >::type EdgeCapLV_T
 
typedef property_map< GraphVV_T, edge_capacity_t >::type EdgeCapVV_T
 
typedef property_map< Graph_T, edge_residual_capacity_t >::type EdgeResCap_T
 
typedef property_map< GraphLV_T, edge_residual_capacity_t >::type EdgeResCapLV_T
 
typedef property_map< GraphVV_T, edge_residual_capacity_t >::type EdgeResCapVV_T
 
typedef property_map< Graph_T, edge_reverse_t >::type EdgeRevCap_T
 
typedef property_map< GraphLV_T, edge_reverse_t >::type EdgeRevCapLV_T
 
typedef property_map< GraphVV_T, edge_reverse_t >::type EdgeRevCapVV_T
 
typedef struct smil::EnclRectData EnclRectData
 
typedef greyval ** GImage
 
typedef adjacency_list< vecS, vecS, directedS, property< vertex_name_t, std::string >, property< edge_capacity_t, double, property< edge_residual_capacity_t, double, property< edge_reverse_t, Traits_T::edge_descriptor > > > > Graph_T
 
typedef adjacency_list< listS, vecS, directedS, property< vertex_name_t, std::string >, property< edge_capacity_t, double, property< edge_residual_capacity_t, double, property< edge_reverse_t, Traits_T::edge_descriptor > > > > GraphLV_T
 
typedef adjacency_list< vecS, vecS, directedS, property< vertex_name_t, std::string >, property< edge_capacity_t, double, property< edge_residual_capacity_t, double, property< edge_reverse_t, Traits_T::edge_descriptor > > > > GraphVV_T
 
typedef int greyval
 
typedef struct smil::HQueue HQueue
 
typedef Image< bool > Image_bool
 
typedef Image< UINT16 > Image_UINT16
 
typedef Image< UINT32 > Image_UINT32
 
typedef Image< UINT8 > Image_UINT8
 
typedef Slot< ImageEvent< UINT16 > > ImageEventSlot_UINT16
 
typedef Slot< ImageEvent< UINT8 > > ImageEventSlot_UINT8
 
typedef struct ImageGray ImageGray
 
typedef struct smil::InertiaData InertiaData
 
typedef int INT
 
typedef short INT16
 
typedef int INT32
 
typedef signed char INT8
 
typedef Point< int > IntPoint
 
typedef long LONG
 
typedef vector< Vector_double > Matrix_double
 
typedef struct MaxNode MaxNode
 
typedef struct MaxTree MaxTree
 
typedef struct smil::tagMyPOINTS MyPOINTS
 
typedef COLOR_UINT8_3_Array RGBArray
 
typedef UINT8 ** ShortImage
 
typedef adjacency_list_traits< vecS, vecS, directedS > Traits_T
 
typedef unsigned char ubyte
 
typedef unsigned int UINT
 
typedef unsigned int uint
 
typedef unsigned short UINT16
 
typedef unsigned int UINT32
 
typedef uint64_t UINT64
 
typedef unsigned char UINT8
 
typedef Point< UINT > UintPoint
 
typedef unsigned long ULONG
 
typedef unsigned long ulong
 
typedef vector< double > Vector_double
 
typedef vector< size_t > Vector_size_t
 
typedef vector< UINT > Vector_UINT
 
typedef property_map< Graph_T, vertex_index_t >::type VertexIndex_T
 
typedef property_map< GraphLV_T, vertex_index_t >::type VertexIndexLV_T
 
typedef property_map< GraphVV_T, vertex_index_t >::type VertexIndexVV_T
 

Enumerations

enum  {
  WDISABLED, W1, W2, W4 =4,
  W8 =6, W16 =8, W32 =10, W48,
  W64, W96, W128, WFULL
}
 
enum  {
  BI_RGB, BI_RLE8, BI_RLE4, BI_BITFIELDS,
  BI_JPEG, BI_PNG
}
 
enum  DType {
  DtUINT8, DtUINT16, DtUINT32, DtUINT64,
  DtINT, DtUINT
}
 
enum  HQ_STATUS {
  HQ_CANDIDATE, HQ_QUEUED, HQ_LABELED, HQ_WS_LINE,
  HQ_FINAL
}
 
enum  seType {
  SE_Generic, SE_Hex, SE_Squ, SE_Cross,
  SE_Horiz, SE_Vert, SE_Cube, SE_Cross3D,
  SE_Rhombicuboctahedron
}
 

Functions

int __kbhit__ ()
 
bool __letthrough__ ()
 
bool __pause__ ()
 
template<class T1 , class imOrValT , class trueT , class falseT , class T2 >
RES_T _compare_base (const Image< T1 > &imIn, const char *compareType, const imOrValT &imOrVal, const trueT &trueImOrVal, const falseT &falseImOrVal, Image< T2 > &imOut)
 
template<class T1 , class T2 >
static RES_T _computeGaborFilterConvolution (T1 *bufferIn, int W, int H, double sigma, double theta, double lambda, double psi, double gamma, T2 *bufferOut)
 
template<class Tin >
static void _fastBilateralFilter (Tin *T, int W, int H, int Z, int methodS, int methodG, int nS, double EcTSx, double EcTSy, double EcTSz, double EcTGx, double EcTGy, double EcTGz)
 
template<class T >
RES_T absDiff (const Image< T > &imIn1, const Image< T > &imIn2, Image< T > &imOut)
 Absolute difference ("vertical distance") between two images. More...
 
template<class T >
RES_T add (const Image< T > &imIn1, const Image< T > &imIn2, Image< T > &imOut)
 Addition. More...
 
template<class T >
RES_T add (const Image< T > &imIn1, const T &value, Image< T > &imOut)
 
template<class T >
RES_T addBorder (const Image< T > &imIn, const size_t &bSize, Image< T > &imOut, const T &borderValue=ImDtTypes< T >::max())
 Add a border of size bSize around the original image. More...
 
template<class T >
RES_T addNoSat (const Image< T > &imIn1, const Image< T > &imIn2, Image< T > &imOut)
 Addition (without saturation check) More...
 
template<class T >
RES_T addNoSat (const Image< T > &imIn1, const T &value, Image< T > &imOut)
 
void AddToAreaData (void *areaattr, SMIL_UNUSED ulong x, SMIL_UNUSED ulong y)
 
void AddToEnclRectData (void *rectattr, ulong x, ulong y)
 
void AddToInertiaData (void *inertiaattr, ulong x, ulong y)
 
void aligned_free (void *p)
 
void * aligned_malloc (size_t size, size_t align=SIMD_VEC_SIZE)
 
template<class T1 , class mapT , class T2 >
RES_T applyLookup (const Image< T1 > &imIn, const mapT &_map, Image< T2 > &imOut, T2 defaultValue=T2(0))
 Apply a lookup map. More...
 
void ApplySmoothing_Horizontal (double *x, double *y, double *Causal, double *AntiCausal, int W, int H, double Alpha)
 
void ApplySmoothing_Vertical (double *x, double *y, double *Causal, double *AntiCausal, int W, int H, double Alpha)
 
template<class T >
RES_T applyThreshold (const Image< T > &_im_, const vector< T > &modes, Image< T > &_out_)
 Apply Threshold. More...
 
template<class T >
size_t area (const Image< T > &imIn)
 Area of an image. More...
 
double AreaAttribute (void *areaattr)
 
template<class T >
RES_T areaClose (const Image< T > &imIn, size_t stopSize, Image< T > &imOut, const StrElt &se=DEFAULT_SE)
 Area closing. More...
 
template<class labelT , class T >
std::vector< double > areaDistribution (stochastic_graph< labelT, T > graph)
 
bool areAllocated (const BaseImage *im,...)
 Check if all images in a list are allocated. More...
 
template<class T >
RES_T areaOpen (const Image< T > &imIn, size_t stopSize, Image< T > &imOut, const StrElt &se=DEFAULT_SE)
 Area opening. More...
 
template<class T >
RES_T areaThreshold (const Image< T > &_im_, const T &threshold, Image< T > &_out_)
 Area Threshold. More...
 
template<class T_in , class T_out >
RES_T arrow (const Image< T_in > &imIn, const char *operation, Image< T_out > &imOut, const StrElt &se=DEFAULT_SE, T_in borderValue=numeric_limits< T_in >::min())
 Arrow operator. More...
 
template<class T1 , class T2 >
RES_T arrowComplement (const Image< T1 > &_im_, Image< T2 > &_out_, const StrElt &s)
 arrowComplement More...
 
template<class T_in , class T_out >
RES_T arrowDual (const Image< T_in > &imIn, const Image< T_in > &imIn2, const char *operation, Image< T_out > &imOut, const StrElt &se=DEFAULT_SE, T_in borderValue=numeric_limits< T_in >::min())
 arrowDual More...
 
template<class T_in , class T_out >
RES_T arrowEqu (const Image< T_in > &imIn, Image< T_out > &imOut, const StrElt &se=DEFAULT_SE, T_in borderValue=numeric_limits< T_in >::min())
 
template<class T_in , class T_out >
RES_T arrowEquDual (const Image< T_in > &imIn, const Image< T_in > &imIn2, Image< T_out > &imOut, const StrElt &se=DEFAULT_SE, T_in borderValue=numeric_limits< T_in >::min())
 arrowEquDual More...
 
template<class T_in , class T_out >
RES_T arrowGrt (const Image< T_in > &imIn, Image< T_out > &imOut, const StrElt &se=DEFAULT_SE, T_in borderValue=numeric_limits< T_in >::min())
 
template<class T_in , class T_out >
RES_T arrowGrtDual (const Image< T_in > &imIn, const Image< T_in > &imIn2, Image< T_out > &imOut, const StrElt &se=DEFAULT_SE, T_in borderValue=numeric_limits< T_in >::min())
 arrowGrtDual More...
 
template<class T_in , class T_out >
RES_T arrowGrtOrEqu (const Image< T_in > &imIn, Image< T_out > &imOut, const StrElt &se=DEFAULT_SE, T_in borderValue=numeric_limits< T_in >::min())
 
template<class T_in , class T_out >
RES_T arrowGrtOrEquDual (const Image< T_in > &imIn, const Image< T_in > &imIn2, Image< T_out > &imOut, const StrElt &se=DEFAULT_SE, T_in borderValue=numeric_limits< T_in >::min())
 arrowGrtOrEquDual More...
 
template<class T_in , class T_out >
RES_T arrowLow (const Image< T_in > &imIn, Image< T_out > &imOut, const StrElt &se=DEFAULT_SE, T_in borderValue=numeric_limits< T_in >::min())
 
template<class T_in , class T_out >
RES_T arrowLowDual (const Image< T_in > &imIn, const Image< T_in > &imIn2, Image< T_out > &imOut, const StrElt &se=DEFAULT_SE, T_in borderValue=numeric_limits< T_in >::min())
 arrowLowDual More...
 
template<class T_in , class T_out >
RES_T arrowLowOrEqu (const Image< T_in > &imIn, Image< T_out > &imOut, const StrElt &se=DEFAULT_SE, T_in borderValue=numeric_limits< T_in >::min())
 
template<class T_in , class T_out >
RES_T arrowLowOrEquDual (const Image< T_in > &imIn, const Image< T_in > &imIn2, Image< T_out > &imOut, const StrElt &se=DEFAULT_SE, T_in borderValue=numeric_limits< T_in >::min())
 arrowLowOrEquDual More...
 
template<class T , class arrowT >
RES_T arrowMin (const Image< T > &im, Image< arrowT > &arrow, const StrElt &se, T borderValue=numeric_limits< T >::max())
 
template<class T >
RES_T arrowMinStep (const Image< T > &im, Image< T > &arrow, const StrElt &se, T borderValue=numeric_limits< T >::max())
 
template<class T >
RES_T asfClose (const Image< T > &imIn, Image< T > &imOut, const StrElt &se=DEFAULT_SE)
 Alternate Sequential Filter beginning by a closing. More...
 
template<class T >
RES_T asfOpen (const Image< T > &imIn, Image< T > &imOut, const StrElt &se=DEFAULT_SE)
 Alternate Sequential Filter beginning by an opening. More...
 
template<class T , class CriterionT , class OffsetT , class LabelT >
RES_T attributeOpen (const Image< T > &imIn, Image< T > &imOut, size_t stopSize, const StrElt &se)
 
double BARYGL (int *matrix, int Width, int nbGrayLevel)
 F11 - Methode qui calcule le barycentre sur les niveaux de gris. More...
 
double BARYS (int *matrix, int Width, int nbGrayLevel)
 F12 - Methode qui calcule le barycentre sur les tailles. More...
 
template<class T , class labelT >
RES_T basins (const Image< T > &imIn, const Image< labelT > &imMarkers, Image< labelT > &imBasinsOut, const StrElt &se=DEFAULT_SE)
 Constrained basins. More...
 
template<class T , class labelT >
RES_T basins (const Image< T > &imIn, Image< labelT > &imBasinsInOut, const StrElt &se=DEFAULT_SE)
 
template<class T >
RES_T binBuild (const Image< T > &imIn, const Image< T > &imMask, Image< T > &imOut, const StrElt &se=DEFAULT_SE)
 Reconstruction (using hierarchical queues).
 
template<class T >
RES_T bitAnd (const Image< T > &imIn1, const Image< T > &imIn2, Image< T > &imOut)
 
template<class T >
RES_T bitOr (const Image< T > &imIn1, const Image< T > &imIn2, Image< T > &imOut)
 
void bitShiftLeft (BitArray lIn, int dx, size_t lineLen, BitArray lOut, Bit borderValue)
 
void bitShiftRight (BitArray lIn, int dx, size_t lineLen, BitArray lOut, Bit borderValue)
 
template<class T >
RES_T bitXOr (const Image< T > &imIn1, const Image< T > &imIn2, Image< T > &imOut)
 
template<class labelT , class T >
void bottomUpHierarchy (std::vector< double > &weights, std::vector< hierarchy > &h, const double &r0, stochastic_graph< labelT, T > &graph)
 
std::vector< IntPointbresenhamPoints (int p1x, int p1y, int p2x, int p2y, int xMax=0, int yMax=0)
 
template<>
RES_T build (const Image< Bit > &imIn, const Image< Bit > &imMark, Image< Bit > &imOut, const StrElt &se)
 
template<class T >
RES_T build (const Image< T > &imIn, const Image< T > &imMask, Image< T > &imOut, const StrElt &se=DEFAULT_SE)
 Reconstruction (using hierarchical queues).
 
template<class T >
RES_T buildClose (const Image< T > &imIn, Image< T > &imOut, const StrElt &se=DEFAULT_SE)
 Closing by reconstruction.
 
template<class T >
RES_T buildOpen (const Image< T > &imIn, Image< T > &imOut, const StrElt &se=DEFAULT_SE)
 Opening by reconstruction. More...
 
template<typename T1 , typename T2 >
static RES_T Canny (T1 *imIn, int W, int H, double Sigma, T2 *imNorme)
 
template<class T1 , class T2 >
RES_T cast (const Image< T1 > &imIn, Image< T2 > &imOut)
 Cast from an image type to another. More...
 
CubeSE cbSE (UINT s=1)
 
template<class labelT , class T >
size_t CCL_stochasticGraph (stochastic_graph< labelT, T > &r, vector< labelT > &labels)
 
template<class labelT , class T >
size_t CCLUnionFind_stochasticGraph (stochastic_graph< labelT, T > &graph, vector< labelT > &labels)
 
template<class T >
RES_T clone (const Image< T > &imIn, Image< T > &imOut)
 Clone an image. More...
 
template<class T >
RES_T close (const Image< T > &imIn, Image< T > &imOut, const StrElt &se=DEFAULT_SE)
 Morphological grayscale closing. More...
 
template<class T >
RES_T close (const Image< T > &imIn, Image< T > &imOut, UINT seSize)
 
template<class labelT , class T >
bool compAltitude (const stochastic_edge< labelT, T > &e1, const stochastic_edge< labelT, T > &e2)
 
template<class T1 , class T2 >
RES_T compare (const Image< T1 > &imIn1, const char *compareType, const Image< T1 > &imIn2, const Image< T2 > &trueIm, const Image< T2 > &falseIm, Image< T2 > &imOut)
 Compare two images (or an image and a value) More...
 
template<class T1 , class T2 >
RES_T compare (const Image< T1 > &imIn1, const char *compareType, const Image< T1 > &imIn2, const T2 &trueVal, const Image< T2 > &falseIm, Image< T2 > &imOut)
 
template<class T1 , class T2 >
RES_T compare (const Image< T1 > &imIn1, const char *compareType, const Image< T1 > &imIn2, const Image< T2 > &trueIm, const T2 &falseVal, Image< T2 > &imOut)
 
template<class T1 , class T2 >
RES_T compare (const Image< T1 > &imIn1, const char *compareType, const Image< T1 > &imIn2, const T2 &trueVal, const T2 &falseVal, Image< T2 > &imOut)
 
template<class T1 , class T2 >
RES_T compare (const Image< T1 > &imIn, const char *compareType, const T1 &value, const Image< T2 > &trueIm, const Image< T2 > &falseIm, Image< T2 > &imOut)
 
template<class T1 , class T2 >
RES_T compare (const Image< T1 > &imIn, const char *compareType, const T1 &value, const T2 &trueVal, const Image< T2 > &falseIm, Image< T2 > &imOut)
 
template<class T1 , class T2 >
RES_T compare (const Image< T1 > &imIn, const char *compareType, const T1 &value, const Image< T2 > &trueIm, const T2 &falseVal, Image< T2 > &imOut)
 
template<class T1 , class T2 >
RES_T compare (const Image< T1 > &imIn, const char *compareType, const T1 &value, const T2 &trueVal, const T2 &falseVal, Image< T2 > &imOut)
 
double Compute2D (UINT8 *bufferIn, int W, int H, int Z, int NbNDG, int *Matrix, int mW, int mH, int GeodesicMethod=0)
 
template<class T , class CriterionT , class OffsetT , class LabelT , class tAttType >
void compute_AttributeOpening (MaxTree2< T, CriterionT, OffsetT, LabelT > &tree, T *lut_node, LabelT root, tAttType stopSize)
 
template<class T1 , class T2 >
void compute_contrast (MaxTree2< T1, HeightCriterion, size_t, UINT32 > &tree, T1 *transformee_node, T2 *indicatrice_node, UINT32 root, T2 stopSize, UINT delta=0)
 
template<class T1 , class T2 >
void compute_contrast_MSER (MaxTree2< T1, HWACriterion, size_t, UINT32 > &tree, T1 *transformee_node, T2 *indicatrice_node, UINT32 root, T2 stopSize, UINT delta=0, UINT method=2, UINT minArea=0, T1 threshold=0, bool use_textShape=0)
 
template<class T1 , class T2 >
void compute_max (MaxTree2< T1, HeightCriterion, size_t, UINT32 > &tree, T1 *transformee_node, T2 *indicatrice_node, UINT32 node, T2 stop, T1 max_tr, T2 max_in, T2 hauteur_parent, T1 valeur_parent, T1 previous_value)
 
double ComputeAdaptativeGradient (bool *Bli, double *Orig, int W, SMIL_UNUSED int H, int k, int l)
 
double ComputeBinary (int *pixelDone, int W, int H, int D, int *Matrix, int mW, SMIL_UNUSED int mH, int Level, int GeodesicMethod=0)
 
int ComputeBinaryCC (int *DistanceMap, std::queue< int > *fifoSave, int W, int H, int D, int BaryX, int BaryY, int BaryZ, int GeodesicMethod=0)
 
template<class T >
RES_T ComputeBinaryPathOpening (UINT8 *imIn, int W, int H, Image< T > &imOut)
 
bool * ComputeBli (double *ImgFiltrer, double *ImgBuf, int W, int H)
 
template<class T >
map< T, BlobcomputeBlobs (const Image< T > &imIn, bool onlyNonZero=true)
 Create a map of Blob from a labelized image.
 
template<class T , class CriterionT , class OffsetT , class LabelT , class tAttType >
void ComputeDeltaUO (MaxTree2< T, CriterionT, OffsetT, LabelT > &tree, T *transformee_node, tAttType *indicatrice_node, int node, int nParent, T prev_residue, tAttType stop, UINT delta, int isPrevMaxT)
 
template<class T , class CriterionT , class OffsetT , class LabelT , class tAttType >
void ComputeDeltaUOMSER (MaxTree2< T, CriterionT, OffsetT, LabelT > &tree, T *transformee_node, tAttType *indicatrice_node, int node, int nParent, int first_ancestor, tAttType stop, UINT delta, UINT method, int isPrevMaxT, UINT minArea=0, T threshold=0, T mymax=0)
 
template<class T , class CriterionT , class OffsetT , class LabelT , class tAttType >
void ComputeDeltaUOMSERSC (MaxTree2< T, CriterionT, OffsetT, LabelT > &tree, T *transformee_node, tAttType *indicatrice_node, int node, int nParent, int first_ancestor, tAttType stop, UINT delta, int isPrevMaxT)
 
void ComputeFeatures (int *Matrix, int W, int H, char *szFileName)
 
void computeFillAspectRatioFactor (UINT wNode, UINT cNode, UINT area, UINT width, UINT height, float &fillRatio, float &AspectRatio)
 
int ComputeLambda (UINT32 *Lambda, int W, int H, int x, int y, int Dir, int Dim=8)
 
float ComputeLambda_GraphV2 (float *Lambda, int W, int H, int x, int y, int Dir, int Dim=8)
 
template<class T1 >
void ComputeMeanValue (T1 *imIn, int W, int H, int D, int *Somme, int *NbComposanteConnexe)
 
bool ComputeSmoothing (double *x, double *y, int W, int H, double Alpha)
 
template<class labelT , class T >
bool compWeight (const stochastic_edge< labelT, T > &e1, const stochastic_edge< labelT, T > &e2)
 
template<class T >
RES_T convolve (const Image< T > &imIn, const vector< double > &kernel, Image< T > &imOut)
 Convolution in both x and y directions using the same 1D kernel. More...
 
template<class T1 >
RES_T copy (const Image< T1 > &, size_t, size_t, size_t, size_t, size_t, size_t, Image< RGB > &, size_t=0, size_t=0, size_t=0)
 
template<class T1 , class T2 >
RES_T copy (const Image< T1 > &imIn, size_t startX, size_t startY, size_t startZ, size_t sizeX, size_t sizeY, size_t sizeZ, Image< T2 > &imOut, size_t outStartX=0, size_t outStartY=0, size_t outStartZ=0)
 Copy image. More...
 
template<class T1 , class T2 >
RES_T copy (const Image< T1 > &imIn, size_t startX, size_t startY, size_t sizeX, size_t sizeY, Image< T2 > &imOut, size_t outStartX=0, size_t outStartY=0, size_t outStartZ=0)
 
template<class T1 , class T2 >
RES_T copy (const Image< T1 > &imIn, size_t startX, size_t startY, size_t startZ, Image< T2 > &imOut, size_t outStartX=0, size_t outStartY=0, size_t outStartZ=0)
 
template<class T1 , class T2 >
RES_T copy (const Image< T1 > &imIn, size_t startX, size_t startY, Image< T2 > &imOut, size_t outStartX=0, size_t outStartY=0, size_t outStartZ=0)
 
template<class T1 , class T2 >
RES_T copy (const Image< T1 > &imIn, Image< T2 > &imOut, size_t outStartX, size_t outStartY, size_t outStartZ=0)
 
template<class T1 , class T2 >
RES_T copy (const Image< T1 > &imIn, Image< T2 > &imOut)
 
template<class T >
RES_T copy (const Image< T > &imIn, Image< T > &imOut)
 
template<>
RES_T copy< Bit > (const Image< Bit > &imIn, Image< Bit > &imOut)
 
template<class MCT1 , class T2 >
RES_T copyChannel (const Image< MCT1 > &imIn, const UINT &chanNum, Image< T2 > &imOut)
 Copy a channel of multichannel image into a single channel image. More...
 
template<>
void copyLine< Bit > (const typename Image< Bit >::lineType lIn, const size_t size, typename Image< Bit >::lineType lOut)
 
template<>
void copyLine< RGB > (const unaryLineFunctionBase< RGB >::lineInType lIn, const size_t size, unaryLineFunctionBase< RGB >::lineInType lOut)
 
template<class T1 , class MCT2 >
RES_T copyToChannel (const Image< T1 > &imIn, const UINT &chanNum, Image< MCT2 > &imOut)
 Copy a single channel image into a channel of multichannel image. More...
 
template<class T1 , class T2 >
RES_T correlation (Image< T1 > &imIn1, Image< T1 > &imIn2, Image< T2 > &imOut)
 2D image (normalized) cross correlation using FFT. More...
 
template<class T >
RES_T CountNbCCperThreshold (const Image< T > &imIn, int *NbCC, int Invert=0)
 
template<class T >
RES_T CountNbPixelOfNDG (const Image< T > &imIn, int NDG, int *NbPixel)
 
template<typename T >
T * createAlignedBuffer (size_t size)
 
BaseImagecreateFromFile (const char *filename)
 
GImage CreateImage (int width, int height)
 
template<class T >
RES_T crop (const Image< T > &imIn, size_t startX, size_t startY, size_t startZ, size_t sizeX, size_t sizeY, size_t sizeZ, Image< T > &imOut)
 Crop image. More...
 
template<class T >
RES_T crop (Image< T > &imInOut, size_t startX, size_t startY, size_t startZ, size_t sizeX, size_t sizeY, size_t sizeZ)
 
template<class T >
RES_T crop (const Image< T > &imIn, size_t startX, size_t startY, size_t sizeX, size_t sizeY, Image< T > &imOut)
 
template<class T >
RES_T crop (Image< T > &imInOut, size_t startX, size_t startY, size_t sizeX, size_t sizeY)
 
CrossSE cSE (UINT s=1)
 
template<class labelT , class T >
void cut (std::vector< double > &weights, std::vector< hierarchy > &h, stochastic_graph< labelT, T > &graph, const size_t &node)
 
template<typename T >
void debed (T *imOut, int W, SMIL_UNUSED int H, int size, double *Img, int NewW, int NewH)
 
template<typename T >
void deleteAlignedBuffer (T *ptr)
 
void DeleteAreaData (void *areaattr)
 
void DeleteEnclRectData (void *rectattr)
 
void DeleteInertiaData (void *inertiaattr)
 
template<typename T >
RES_T Deriche (T *imIn, int W, int H, double Alpha, T *imOut)
 
bool DericheFilter (double *Img, int W, int H, double Alpha)
 
float dGauss (float x, float Sigma)
 
template<class T >
RES_T diff (const Image< T > &imIn1, const Image< T > &imIn2, Image< T > &imOut)
 Difference between two images.
 
template<class T >
RES_T diff (const Image< T > &imIn, const T &value, Image< T > &imOut)
 
template<class T >
RES_T dilate (const Image< T > &imIn, Image< T > &imOut, const StrElt &se=DEFAULT_SE, T borderVal=ImDtTypes< T >::min())
 Morphological grayscale dilation. More...
 
template<class T >
RES_T dilate (const Image< T > &imIn, Image< T > &imOut, UINT seSize, T borderVal=ImDtTypes< T >::min())
 
std::string displayBytes (size_t bytes)
 
template<class labelT , class T >
void displayStochasticMarker (const Image< labelT > &img, std::vector< int > &markers, stochastic_graph< labelT, T > &graph, std::vector< labelT > &originals, Image< labelT > &out, const StrElt &s)
 
string displayTime (double tSec)
 
template<class T1 , class T2 >
RES_T dist (const Image< T1 > &imIn, Image< T2 > &imOut, const StrElt &se=DEFAULT_SE)
 Distance function.
 
template<class T1 , class T2 >
RES_T dist_cross_3d_per_label (const Image< T1 > &imIn, Image< T2 > &imOut)
 
template<class T1 , class T2 >
RES_T dist_per_label (const Image< T1 > &imIn, Image< T2 > &imOut, const StrElt &se=DEFAULT_SE)
 
template<class T1 , class T2 >
RES_T distCross (const Image< T1 > &imIn, Image< T2 > &imOut)
 Distance Cross function (???).
 
template<class T1 , class T2 >
RES_T distCross3d (const Image< T1 > &imIn, Image< T2 > &imOut)
 Distance Cross3D function (???).
 
template<class T1 , class T2 >
RES_T distEuclidean (const Image< T1 > &imIn, Image< T2 > &imOut)
 Euclidean Distance function.
 
template<class T1 , class T2 >
RES_T distGeneric (const Image< T1 > &imIn, Image< T2 > &imOut, const StrElt &se=DEFAULT_SE)
 Generic Distance function.
 
template<class T1 , class T2 >
RES_T distSquare (const Image< T1 > &imIn, Image< T2 > &imOut)
 Distance Square function (???).
 
template<class T >
RES_T distV0 (const Image< T > &imIn, Image< T > &imOut, const StrElt &se=DEFAULT_SE)
 Base distance function performed with successive erosions.
 
template<class T >
RES_T div (const Image< T > &imIn1, const Image< T > &imIn2, Image< T > &imOut)
 Division.
 
template<class T >
RES_T div (const Image< T > &imIn, const double &dValue, Image< T > &imOut)
 
template<typename T >
void Dmemcpy (T *out, const T *in, size_t size)
 
template<class labelT , class T >
RES_T drawBlobs (map< labelT, Blob > &blobs, Image< T > &imOut, T blobsValue=ImDtTypes< T >::max(), bool fillFirst=true, T defaultValue=T(0))
 Represent Blobs in an image. More...
 
template<class labelT , class T >
RES_T drawBlobs (map< labelT, Blob > &blobs, map< labelT, T > &lut, Image< T > &imOut, bool fillFirst=true, T defaultValue=T(0))
 Represent Blobs in an image with a lookup map.
 
template<class mosImT , class graphT , class imOutT >
RES_T drawGraph (const Image< mosImT > &imMosaic, const graphT &graph, Image< imOutT > &imOut, imOutT linesValue=ImDtTypes< imOutT >::max())
 
template<class mosImT , class imOutT >
RES_T drawGraph (const Image< mosImT > &imMosaic, const Graph< mosImT, imOutT > &graph, Image< imOutT > &imOut, imOutT linesValue=ImDtTypes< imOutT >::max())
 
template<class T >
RES_T dualBuild (const Image< T > &imIn, const Image< T > &imMask, Image< T > &imOut, const StrElt &se=DEFAULT_SE)
 Dual reconstruction (using hierarchical queues).
 
template<class T >
RES_T dualTopHat (const Image< T > &imIn, Image< T > &imOut, const StrElt &se=DEFAULT_SE)
 Close (dual) Top-Hat. More...
 
template<typename T >
double * embed (T *imIn, int W, int H, int size, int *NewW, int *NewH)
 
template<class T1 >
 ENABLE_IF (!IS_SAME(T1, size_t), RES_T) mosaicToGraph(const Image< T1 > &imMosaic
 
Graph const StrElt class T2 ENABLE_IF (!IS_SAME(T1, size_t) &&!IS_SAME(T2, size_t), RES_T) mosaicToGraph(const Image< T1 > &imMosaic
 
Graph const StrElt class T2 const Image< T2 > Graph const StrElt class T2 const Image< T2 > const Image< T2 > Graph const StrElt class T2 ENABLE_IF (!IS_SAME(T1, UINT), RES_T) mosaicToGraph(const Image< T1 > &imMosaic
 
Graph const StrElt class T2 const Image< T2 > Graph const StrElt class T2 const Image< T2 > const Image< T2 > Graph const StrElt class T2 const Image< T2 > Graph< UINT, T2 > const StrElt class T2 const Image< T2 > const Image< T2 > Graph< UINT, T2 > const StrElt class T2 ENABLE_IF (!IS_SAME(T2, UINT), RES_T) mosaicToGraph(const Image< T1 > &imMosaic
 
template<class T >
 ENABLE_IF (!IS_SAME(T, UINT), RES_T) graphToMosaic(const Image< T > &imMosRef
 
template<class T >
 ENABLE_IF (!IS_SAME(T, size_t), RES_T) graphToMosaic(const Image< T > &imMosRef
 
template<class mosImT , class imOutT >
 ENABLE_IF (!IS_SAME(mosImT, size_t) &&!IS_SAME(imOutT, size_t), RES_T) drawGraph(const Image< mosImT > &imMosaic
 
const Graph Image< imOutT > imOutT class imOutT ENABLE_IF (!IS_SAME(mosImT, UINT), RES_T) drawGraph(const Image< mosImT > &imMosaic
 
const Graph Image< imOutT > imOutT class imOutT const Graph< UINT, imOutT > Image< imOutT > imOutT class imOutT ENABLE_IF (!IS_SAME(imOutT, UINT), RES_T) drawGraph(const Image< mosImT > &imMosaic
 
template<class T1 , class T2 >
 ENABLE_IF (!IS_SAME(T1, UINT8) &&!IS_SAME(T1, UINT16), RES_T) applyLookup(const Image< T1 > &imIn
 
const map< T1, T2 > Image< T2 > T2 class T2 ENABLE_IF (IS_SAME(T1, UINT8)||IS_SAME(T1, UINT16), RES_T) applyLookup(const Image< T1 > &imIn
 
double EnclRectAreaAttribute (void *rectattr)
 
double EnclRectDiagAttribute (void *rectattr)
 
template<class T >
void endswap (T *objp)
 
template<>
RES_T enhanceContrast (const Image< Bit > &imIn, Image< Bit > &imOut, double sat)
 
template<class T >
RES_T enhanceContrast (const Image< T > &imIn, Image< T > &imOut, double sat=0.25)
 Enhance contrast.
 
template<class T >
RES_T equ (const Image< T > &imIn1, const Image< T > &imIn2, Image< T > &imOut)
 Equality operator. More...
 
template<class T >
RES_T equ (const Image< T > &imIn, const T &value, Image< T > &imOut)
 
template<class T >
bool equ (const Image< T > &imIn1, const Image< T > &imIn2)
 Test equality between two images. More...
 
template<class T >
RES_T erode (const Image< T > &imIn, Image< T > &imOut, const StrElt &se=DEFAULT_SE, T borderVal=ImDtTypes< T >::max())
 Morphological grayscale erosion. More...
 
template<class T >
RES_T erode (const Image< T > &imIn, Image< T > &imOut, UINT seSize, T borderVal=ImDtTypes< T >::max())
 
void ExitPixelHeap (PixelHeap *p_heap)
 
template<class T >
RES_T extendTriplePoints (Image< T > &_triple_, const Image< T > &_skiz_, const StrElt &_se_)
 Extend Triple Points. More...
 
template<class T1 , class T2 >
RES_T extinctionValues (const Image< T1 > &imIn, Image< T2 > &imOut, const StrElt &se=DEFAULT_SE)
 Extinction values.
 
template<class T >
RES_T fastExtrema (const Image< T > &imIn, Image< T > &imOut, const StrElt &se, const char *operation, const T &border_value)
 
template<class T1 , class T2 >
size_t fastLabel (const Image< T1 > &imIn, Image< T2 > &imOut, const StrElt &se=DEFAULT_SE)
 Image labelization. More...
 
template<class T >
RES_T fastMaxima (const Image< T > &imIn, Image< T > &imOut, const StrElt &se)
 Regional maxima computation based on arrowing graphs.
 
template<class T >
RES_T fastMinima (const Image< T > &imIn, Image< T > &imOut, const StrElt &se)
 Regional minima computation based on arrowing graphs.
 
template<class T >
RES_T fill (Image< T > &imOut, const T &value)
 Fill an image with a given value. More...
 
long FillExtremum (int *Qpos, SMIL_UNUSED int lambda, greyval *im, greyval *label, int width, int height, PixelHeap *p_heap, int *Queue, int Qmax, long *fill_list)
 
template<class T >
RES_T fillHoles (const Image< T > &imIn, Image< T > &imOut, const StrElt &se=DEFAULT_SE)
 Hole filling.
 
vector< IntPointfilterStrElt (StrElt se)
 
int Find (struct subset subsets[], int i)
 
template<class T1 , class T2 >
RES_T findTriplePoints (const Image< T1 > &_im_, const Image< T2 > &_skiz_, Image< T2 > &_out_, const UINT &val, const StrElt &_se_)
 Find Triple Points. More...
 
template<class T >
RES_T FromSkeletonComputeGranulometry (const Image< T > &imIn, UINT32 *Granulo, int nbElt, float ScaleX, float ScaleY, float ScaleZ)
 FromSkeletonComputeGranulometry : Compute the histogram of lenght of the skeleton. More...
 
template<class T >
RES_T fullThick (const Image< T > &imIn, const CompStrEltList &mhtSE, Image< T > &imOut)
 Thicking transform (full)
 
template<class T >
RES_T fullThick (const Image< T > &imIn, const CompStrElt &compSE, Image< T > &imOut)
 
template<class T >
RES_T fullThick (const Image< T > &imIn, const StrElt &foreSE, const StrElt &backSE, Image< T > &imOut)
 
template<class T >
RES_T fullThin (const Image< T > &imIn, const CompStrEltList &mhtSE, Image< T > &imOut)
 Thinning transform (full)
 
template<class T >
RES_T fullThin (const Image< T > &imIn, const CompStrElt &compSE, Image< T > &imOut)
 
template<class T >
RES_T fullThin (const Image< T > &imIn, const StrElt &foreSE, const StrElt &backSE, Image< T > &imOut)
 
float Gauss (float x, float Sigma)
 
template<class T >
RES_T gaussianFilter (const Image< T > &imIn, size_t radius, Image< T > &imOut)
 2D Gaussian filter More...
 
void generateInverses (vector< UINT > &inverses, const StrElt &s)
 
std::vector< int > generateMarkers (const std::vector< double > &prob_dist, std::default_random_engine &generator)
 
void generateNeighbors (localesT &neighbors, const StrElt &s)
 
void generateReachables (localesT &reachables, const localesT &neighbors, const StrElt &s)
 
template<class T >
RES_T geoBuild (const Image< T > &imIn, const Image< T > &imMask, Image< T > &imOut, const StrElt &se=DEFAULT_SE)
 
template<class T1 , class T2 >
RES_T geoCuts (const Image< T1 > &imIn, const Image< T1 > &imGradx, const Image< T1 > &imGrady, const Image< T2 > &imMarker, const StrElt &nl, Image< T2 > &imOut)
 Returns Geo Cuts algorithm. More...
 
template<class T >
RES_T geoCutsMinSurfaces (const Image< T > &imIn, const Image< T > &imGrad, const Image< T > &imMarker, const StrElt &nl, Image< T > &imOut)
 Geo Cuts algorithm on a region adjacency graph, imMosaic is a mosaic, ImMarker is composed of three values 0 for unmarked pixels, 2 and 3 for object and background markers. More...
 
template<class T1 , class T2 >
RES_T geoCutsMinSurfaces (const Image< T1 > &imIn, const Image< T2 > &imMarker, const StrElt &nl, Image< T2 > &imOut)
 Geo Cuts algorithm on a pixel adjacency graph, ImMarker is composed of three values 0 for unmarked pixels, 2 and 3 for object and background markers. More...
 
template<class T1 , class T2 >
RES_T geoCutsMRF_EdgePreserving (const Image< T1 > &imIn, const Image< T2 > &imMarker, double Beta, double Sigma, const StrElt &nl, Image< T2 > &imOut)
 
template<class T1 , class T2 >
RES_T geoCutsMRF_Ising (const Image< T1 > &imIn, const Image< T2 > &imMarker, double Beta, double Sigma, const StrElt &nl, Image< T2 > &imOut)
 
template<class T1 , class T2 >
RES_T geoCutsMRF_Potts (const Image< T1 > &imIn, const Image< T2 > &imMarker, double Beta, double Sigma, const StrElt &nl, Image< T2 > &imOut)
 
template<class T1 , class T2 >
RES_T geoCutsMultiway_MinSurfaces (const Image< T1 > &imIn, const Image< T2 > &imMarker, const StrElt &nl, Image< T2 > &imOut)
 Multiple object segmentation, Geo Cuts algorithm on a pixel adjacency graph, ImMarker is composed of three values 0 for unmarked pixels, >0 for objects markers. More...
 
template<class T >
RES_T geoCutsMultiWay_MinSurfaces (const Image< T > &imIn, const Image< T > &imGrad, const Image< T > &imMarker, const StrElt &nl, Image< T > &imOut)
 
template<class T1 , class T2 >
RES_T geoCutsMultiway_Watershed (const Image< T1 > &imIn, const Image< T2 > &imMarker, const double Power, const StrElt &nl, Image< T2 > &imOut)
 Watershed as a mutli_terminal cut (multi label) More...
 
template<class T1 , class T2 >
RES_T geoCutsWatershed_MinCut (const Image< T1 > &imIn, const Image< T2 > &imMarker, const double Power, const StrElt &nl, Image< T2 > &imOut)
 Watershed as a Minimum Cut (2 labels) More...
 
void GeodesicPathCC (double *DistanceMap, std::queue< int > *fifoSave, int W, int H, int D, int BaryX, int BaryY, int BaryZ, int Allongement=0, float ScaleX=1, float ScaleY=1, float ScaleZ=1)
 
void GeodesicPathFlatZones (double *DistanceMap, double *LabelMap, std::queue< int > *fifoSave, int W, int H, int D, int BaryX, int BaryY, int BaryZ, int Allongement=0, float ScaleX=1, float ScaleY=1, float ScaleZ=1)
 
template<class T >
RES_T geoDil (const Image< T > &imIn, const Image< T > &imMask, Image< T > &imOut, const StrElt &se=DEFAULT_SE)
 Geodesic dilation.
 
template<class T1 , class T2 >
void geoDistance (const Image< T1 > &_in_, Image< T2 > &_out_, const StrElt &se)
 
template<class T >
RES_T geoDualBuild (const Image< T > &imIn, const Image< T > &imMask, Image< T > &imOut, const StrElt &se=DEFAULT_SE)
 
template<class T >
RES_T geoEro (const Image< T > &imIn, const Image< T > &imMask, Image< T > &imOut, const StrElt &se=DEFAULT_SE)
 Geodesic erosion.
 
RES_T getBMPFileInfo (const char *filename, ImageFileInfo &fInfo)
 
template<class T1 , class T2 >
RES_T GetConfusionMatrix (const Image< T1 > &imMask, const Image< T2 > &imIn2, int seuil, int *FP, int *FN, int *TP, int *TN, Image< RGB > &imOut, int WantImOut=1)
 
static double getCpuTime ()
 
template<class T >
int getCvType ()
 
template<>
int getCvType< UINT16 > ()
 
template<>
int getCvType< UINT8 > ()
 
template<class T >
const char * getDataTypeAsString (T *=(T *) NULL)
 
template<>
const char * getDataTypeAsString (RGB *)
 
template<>
const char * getDataTypeAsString (Bit *val)
 
string getFileExtension (const char *fileName)
 
RES_T getFileInfo (const char *filename, ImageFileInfo &fInfo)
 
template<class T >
ImageFileHandler< T > * getHandlerForFile (const char *filename)
 
template<class labelT , class T >
std::vector< hierarchygetHierarchy (stochastic_graph< labelT, T > &graph)
 
RES_T getHttpFile (const char *url, const char *outfilename)
 
string getHttpFile (const char *url)
 Download file data into a string buffer.
 
RES_T getJPGFileInfo (const char *filename, ImageFileInfo &fInfo)
 
int GetNbCC (UINT8 *pixelDone, int W, int H, int D)
 
int GetNeighbors (ubyte *shape, ulong imgwidth, ulong imgsize, ulong p, ulong *neighbors)
 
template<class T >
int getNumpyType (Image< T > &)
 
template<>
int getNumpyType (Image< UINT8 > &)
 
template<>
int getNumpyType (Image< INT8 > &)
 
template<>
int getNumpyType (Image< UINT16 > &)
 
template<>
int getNumpyType (Image< INT16 > &)
 
template<>
int getNumpyType (Image< UINT32 > &)
 
template<>
int getNumpyType (Image< INT32 > &)
 
template<>
int getNumpyType (Image< unsigned long > &)
 
template<>
int getNumpyType (Image< long > &)
 
template<>
int getNumpyType (Image< float > &)
 
template<>
int getNumpyType (Image< double > &)
 
RES_T getPNGFileInfo (const char *filename, ImageFileInfo &fInfo)
 
template<class labelT , class T >
stochastic_graph< labelT, T > getSubStochasticGraph (stochastic_graph< labelT, T > &graph, const size_t &i, const vector< labelT > &labels, vector< labelT > &originals)
 
RES_T getTIFFFileInfo (const char *filename, ImageFileInfo &fInfo)
 
RES_T getVTKFileInfo (const char *filename, ImageFileInfo &fInfo)
 
template<class T >
int getVtkType ()
 
template<>
int getVtkType< INT16 > ()
 
template<>
int getVtkType< INT8 > ()
 
template<>
int getVtkType< UINT16 > ()
 
template<>
int getVtkType< UINT8 > ()
 
double GLNU (int *matrix, int Width, int nbGrayLevel)
 F8 - Gray Level Non Uniform, GLNU. More...
 
template<class T >
RES_T gradient (const Image< T > &imIn, Image< T > &imOut, const StrElt &dilSe, const StrElt &eroSe)
 Morphological gradient. More...
 
template<class T >
RES_T gradient (const Image< T > &imIn, Image< T > &imOut, const StrElt &se=DEFAULT_SE)
 
template<class graphT >
graphT graphMST (const graphT &graph)
 
Graph const StrElt class T2 const Image< T2 > Graph const StrElt class T2 const Image< T2 > const Image< T2 > Graph const StrElt class T2 const Image< T2 > Graph< UINT, T2 > const StrElt class T2 const Image< T2 > const Image< T2 > Graph< UINT, T2 > const StrElt class T2 const Image< T2 > Graph< T1, UINT > const StrElt class T2 const Image< T2 > const Image< T2 > Graph< T1, UINT > const StrElt class graphT RES_T graphToMosaic (const Image< T > &imMosRef, const graphT &graph, Image< T > &imOut)
 
template<class T >
RES_T graphToMosaic (const Image< T > &imMosRef, const Graph< T, T > &graph, Image< T > &imOut)
 
template<class T >
RES_T grayLevelDistanceZM (const Image< T > &imIn, int NbNDG, int GeodesicMethod, char *szFileName)
 grayLevelDistanceZM More...
 
template<class T1 >
RES_T grayLevelDistanceZM (const Image< T1 > &imIn, int NbNDG, int GeodesicMethod, char *szFileName)
 
template<class T >
RES_T grayLevelDistanceZM_Diameter (const Image< T > &imIn, int NbNDG, char *szFileName)
 grayLevelDistanceZM_Diameter More...
 
template<class T >
RES_T grayLevelDistanceZM_Elongation (const Image< T > &imIn, int NbNDG, char *szFileName)
 grayLevelDistanceZM_Elongation More...
 
template<class T >
RES_T grayLevelDistanceZM_Tortuosity (const Image< T > &imIn, int NbNDG, char *szFileName)
 grayLevelDistanceZM_Tortuosity More...
 
template<class T >
RES_T grayLevelSizeZM (const Image< T > &imIn, int NbNDG, char *szFileName)
 grayLevelSizeZM More...
 
template<class T1 >
RES_T grayLevelSizeZM (const Image< T1 > &imIn, int NbNDG, char *szFileName)
 
void GreyAreaOpening (int lambda, int width, int height, ShortImage image, greyval *opening)
 
template<class T >
RES_T grt (const Image< T > &imIn1, const Image< T > &imIn2, Image< T > &imOut)
 Greater operator.
 
template<class T >
RES_T grt (const Image< T > &imIn1, const T &value, Image< T > &imOut)
 
template<class T >
RES_T grtOrEqu (const Image< T > &imIn1, const Image< T > &imIn2, Image< T > &imOut)
 Greater or equal operator.
 
template<class T >
RES_T grtOrEqu (const Image< T > &imIn1, const T &value, Image< T > &imOut)
 
template<class T >
RES_T hammingWeight (const Image< T > &_im_, Image< T > &_out_)
 hammingWeight SIMD version of WP2 - Nifty Revised.
 
RES_T hammingWeight (const Image< UINT8 > &_im_, Image< UINT8 > &_out_)
 hammingWeight More...
 
bool haveSameSize (const BaseImage *im,...)
 Check if all images in a list have the same size. More...
 
template<class T >
RES_T hBuild (const Image< T > &imIn, const T &height, Image< T > &imOut, const StrElt &se=DEFAULT_SE)
 Reconstruction (using hierarchical queues). More...
 
template<class T >
RES_T hDualBuild (const Image< T > &imIn, const T &height, Image< T > &imOut, const StrElt &se=DEFAULT_SE)
 Dual h-Reconstuction. More...
 
int HeapEmpty (PixelHeap *p_heap)
 
template<class T >
RES_T heightClose (const Image< T > &imIn, size_t stopSize, Image< T > &imOut, const StrElt &se=DEFAULT_SE)
 
template<class T >
RES_T heightOpen (const Image< T > &imIn, size_t stopSize, Image< T > &imOut, const StrElt &se=DEFAULT_SE)
 Height opening. More...
 
double HGZE (int *matrix, int Width, int nbGrayLevel)
 F3 - High Gray level Zone Emphasis, HGZE. More...
 
template<>
std::map< Bit, UINT > histogram (const Image< Bit > &imIn)
 
template<>
map< Bit, UINT > histogram (const Image< Bit > &imIn, const Image< Bit > &imMask)
 
template<class T >
 histogram (const Image< T > &imIn, size_t *h)
 
template<class T >
RES_T histogram (const Image< T > &imIn, const Image< T > &imMask, size_t *h)
 
template<class T >
std::map< T, UINT > histogram (const Image< T > &imIn, bool fullRange=false)
 Image histogram.
 
template<class T >
std::map< T, UINT > histogram (const Image< T > &imIn, const Image< T > &imMask, bool fullRange=false)
 Image histogram with a mask image. More...
 
template<class T >
vector< T > histogramRange (const Image< T > &imIn, double ignorePercent, bool cumulative=true)
 Min and Max values of an histogram ignoring left/right low values (lower than a given height/cumulative height). More...
 
template<class T >
RES_T hitOrMiss (const Image< T > &imIn, const StrElt &foreSE, const StrElt &backSE, Image< T > &imOut, T borderVal=ImDtTypes< T >::min())
 Hit Or Miss transform.
 
template<class T >
RES_T hitOrMiss (const Image< T > &imIn, const CompStrElt &compSE, Image< T > &imOut, T borderVal=ImDtTypes< T >::min())
 Hit Or Miss transform.
 
template<class T >
RES_T hitOrMiss (const Image< T > &imIn, const CompStrEltList &mhtSE, Image< T > &imOut, T borderVal=ImDtTypes< T >::min())
 Hit Or Miss transform.
 
template<class T >
RES_T hMaxima (const Image< T > &imIn, const T &height, Image< T > &imOut, const StrElt &se=DEFAULT_SE)
 h-Maxima
 
template<class T1 , class T2 >
RES_T hMaximaLabeled (const Image< T1 > &imIn, const T1 &height, Image< T2 > &imOut, const StrElt &se=DEFAULT_SE)
 Calculate the h-maxima and labelize them.
 
template<class T >
RES_T hMinima (const Image< T > &imIn, const T &height, Image< T > &imOut, const StrElt &se=DEFAULT_SE)
 h-Minima
 
template<class T1 , class T2 >
RES_T hMinimaLabeled (const Image< T1 > &imIn, const T1 &height, Image< T2 > &imOut, const StrElt &se=DEFAULT_SE)
 Calculate the h-minima and labelize them.
 
template<class T >
RES_T horizConvolve (const Image< T > &imIn, const vector< double > &kernel, Image< T > &imOut)
 Horizontal convolution. More...
 
template<class T1 , class T2 >
RES_T houghCircles (Image< T1 > &imIn, double xyResol, double rhoResol, Image< T2 > &imOut)
 Hough Circles. More...
 
template<class T1 , class T2 >
RES_T houghCircles (Image< T1 > &imIn, double resol, Image< T2 > &imOut, Image< T2 > &imRadiiOut)
 Hough Circles. More...
 
template<class T1 , class T2 >
RES_T houghLines (Image< T1 > &imIn, double thetaRes, double rhoRes, Image< T2 > &imOut)
 Hough Lines. More...
 
HQueueHQueueCreate (ulong imgsize, ulong *numpixelsperlevel)
 
void HQueueDelete (HQueue *hq)
 
HexSE hSE (UINT s=1)
 
HexSE0 hSE0 (UINT s=1)
 
void HSL_to_RGB2 (double H, double S, double L, double *R, double *G, double *B)
 
double Hue_2_RGB (double v1, double v2, double vH)
 
 IMAGEFILEHANDLER_TEMP_SPEC (BMP, UINT8)
 
 IMAGEFILEHANDLER_TEMP_SPEC (BMP, RGB)
 
 IMAGEFILEHANDLER_TEMP_SPEC (JPG, RGB)
 
 IMAGEFILEHANDLER_TEMP_SPEC (TIFF, UINT8)
 
 IMAGEFILEHANDLER_TEMP_SPEC (TIFF, UINT16)
 
 IMAGEFILEHANDLER_TEMP_SPEC (TIFF, RGB)
 
 IMAGEFILEHANDLER_TEMP_SPEC (PNG, UINT8)
 
 IMAGEFILEHANDLER_TEMP_SPEC (PNG, UINT16)
 
 IMAGEFILEHANDLER_TEMP_SPEC (PNG, RGB)
 
 IMAGEFILEHANDLER_TEMP_SPEC (PGM, UINT8)
 
 IMAGEFILEHANDLER_TEMP_SPEC (PGM, RGB)
 
ImageGrayImageGrayCreate (ulong width, ulong height)
 
void ImageGrayDelete (ImageGray *img)
 
void ImageGrayInit (ImageGray *img, ubyte h)
 
template<class T1 , class T2 >
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) More...
 
template<class T1 , class T2 >
RES_T ImAreaClosing_MaxTree (const Image< T1 > &imIn, int size, Image< T2 > &imOut)
 Area closing with a max tree algorithm (V4) More...
 
template<class T1 , class T2 >
RES_T ImAreaClosing_PixelQueue (const Image< T1 > &imIn, int size, Image< T2 > &imOut)
 Area closing with pixel queue algorithm (V4) More...
 
template<class T1 , class T2 >
RES_T ImAreaClosing_UnionFind (const Image< T1 > &imIn, int size, Image< T2 > &imOut)
 Area closing with an union find algorithm (V4) More...
 
template<class T1 , class T2 >
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) More...
 
template<class T1 , class T2 >
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) More...
 
template<class T1 , class T2 >
RES_T ImAreaOpening_MaxTree (const Image< T1 > &imIn, int size, Image< T2 > &imOut)
 Area opening with a max tree algorithm (V4) More...
 
template<class T1 , class T2 >
RES_T ImAreaOpening_PixelQueue (const Image< T1 > &imIn, int size, Image< T2 > &imOut)
 Area Opening with pixel queue algorithm (V4) More...
 
template<class T1 , class T2 >
RES_T ImAreaOpening_UnionFind (const Image< T1 > &imIn, int size, Image< T2 > &imOut)
 Area opening with an union find algorithm (V4) More...
 
template<typename T1 , typename T2 >
RES_T ImBinaryPathClosing (const Image< T1 > &imIn, const UINT32 Lenght, const UINT32 Slice, Image< T2 > &imOut)
 Binary Path Closing Operation. More...
 
template<class T1 , class T2 >
RES_T ImBinaryPathOpening (const Image< T1 > &imIn, const UINT32 Lenght, const UINT32 Slice, Image< T2 > &imOut)
 Binary Path Opening Operation. More...
 
template<class T1 , class T2 >
RES_T ImCannyEdgeDetection (const Image< T1 > &imIn, const double sigma, Image< T2 > &imOut)
 ImCannyEdgeDetection Canny Filter. More...
 
template<class T >
RES_T ImDericheEdgeDetection (const Image< T > &imIn, const double Alpha, Image< T > &imOut)
 Deriche's filter : Grayscale optimal edge detection. More...
 
template<class T1 , class T2 >
RES_T ImElongationFromSkeleton (const Image< UINT8 > &imBin, const Image< T1 > &imSk, Image< T2 > &imOut)
 ImElongationFromSkeleton : from a binary image and its skeleton, we compute the elongation of each CC. More...
 
template<class T >
RES_T ImFalseColorHSL (const Image< T > &imIn, Image< RGB > &imOut, float Scale)
 ImFalseColorHSL : from a gray scale picture, we apply false color with a shade off. More...
 
template<class T1 , class T2 >
RES_T ImFastBilateralFilter (const Image< T1 > &imIn, const UINT8 Method, const UINT8 nS, const UINT32 EctS, const UINT32 EctG, Image< T2 > &imOut)
 FastBilateral filter : Smooth the picture while conserving the edges. More...
 
template<class T1 , class T2 >
RES_T ImFromSK_AreaForEachCC (const Image< T1 > &imIn, int ScaleX, int ScaleY, int ScaleZ, Image< T2 > &imOut)
 
template<class T1 , class T2 >
RES_T ImFromSkeletonSupTriblePointBis (const Image< T1 > &imIn, Image< T2 > &imOut)
 
template<class T1 , class T2 >
RES_T ImFromSkeletonSupTriplePoint (const Image< T1 > &imIn, Image< T2 > &imOut)
 ImFromSkeletonSupTriplePoint : Suppress the triples points from a skeleton. More...
 
template<class T >
RES_T ImGaborFilterConvolution (const Image< T > &imIn, double sigma, double theta, double lambda, double psi, double gamma, Image< T > &imOut)
 ImGaborFilterConvolution Gabor Filter. More...
 
template<class T >
RES_T ImGaborFilterConvolutionNorm (const Image< T > &imIn, double sigma, double theta, double lambda, double psi, double gamma, double Min, double Max, Image< T > &imOut, Image< T > &imGabor)
 ImGaborFilterConvolutionNorm Gabor Filter (normalized between Min and Max) More...
 
template<class T >
RES_T ImGaborFilterConvolutionNormAuto (const Image< T > &imIn, double sigma, double theta, double lambda, double psi, double gamma, double *Min, double *Max, Image< T > &imOut, Image< T > &imGabor)
 ImGaborFilterConvolutionNormAuto Gabor Filter (automatically normalized) More...
 
template<class T >
RES_T ImGaussianFilter (Image< T > &imIn, int radius, Image< T > &imOut)
 filterGaussian Gaussian Filter (3D) More...
 
template<typename T1 , typename T2 >
RES_T ImGeodesicDiameter (const Image< T1 > &imIn, Image< T2 > &imOut, int sliceBySlice=0, double dz_over_dx=1)
 ImGeodesicDiameter : we compute the geodesic diameter for each CC. More...
 
template<typename T1 , typename T2 >
RES_T ImGeodesicElongation (const Image< T1 > &imIn, Image< T2 > &imOut, int sliceBySlice=0, double dz_over_dx=1)
 ImGeodesicElongation : we compute the elongation for each CC. More...
 
template<typename T1 , typename T2 >
RES_T ImGeodesicExtremities (const Image< T1 > &imIn, Image< T2 > &imOut, int sliceBySlice=0, double dz_over_dx=1)
 ImGeodesicExtremities : we compute the elongation for each CC. More...
 
template<typename T >
RES_T ImGeodesicPathClosing (const Image< UINT8 > &imIn, double Lenght, int Method, Image< T > &imOut, float ScaleX=1, float ScaleY=1, float ScaleZ=1)
 ImGeodesicPathClosing : Compute the geodesic diameter for each connected component CC for each threshold. More...
 
template<typename T >
RES_T ImGeodesicPathOpening (const Image< UINT8 > &imIn, double Lenght, int Method, Image< T > &imOut, float ScaleX=1, float ScaleY=1, float ScaleZ=1)
 ImGeodesicPathOpening : Compute the geodesic diameter for each connected component CC for each threshold. More...
 
template<class T >
RES_T ImGeodesicTortuosity (const Image< UINT8 > &imIn, Image< T > &imOut, int sliceBySlice=0)
 
template<class T1 , class T2 >
RES_T ImInertiaThickening_MaxTree (const Image< T1 > &imIn, double size, Image< T2 > &imOut)
 Inertia thickening with a max tree algorithm (V4) More...
 
template<class T1 , class T2 >
RES_T ImInertiaThinning_MaxTree (const Image< T1 > &imIn, double size, Image< T2 > &imOut)
 Inertia thinning with a max tree algorithm (V4) More...
 
template<class T >
RES_T ImKuwaharaFilter (const Image< T > &imIn, const int radius, Image< T > &imOut)
 ImKuwaharaFilter Kuwahara Filter. More...
 
template<class T >
RES_T ImKuwaharaFilterRGB (const Image< T > &imIn, const int radius, Image< T > &imOut)
 ImKuwaharaFilterRGB Kuwahara Filter (color images) More...
 
template<class T1 , class T2 >
RES_T ImKuwaharaFilterRGB (const Image< T1 > &imIn, const int radius, Image< T2 > &imOut)
 
template<typename T1 , typename T2 >
RES_T ImLabelFlatZonesWithElongation (const Image< T1 > &imIn, Image< T2 > &imOut)
 ImLabelFlatZonesWithElongation : we compute the elongation for each flat zone in a gray scale image. More...
 
template<typename T1 , typename T2 >
RES_T ImLabelFlatZonesWithExtremities (const Image< T1 > &imIn, Image< T2 > &imOut)
 ImLabelFlatZonesWithExtremities : we compute the elongation for each flat zone in a gray scale image. More...
 
template<typename T1 , typename T2 >
RES_T ImLabelFlatZonesWithGeodesicDiameter (const Image< T1 > &imIn, Image< T2 > &imOut)
 ImLabelFlatZonesWithGeodesicDiameter : we compute the geodesic diameter for each flat zone in a gray scale image. More...
 
template<class T1 , class T2 >
RES_T ImLayerDist (Image< T1 > &imIn, int labelIn, int labelOut, float dx, float dy, float dz, Image< T2 > &imOut)
 
template<class T1 , class T2 >
RES_T ImLayerDist (Image< T1 > &imIn, ULONG labelIn, ULONG labelOut, float dx, float dy, float dz, Image< T2 > &imOut)
 
template<class T >
RES_T ImMeanShiftFilter (const Image< T > &imIn, const UINT8 radius, const int tonalDistance, Image< T > &imOut)
 Performs a noise an efficient reduction using clustering. More...
 
template<class T >
RES_T ImMeanShiftFilterRGB (const Image< T > &imIn, const UINT8 radius, const int tonalDistance, Image< T > &imOut)
 Performs a noise an efficient reduction using clustering (RGB Images) More...
 
template<class T1 , class T2 >
RES_T ImNormalize (const Image< T1 > &imIn, const T2 Min, const T2 Max, Image< T2 > &imOut)
 ImNormalize : Linear conversion of pixels values to the range [Min, Max]. More...
 
template<class T1 , class T2 >
RES_T ImNormalizeAuto (const Image< T1 > &imIn, Image< T2 > &imOut)
 ImNormalizeAuto : Linear conversion of pixels values to the domain range. More...
 
template<class T1 , class T2 >
RES_T ImNormalizeSCurve (const Image< T1 > &imIn, const T1 pivot, const double ratio, Image< T2 > &imOut)
 ImNormalizeSCurve : S Curve transform. More...
 
template<typename T >
RES_T ImPathClosing (const Image< UINT8 > &imIn, const UINT32 Lenght, Image< T > &imOut)
 Fast Grayscale Path Closing Operation made by updating the distance function from on threshold to an other. More...
 
template<typename T >
RES_T ImPathClosing_GraphV2 (const Image< UINT8 > &imIn, double Lenght, Image< T > &imOut)
 Path Closing Operation with a graph V2. More...
 
template<typename T1 , typename T2 >
RES_T ImPathClosingBruteForce (const Image< T1 > &imIn, const UINT32 Lenght, Image< T2 > &imOut)
 Grayscale Path Closing Operation made by "staking" the results of the binary closing applied to each threshold. More...
 
template<class T >
RES_T ImPathOpening (const Image< UINT8 > &imIn, const UINT32 Lenght, Image< T > &imOut)
 Fast Grayscale Path Opening Operation: made by updating the distance function from on threshold to an other. More...
 
template<typename T >
RES_T ImPathOpening_GraphV2 (const Image< UINT8 > &imIn, double Lenght, Image< T > &imOut)
 Path Opening Operation with a graph V2. More...
 
template<class T1 , class T2 >
RES_T ImPathOpeningBruteForce (const Image< T1 > &imIn, const UINT32 Lenght, Image< T2 > &imOut)
 Grayscale Path Opening Operation made by "staking" the results of the binary opening applied to each threshold. More...
 
template<class T >
RES_T ImSigmaFilter (const Image< T > &imIn, const UINT8 radius, const double sigma, const double percentageNbMinPixel, const bool excludeOutlier, Image< T > &imOut)
 Performs a noise reduction following the Lee paper. More...
 
template<class T >
RES_T ImSigmaFilterRGB (const Image< T > &imIn, const UINT8 radius, const double sigma, const double percentageNbMinPixel, const bool excludeOutlier, Image< T > &imOut)
 Performs a noise reduction following the Lee paper (RGB Images) More...
 
template<class T1 , class T2 >
RES_T ImSupSmallRegion (const Image< T1 > &imIndicatrice, Image< T2 > &imIndicatriceCorr, float percentage)
 ImSupSmallRegion : Delete from an image of the conected component where their area is less than their gray level times a percentage. More...
 
template<class T1 , class T2 >
RES_T ImThresholdWithMuAndSigma (const Image< T1 > &imIn, Image< T2 > &imOut, float paramSigma=1)
 ImThresholdWithMuAndSigma : for each slice of a 3D image, we compute Mu and Sigma and we apply a threshold of (MU + paramSigma * Sigma) More...
 
template<class T1 , class T2 >
RES_T ImThresholdWithUniqueCCForBackGround (const Image< T1 > &imIn, Image< T2 > &imOut, int SliceBySlice=0)
 ImThresholdWithUniqueCCForBackGround : for each slice of a 3D image, we select a threshold to have one CC of the background. More...
 
template<typename T >
RES_T ImUltimateGeodesicPathClosing (const Image< UINT8 > &imIn, Image< UINT8 > &imTrans, Image< T > &imIndicatrice, float ScaleX=1, float ScaleY=1, float ScaleZ=1, int stop=-1, int lambdaAttribute=0, int takeMin=1)
 ImGeodesicPathUltimateClosing: Compute the geodesic diameter for each connected component CC for each threshold and then the ultimate O. More...
 
template<typename T >
RES_T ImUltimateGeodesicPathOpening (const Image< UINT8 > &imIn, Image< UINT8 > &imTrans, Image< T > &imInd, float ScaleX=1, float ScaleY=1, float ScaleZ=1, int stop=-1, int lambdaAttribute=0, int takeMin=1)
 ImGeodesicPathUltimateOpening : Compute the geodesic diameter for each connected component CC for each threshold and then the ultimate O. More...
 
template<typename T1 , typename T2 >
RES_T ImUltimatePathClosing (const Image< UINT8 > &imIn, Image< T1 > &imTrans, Image< T2 > &imInd, int stop, int lambdaAttribute)
 Ultimate Path Closing Operation with a graph V3. More...
 
template<typename T1 , typename T2 >
RES_T ImUltimatePathClosing_GraphV2 (const Image< UINT8 > &imIn, Image< T1 > &imTrans, Image< T2 > &imInd, int stop=-1, int lambdaAttribute=0)
 Ultimate Path Closing Operation with a graph V2. More...
 
template<class T1 , class T2 >
RES_T ImUltimatePathOpening (const Image< UINT8 > &imIn, Image< T1 > &imOut, Image< T2 > &imIndicatrice, int stop, int lambdaAttribute)
 Ultimate Path Opening Operation with the geodesic diameter as criterium. More...
 
template<typename T1 , typename T2 >
RES_T ImUltimatePathOpening_GraphV2 (const Image< UINT8 > &imIn, Image< T1 > &imTrans, Image< T2 > &imInd, int stop=-1, int lambdaAttribute=0)
 Ultimate Path Opening Operation with a graph V2. More...
 
template<class T >
bool IncrementThresholds (vector< double > &thresholdIndexes, map< T, UINT > &hist, UINT threshLevels, double totalFrequency, double &globalMean, vector< double > &classMean, vector< double > &classFrequency)
 
double InertiaAttribute (void *inertiaattr)
 
double InertiaDivA2Attribute (void *inertiaattr)
 
template<class T >
RES_T inf (const Image< T > &imIn1, const T &value, Image< T > &imOut)
 Inf of two images.
 
template<class T >
ResImage< T > inf (const Image< T > &imIn1, const Image< T > &imIn2)
 
template<class T >
RES_T inf (const Image< T > &imIn1, const Image< T > &imIn2, Image< T > &imOut)
 
template<class T1 , class T2 >
RES_T inflBasins (const Image< T1 > &imIn, Image< T2 > &basinsOut, const StrElt &se=DEFAULT_SE)
 Influences basins. More...
 
template<class T >
RES_T inflZones (const Image< T > &imIn, Image< T > &imOut, const StrElt &se=DEFAULT_SE)
 Influences zones. More...
 
template<class T >
RES_T initBuildHierarchicalQueue (const Image< T > &imIn, HierarchicalQueue< T > &hq)
 
template<class T >
RES_T initBuildHierarchicalQueue (const Image< T > &imIn, HierarchicalQueue< T > &hq, const T noPushValue)
 
void InitPixelHeap (PixelHeap *p_heap, int lambda)
 
void InsertInPixelHeap (PixelHeap *p_heap, greyval *im, long pixel)
 
template<class T >
RES_T inv (const Image< T > &imIn, Image< T > &imOut)
 Invert an image. More...
 
template<class T >
bool isBinary (const Image< T > &imIn)
 Test if an image is binary. More...
 
bool IsCandidateEdge (bool *Buff, double *Orig, int W, SMIL_UNUSED int H, int i, int j)
 
template<class labelT , class T >
stochastic_graph< labelT, T > KruskalMST (stochastic_graph< labelT, T > &graph)
 
float lab_conditional (const float &x)
 
template<class T1 , class T2 >
size_t label (const Image< T1 > &imIn, Image< T2 > &imOut, const StrElt &se=DEFAULT_SE)
 Image labelization. More...
 
template<class T1 , class T2 >
size_t labelWithArea (const Image< T1 > &imIn, Image< T2 > &imOut, const StrElt &se=DEFAULT_SE)
 Image labelization with the size of each connected components. More...
 
template<class T1 , class T2 >
size_t labelWithMaxima (const Image< T1 > &imIn, const Image< T2 > &imLabelsInit, Image< T2 > &imOut, const StrElt &se=DEFAULT_SE)
 Image labelization with the maximum values of each connected components in the imLabelsInit image. More...
 
template<class T1 , class T2 >
size_t labelWithMean (const Image< T1 > &imIn, const Image< T2 > &imLabelsInit, Image< T2 > &imOut, const StrElt &se=DEFAULT_SE)
 Image labelization with the mean values of each connected components in the imLabelsInit image. More...
 
template<class T1 , class T2 >
size_t labelWithoutFunctor (const Image< T1 > &imIn, Image< T2 > &imOut, const StrElt &se=DEFAULT_SE)
 
template<class T1 , class T2 >
size_t labelWithoutFunctor2Partitions (const Image< T1 > &imIn, const Image< T1 > &imIn2, Image< T2 > &imOut, const StrElt &se=DEFAULT_SE)
 
template<class T1 , class T2 >
size_t labelWithVolume (const Image< T1 > &imIn, const Image< T2 > &imLabelsInit, Image< T2 > &imOut, const StrElt &se=DEFAULT_SE)
 Image labelization with the volume (sum of values) of each connected components in the imLabelsInit image. More...
 
template<class T1 , class T2 >
size_t lambdaFastLabel (const Image< T1 > &imIn, const T1 &lambdaVal, Image< T2 > &imOut, const StrElt &se=DEFAULT_SE)
 Lambda-flat zones fast labelization. More...
 
template<class T1 , class T2 >
size_t lambdaLabel (const Image< T1 > &imIn, const T1 &lambdaVal, Image< T2 > &imOut, const StrElt &se=DEFAULT_SE)
 Lambda-flat zones labelization. More...
 
float LambdaXY (float *Lambda, int x, int y, int W, int H, int Dir, int Dim)
 
template<class T >
RES_T lblSkiz (Image< T > &labelIm1, Image< T > &labelIm2, const Image< T > &maskIm, const StrElt &se=DEFAULT_SE)
 Skiz on label image. More...
 
template<class T >
RES_T levelPics (const Image< T > &imIn, Image< T > &imOut, const StrElt &se=DEFAULT_SE)
 Dual hole filling.
 
double LGZE (int *matrix, int Width, int nbGrayLevel)
 F2 - Low Gray level Zone Emphasis, LGZE. More...
 
void LocateZeroCrossings (double *Orig, double *BufFiltrer, bool *ImgBli, int W, int H)
 
template<class T >
RES_T log (const Image< T > &imIn, Image< T > &imOut, int base=0)
 Logarithm. More...
 
template<class T >
RES_T logicAnd (const Image< T > &imIn1, const Image< T > &imIn2, Image< T > &imOut)
 Logic AND operator.
 
template<class T >
RES_T logicOr (const Image< T > &imIn1, const Image< T > &imIn2, Image< T > &imOut)
 Logic OR operator.
 
template<class T >
RES_T logicXOr (const Image< T > &imIn1, const Image< T > &imIn2, Image< T > &imOut)
 Logic XOR operator.
 
template<class T >
RES_T low (const Image< T > &imIn1, const Image< T > &imIn2, Image< T > &imOut)
 Lower operator.
 
template<class T >
RES_T low (const Image< T > &imIn1, const T &value, Image< T > &imOut)
 
template<class T >
RES_T lowOrEqu (const Image< T > &imIn1, const Image< T > &imIn2, Image< T > &imOut)
 Lower or equal operator.
 
template<class T >
RES_T lowOrEqu (const Image< T > &imIn1, const T &value, Image< T > &imOut)
 
double LZE (int *matrix, int Width, int nbGrayLevel)
 F1 - Large Zone Emphasis, LZE. More...
 
double LZHGE (int *matrix, int Width, int nbGrayLevel)
 F7 - Large Zone High Gray level Emphasis, LZHGE. More...
 
double LZLGE (int *matrix, int Width, int nbGrayLevel)
 F6 - Large Zone Low Gray level Emphasis, LZLGE. More...
 
template<class T >
RES_T MAP_MRF_edge_preserving (const Image< T > &imIn, const Image< T > &imMarker, const CVariant &Beta, const CVariant &Sigma, const StrElt &nl, Image< T > &imOut)
 Markov Random Fields segmentation with two labels (2 labels, object = 2, background = 3) with edge preserving prior. More...
 
template<class T >
RES_T MAP_MRF_Ising (const Image< T > &imIn, const Image< T > &imMarker, const CVariant &Beta, const CVariant &Sigma, const StrElt &nl, Image< T > &imOut)
 Markov Random Fields segmentation with two labels (2 labels, object = 2, background = 3) with The Ising Model. More...
 
template<class T >
RES_T MAP_MRF_Potts (const Image< T > &imIn, const Image< T > &imMarker, const CVariant &Beta, const CVariant &Sigma, const StrElt &nl, Image< T > &imOut)
 Multi-Label MAP Markov Random Field with Ising prior (Potts Model) More...
 
template<class T >
RES_T mask (const Image< T > &imIn, const Image< T > &imMask, Image< T > &imOut)
 Image mask. More...
 
template<class T >
RES_T matMul (const Image< T > &imIn1, const Image< T > &imIn2, Image< T > &imOut)
 Matrix multiplication (for now, only in 2D) More...
 
template<>
RES_T matMul< Bit > (const Image< Bit > &imIn1, const Image< Bit > &imIn2, Image< Bit > &imOut)
 
template<class T >
RES_T matTrans (const Image< T > &imIn, Image< T > &imOut)
 Matrix transposition (for now, only in 2D)
 
template<class T >
RES_T maxima (const Image< T > &imIn, Image< T > &imOut, const StrElt &se=DEFAULT_SE)
 Maxima.
 
template<class T1 , class T2 >
RES_T maximaLabeled (const Image< T1 > &imIn, Image< T2 > &imOut, const StrElt &se=DEFAULT_SE)
 Calculate the maxima and labelize them.
 
MaxTreeMaxTreeCreate (ImageGray *img, ImageGray *templateImg, void *(*newauxdata)(ulong, ulong), void(*addtoauxdata)(void *, ulong, ulong), void(*mergeauxdata)(void *, void *), void(*deleteauxdata)(void *))
 
void MaxTreeDelete (MaxTree *mt)
 
void MaxTreeFilterDirect (MaxTree *mt, ImageGray *img, ImageGray *templateImg, ImageGray *out, double(*attribute)(void *), double lambda)
 
void MaxTreeFilterMax (MaxTree *mt, ImageGray *img, ImageGray *templateImg, ImageGray *out, double(*attribute)(void *), double lambda)
 
void MaxTreeFilterMin (MaxTree *mt, ImageGray *img, ImageGray *templateImg, ImageGray *out, double(*attribute)(void *), double lambda)
 
void MaxTreeFilterSubtractive (MaxTree *mt, ImageGray *img, ImageGray *templateImg, ImageGray *out, double(*attribute)(void *), double lambda)
 
int MaxTreeFlood (MaxTree *mt, HQueue *hq, ulong *numpixelsperlevel, bool *nodeatlevel, ImageGray *img, ubyte *shape, int h, ulong *thisarea, void **thisattr)
 
template<class T >
maxVal (const Image< T > &imIn, bool onlyNonZero=false)
 Max value of an image. More...
 
template<class T >
maxVal (const Image< T > &imIn, Point< UINT > &pt, bool onlyNonZero=false)
 
template<class T >
RES_T mean (const Image< T > &imIn, Image< T > &imOut, const StrElt &se=DEFAULT_SE)
 Mean filter. More...
 
float MeanGauss (float x, float Sigma)
 
template<class T >
Vector_double meanVal (const Image< T > &imIn, bool onlyNonZero=false)
 Mean value and standard deviation. More...
 
template<class T >
RES_T MeanValueOf (const Image< T > &imIn, bool slideBySlide, double *Value)
 
double MeanXAttribute (void *inertiaattr)
 
double MeanYAttribute (void *inertiaattr)
 
template<class T >
map< T, double > measAreas (const Image< T > &imLbl, const bool onlyNonZero=true)
 Measure label areas. More...
 
template<class labelT >
map< labelT, double > measAreas (map< labelT, Blob > &blobs)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.Measure label areas from a pre-generated Blob map (faster).
 
template<class T >
Vector_double measBarycenter (Image< T > &im)
 
template<class T >
map< T, Vector_double > measBarycenters (const Image< T > &imLbl, const bool onlyNonZero=true)
 Measure barycenter of a labeled image. More...
 
template<class T , class labelT >
map< labelT, Vector_double > measBarycenters (const Image< T > &imIn, map< labelT, Blob > &blobs)
 Measure the barycenter of each blob in imIn. More...
 
template<class T >
vector< size_t > measBoundBox (Image< T > &im)
 Bounding Box measure. More...
 
template<class T >
map< T, vector< size_t > > measBoundBoxes (const Image< T > &imLbl, const bool onlyNonZero=true)
 Measure bounding boxes of labeled image. More...
 
template<class T , class labelT >
map< labelT, vector< size_t > > measBoundBoxes (const Image< T > &imIn, map< labelT, Blob > &blobs)
 Measure bounding boxes of each blob (faster with blobs pre-generated). More...
 
template<class T >
vector< double > measCenteredCovariance (const Image< T > &imIn, size_t dx, size_t dy, size_t dz, UINT maxSteps=0, bool normalize=false)
 Centered auto-covariance. More...
 
template<class T1 , class T2 >
RES_T measComputeIndFromPatternSpectrum (const Image< T1 > &imTrans, const Image< T2 > &imInd, UINT16 BorneMin, UINT16 BorneMax, UINT8 Normalized, float *Value)
 
template<class T1 , class T2 >
RES_T measComputeVolume (const Image< T1 > &imIn, const Image< T2 > &imLevel, float *Value)
 
template<class T >
vector< double > measCovariance (const Image< T > &imIn1, const Image< T > &imIn2, size_t dx, size_t dy, size_t dz, UINT maxSteps=0, bool normalize=false)
 Covariance between two images. More...
 
template<class T >
vector< double > measCovariance (const Image< T > &imIn, size_t dx, size_t dy, size_t dz, UINT maxSteps=0, bool normalize=false)
 Auto-covariance. More...
 
template<class T >
vector< double > measCrossCorrelation (const Image< T > &imIn, const T &val1, const T &val2, size_t dx, size_t dy, size_t dz, UINT maxSteps=0, bool normalize=false)
 CrossCorrelation between two phases. More...
 
template<class T >
vector< double > measGranulometry (const Image< T > &imIn, const StrElt &se=DEFAULT_SE, const unsigned int stepSize=1, bool CDF=true)
 Granulometry by openings. More...
 
template<class T >
vector< double > measHaralickFeatures (Image< T > &imIn, const StrElt &s)
 Measure Haralick Features. More...
 
template<class T >
map< T, Vector_double > measInertiaMatrices (const Image< T > &imLbl, const bool onlyNonZero=true)
 Measure inertia moments of each label.
 
template<class T , class labelT >
map< labelT, Vector_double > measInertiaMatrices (const Image< T > &imIn, map< labelT, Blob > &blobs)
 Measure blobs inertia moments. More...
 
template<class T >
Vector_double measInertiaMatrix (const Image< T > &im, const bool onlyNonZero=true)
 Measure inertia moments. More...
 
template<class T , class labelT >
map< labelT, T > measMaxVals (const Image< T > &imIn, map< labelT, Blob > &blobs)
 Measure the maximum value of each blob in imIn. More...
 
template<class T , class labelT >
map< labelT, Vector_double > measMeanVals (const Image< T > &imIn, map< labelT, Blob > &blobs)
 Measure the mean value and the std dev. More...
 
template<class T >
measMedianVal (const Image< T > &imIn, bool onlyNonZero=true)
 Get the mode of the histogram present in the image, i.e. More...
 
template<class T , class labelT >
map< labelT, T > measMedianVals (const Image< T > &imIn, map< labelT, Blob > &blobs)
 Measure the median value of imIn in each blob. More...
 
template<class T , class labelT >
map< labelT, T > measMinVals (const Image< T > &imIn, map< labelT, Blob > &blobs)
 Measure the minimum value of each blob in imIn. More...
 
template<class T >
measModeVal (const Image< T > &imIn, bool onlyNonZero=true)
 Get the mode of the histogram present in the image, i.e. More...
 
template<class T , class labelT >
map< labelT, T > measModeVals (const Image< T > &imIn, map< labelT, Blob > &blobs)
 Measure the mode value of imIn in each blob. More...
 
template<class T , class labelT >
map< labelT, vector< T > > measRangeVals (const Image< T > &imIn, map< labelT, Blob > &blobs)
 Measure the min and max values of each blob in imIn. More...
 
template<class T , class labelT >
map< labelT, double > measVolumes (const Image< T > &imIn, map< labelT, Blob > &blobs)
 Measure the sum of values of each blob in imIn. More...
 
template<class T >
RES_T median (const Image< T > &imIn, Image< T > &imOut, const StrElt &se=DEFAULT_SE)
 Median filter. More...
 
void MergeAreaData (void *areaattr, void *childattr)
 
template<class T1 , class MCT2 >
RES_T mergeChannels (const Image< T1 > &imIn, Image< MCT2 > &imOut)
 Merge slices of a 3D image into a multichannel image. More...
 
void MergeEnclRectData (void *rectattr, void *childattr)
 
void MergeInertiaData (void *inertiaattr, void *childattr)
 
template<class T >
RES_T minima (const Image< T > &imIn, Image< T > &imOut, const StrElt &se=DEFAULT_SE)
 Minima.
 
template<class T1 , class T2 >
RES_T minimaLabeled (const Image< T1 > &imIn, Image< T2 > &imOut, const StrElt &se=DEFAULT_SE)
 Calculate the minima and labelize them.
 
template<class T >
minVal (const Image< T > &imIn, bool onlyNonZero=false)
 Min value of an image. More...
 
template<class T >
minVal (const Image< T > &imIn, Point< UINT > &pt, bool onlyNonZero=false)
 
template<class T1 , class T2 , class GT1 , class GT2 >
RES_T mosaicToGraph (const Image< T1 > &imMosaic, const Image< T2 > &imEdgeValues, const Image< T2 > &imNodeValues, Graph< GT1, GT2 > &graph, const StrElt &se=DEFAULT_SE)
 
template<class T1 , class T2 >
Graph< T1, T2 > mosaicToGraph (const Image< T1 > &imMosaic, const Image< T2 > &imEdgeValues, const Image< T2 > &imNodeValues, const StrElt &se=DEFAULT_SE)
 
template<class T1 , class T2 , class GT1 , class GT2 >
RES_T mosaicToGraph (const Image< T1 > &imMosaic, const Image< T2 > &imEdgeValues, Graph< GT1, GT2 > &graph, const StrElt &se=DEFAULT_SE)
 
template<class T1 , class T2 >
Graph< T1, T2 > mosaicToGraph (const Image< T1 > &imMosaic, const Image< T2 > &imEdgeValues, const StrElt &se=DEFAULT_SE)
 
template<class T1 , class GT1 , class GT2 >
RES_T mosaicToGraph (const Image< T1 > &imMosaic, Graph< GT1, GT2 > &graph, const StrElt &se=DEFAULT_SE)
 
template<class T1 >
Graph< T1, UINT > mosaicToGraph (const Image< T1 > &imMosaic, const StrElt &se=DEFAULT_SE)
 
template<class labelT , class T >
void mosaicToStochasticGraph (const Image< labelT > &img, const Image< T > &gradI, stochastic_graph< labelT, T > &graph, const StrElt &s)
 
template<class T >
RES_T mul (const Image< T > &imIn1, const Image< T > &imIn2, Image< T > &imOut)
 Multiply.
 
template<class T >
RES_T mul (const Image< T > &imIn, const double &dValue, Image< T > &imOut)
 
template<class T >
RES_T mulNoSat (const Image< T > &imIn1, const Image< T > &imIn2, Image< T > &imOut)
 Multiply (without type max check)
 
template<class T >
RES_T mulNoSat (const Image< T > &imIn1, const T &value, Image< T > &imOut)
 
template<class T1 , class T2 >
RES_T neighbors (const Image< T1 > &imIn, Image< T2 > &imOut, const StrElt &se=DEFAULT_SE)
 Neighbors. More...
 
void * NewAreaData (SMIL_UNUSED ulong x, SMIL_UNUSED ulong y)
 
void * NewEnclRectData (ulong x, ulong y)
 
void * NewInertiaData (ulong x, ulong y)
 
template<typename T2 >
static void NonMaxSuppress (int Width, int Height, float *dX, float *dY, T2 *imNorme)
 
template<class T >
Vector_UINT nonZeroOffsets (Image< T > &imIn)
 Non-zero point offsets. More...
 
float Norm (float x, float y)
 
template<class T >
RES_T open (const Image< T > &imIn, Image< T > &imOut, const StrElt &se=DEFAULT_SE)
 Morphological grayscale opening. More...
 
template<class T >
RES_T open (const Image< T > &imIn, Image< T > &imOut, UINT seSize)
 
ostream & operator<< (ostream &os, BIN &b)
 
void operator<< (ostream &os, StrElt &se)
 
ostream & operator<< (ostream &os, BitArray &b)
 
template<class T , UINT N>
std::ostream & operator<< (std::ostream &stream, const MultichannelType< T, N > &mc)
 
template<class T >
void operator<< (ostream &os, const Image< T > &im)
 
template<class NodeT , class WeightT >
bool operator== (const vector< Edge< NodeT, WeightT > > &e1, const vector< Edge< NodeT, WeightT > > &e2)
 
template<>
vector< Bit > otsuThreshold (const Image< Bit > &imIn, Image< Bit > &imOut, UINT nbrThresholds)
 
template<class T , class T_out >
vector< T > otsuThreshold (const Image< T > &imIn, Image< T_out > &imOut, UINT nbrThresholds)
 Otsu Threshold. More...
 
template<class T , class T_out >
otsuThreshold (const Image< T > &imIn, Image< T_out > &imOut)
 
template<class T , class T_out >
vector< T > otsuThreshold (const Image< T > &imIn, const Image< T > &imMask, Image< T_out > &imOut, UINT nbrThresholds=1)
 
template<class T >
vector< T > otsuThresholdValues (map< T, UINT > &hist, UINT threshLevels=1)
 Return the different threshold values and the value of the resulting variance between classes.
 
template<class T >
vector< T > otsuThresholdValues (const Image< T > &im, UINT threshLevels=1)
 
template<class T >
vector< T > otsuThresholdValues (const Image< T > &im, const Image< T > &imMask, UINT threshLevels=1)
 
template<class labelT , class T >
size_t overSegmentationCorrection (const Image< labelT > &primary, const Image< T > &gradient, Image< labelT > &out, const size_t &n_seeds, const double &r0, const StrElt &s)
 Over Segmentation Correction. More...
 
void PixelDownSort (int width, int height, ShortImage im, int *SortPixels)
 
void PixelUpSort (int width, int height, ShortImage im, int *SortPixels)
 
void printSE (StrElt ss)
 
template<class T , class labelT , class funcT >
map< labelT, typename funcT::retType > processBlobMeasure (const Image< T > &imIn, const map< labelT, Blob > &blobs)
 
template<class T , class labelT , class funcT >
map< labelT, typename funcT::retType > processBlobMeasure (const Image< T > &imIn, bool onlyNonZero=true)
 
template<class T , class operatorT >
RES_T processBuildHierarchicalQueue (Image< T > &imIn, const Image< T > &imMask, Image< UINT8 > &imStatus, HierarchicalQueue< T > &hq, const StrElt &se)
 
template<class T , class CriterionT , class OffsetT , class LabelT , class tAttType >
void processMaxTree (MaxTree2< T, CriterionT, OffsetT, LabelT > &tree, LabelT node, T *lut_out, T previousLevel, tAttType stop)
 
template<class T >
vector< T > profile (const Image< T > &im, size_t x0, size_t y0, size_t x1, size_t y1, size_t z=0)
 Get image values along a profile.
 
template<class T >
RES_T pruneSKIZ (const Image< T > &_im_, Image< T > &_out_, const StrElt &_se_)
 pruneSKIZ More...
 
template<class T1 , class T2 >
RES_T PseudoPatternSpectrum (const Image< T1 > &imIn, const Image< T2 > &imIn2, int *patternSpect)
 PseudoPatternSpectrum : With the contrast and the indicatrice images from the UPO, we compute the pattern spectrum. More...
 
size_t PTR_OFFSET (void *p, size_t n=SIMD_VEC_SIZE)
 
int qtLoop ()
 
double radius_dist (IntPoint p, IntPoint q)
 
template<class T >
RES_T randFill (Image< T > &imOut)
 Fill an image with random values. More...
 
template<class T >
RES_T rangeThreshold (const Image< T > &_im_, const T &threshold, Image< T > &_out_)
 Range Threshold. More...
 
template<class T >
vector< T > rangeVal (const Image< T > &imIn, bool onlyNonZero=false)
 Min and Max values of an image. More...
 
template<class T >
RES_T rank (const Image< T > &imIn, Image< T > &imOut, double percentile, const StrElt &se=DEFAULT_SE)
 Rank filter.
 
template<class T >
RES_T rasterLabels (const Image< T > &_im_, Image< T > &_out_)
 rasterLabels More...
 
RhombicuboctahedronSE rcoSE (UINT s=1)
 
template<class T >
RES_T read (const char *filename, Image< T > &image)
 Read image file.
 
template<class T >
RES_T read (const vector< string > fileList, Image< T > &image)
 Read a stack of 2D images. More...
 
RES_T readBMPHeader (FILE *fp, BMPHeader &hStruct)
 
template<class T >
RES_T readDICOM (const char *dirName, Image< T > &outIm, bool autoReslice=true)
 Read DICOM.
 
template<>
RES_T readDICOM< RGB > (const char *, Image< RGB > &, bool)
 
RES_T readJPGHeader (FILE *, JPGHeader &)
 
RES_T readNetPBMFileInfo (ifstream &fp, ImageFileInfo &fInfo, unsigned int &maxval)
 
RES_T readNetPBMFileInfo (const char *filename, ImageFileInfo &fInfo, unsigned int &maxval)
 
RES_T readPNGHeader (FILE *fp, PNGHeader &hStruct)
 
template<class T >
RES_T readRAW (const char *filename, size_t width, size_t height, size_t depth, Image< T > &image)
 RAW file read.
 
RES_T readTIFFHeader (FILE *, TIFFHeader &)
 
RES_T readVTKHeader (ifstream &fp, VTKHeader &hStruct)
 
template<class T >
RES_T recursiveBilateralFilter (const Image< T > &imIn, float sigmaW, float sigmaR, Image< T > &imOut)
 recursiveBilateralFilter 3D Bilateral Filter More...
 
void ReleaseImage (GImage img)
 
int RemoveFromPixelHeap (PixelHeap *p_heap, greyval *im)
 
template<class T >
RES_T resize (Image< T > &imIn, size_t sx, size_t sy, Image< T > &imOut)
 2D bilinear resize algorithm. More...
 
template<class T >
RES_T resize (Image< T > &imIn, Image< T > &imOut)
 Resize imIn with the dimensions of imOut and put the result in imOut.
 
template<class T >
RES_T resize (Image< T > &imIn, UINT sx, UINT sy)
 
template<class T >
RES_T resizeClosest (Image< T > &imIn, size_t sx, size_t sy, Image< T > &imOut)
 BMI: 08.08.2018. More...
 
template<class T >
RES_T resizeClosest (Image< T > &imIn, Image< T > &imOut)
 Resize imIn with the dimensions of imOut and put the result in imOut.
 
template<class T >
RES_T resizeClosest (Image< T > &imIn, UINT sx, UINT sy)
 
static void RGB2HSV (float &r, float &g, float &b, float &h, float &s, float &v)
 
template<class T >
RES_T sampleFloodingFunction (const Image< T > &imIn, Image< T > &imOut, const StrElt &se=DEFAULT_SE)
 
template<class T >
RES_T sampleMorphoFunction (const Image< T > &imIn, Image< T > &imOut, const StrElt &se=DEFAULT_SE)
 
template<class T >
RES_T samplePixelFunction (const Image< T > &imIn, Image< T > &imOut)
 
template<class T >
RES_T scale (Image< T > &imIn, double cx, double cy, Image< T > &imOut)
 Scale image If imIn has the size (W,H), the size of imOut will be (W*cx, H*cy).
 
template<class T >
RES_T scale (Image< T > &imIn, double cx, double cy)
 
float scale_from_255 (const float &x, const float &xmin, const float &xmax)
 
UINT8 scale_to_255 (const float &x, const float &xmin, const float &xmax)
 
template<class T >
RES_T scaleClosest (Image< T > &imIn, double cx, double cy, Image< T > &imOut)
 Scale image If imIn has the size (W,H), the size of imOut will be (W*cx, H*cy).
 
template<class T >
RES_T scaleClosest (Image< T > &imIn, double cx, double cy)
 
template<typename T1 >
static void SeparableConvolution (T1 *imIn, int Width, int Height, float *gau, int taille, float *GauX, float *GauY)
 
static void SeparableConvolution_dxy (int Width, int Height, float *Image, float *gau, int taille, float *Derive, bool Direction)
 
bool setSameSize (const BaseImage *im,...)
 Set the same size to a list of images. More...
 
template<>
void shiftLine (const unaryLineFunctionBase< RGB >::lineInType lIn, int dx, size_t lineLen, unaryLineFunctionBase< RGB >::lineInType lOut, RGB borderValue)
 
template<>
void shiftLine< Bit > (const Image< Bit >::lineType lIn, int dx, size_t lineLen, Image< Bit >::lineType lOut, Bit borderValue)
 
template<class T >
RES_T skeleton (const Image< T > &imIn, Image< T > &imOut, const StrElt &se=DEFAULT_SE)
 Morphological skeleton.
 
template<class T >
RES_T skiz (const Image< T > &imIn, Image< T > &imOut)
 Skiz by influence zones. More...
 
void SmallRegionalMinima (greyval *im, greyval *label, int *Queue, int *Qmax, int width, int height, int lambda)
 
template<class MCT1 , class T2 >
RES_T splitChannels (const Image< MCT1 > &imIn, Image< T2 > &im3DOut)
 Split channels of multichannel image to a 3D image with each channel on a Z slice. More...
 
vector< string > splitLines (const string &buf)
 
int splitStr (const std::string &s, char delim, std::vector< std::string > &elems)
 
vector< string > splitString (const string &buf, const char *delimiters)
 
SquSE sSE (UINT s=1)
 
SquSE0 sSE0 (UINT s=1)
 
template<class T >
RES_T StandardPNGRead (const char *filename, Image< T > &image)
 
template<class T >
RES_T StandardPNGWrite (const Image< T > &image, const char *filename)
 
template<class T >
RES_T StandardTIFFRead (const char *filename, Image< T > &image)
 
template<class T >
RES_T StandardTIFFWrite (const Image< T > &image, const char *filename)
 
template<class labelT , class T >
size_t stochasticFlatZones (const Image< labelT > &primary, const Image< T > &gradient, Image< labelT > &out, const size_t &n_seeds, const double &t0, const StrElt &s)
 Over Segmentation Correction. More...
 
template<class labelT , class T >
size_t stochasticFlatZonesParallel (const Image< labelT > &primary, const Image< T > &gradient, Image< labelT > &out, const size_t &n_seeds, const double &t0, const StrElt &s)
 Over Segmentation Correction. More...
 
template<class labelT , class T >
void stochasticGraphToPDF (const Image< labelT > &img, stochastic_graph< labelT, T > &graph, Image< labelT > &out, const StrElt &s)
 
template<class labelT , class T >
void stochasticWatershed (const Image< labelT > &primary, const Image< T > &gradient, Image< labelT > &out, const size_t &n_seeds, const StrElt &s)
 Over Segmentation Correction. More...
 
template<class labelT , class T >
void stochasticWatershedParallel (const Image< labelT > &primary, const Image< T > &gradient, Image< labelT > &out, const size_t &n_seeds, const StrElt &s)
 Over Segmentation Correction. More...
 
template<class T1 , class T2 >
RES_T stretchHist (const Image< T1 > &imIn, T1 inMinVal, T1 inMaxVal, Image< T2 > &imOut, T2 outMinVal=numeric_limits< T2 >::min(), T2 outMaxVal=numeric_limits< T2 >::max())
 Stretch histogram.
 
template<class T1 , class T2 >
RES_T stretchHist (const Image< T1 > &imIn, Image< T2 > &imOut, T2 outMinVal, T2 outMaxVal)
 
template<class T1 , class T2 >
RES_T stretchHist (const Image< T1 > &imIn, Image< T2 > &imOut)
 
template<class T >
RES_T sub (const Image< T > &imIn1, const Image< T > &imIn2, Image< T > &imOut)
 Subtraction. More...
 
template<class T >
RES_T sub (const Image< T > &imIn1, const T &value, Image< T > &imOut)
 
template<class T >
RES_T sub (const T &value, const Image< T > &imIn, Image< T > &imOut)
 
template<class T >
RES_T subNoSat (const Image< T > &imIn1, const Image< T > &imIn2, Image< T > &imOut)
 Subtraction (without type minimum check) More...
 
template<class T >
RES_T subNoSat (const Image< T > &imIn1, const T &value, Image< T > &imOut)
 
template<class T >
RES_T subNoSat (const T &value, const Image< T > &imIn, Image< T > &imOut)
 
template<class T >
RES_T sup (const Image< T > &imIn1, const Image< T > &imIn2, Image< T > &imOut)
 Sup of two images.
 
template<class T >
ResImage< T > sup (const Image< T > &imIn1, const Image< T > &imIn2)
 
template<class T >
RES_T sup (const Image< T > &imIn1, const T &value, Image< T > &imOut)
 
void SupTriplePoint (UINT8 *bufferIn, int W, int H, int D, std::vector< int > &currentCC, std::queue< int > *triplePoint)
 
double SZE (int *matrix, int Width, int nbGrayLevel)
 F0 - Small Zone Emphasis, SZE. More...
 
double SZHGE (int *matrix, int Width, int nbGrayLevel)
 F5 - Small Zone High Gray level Emphasis, SZHGE. More...
 
double SZLGE (int *matrix, int Width, int nbGrayLevel)
 F4 - Small Zone Low Gray level Emphasis, SZLGE. More...
 
double SZNU (int *matrix, int Width, int nbGrayLevel)
 F9 - Size Zone Non Uniform, SZNU. More...
 
template<class T1 >
static void t_createGaborKernel (T1 *gabor, double sigma, double theta, double lambda, double psi, double gamma)
 
void t_ImGeodesicPathBinary (double *DistanceMap, int W, int H, int D, int Allongement=0, float ScaleX=1, float ScaleY=1, float ScaleZ=1)
 
void t_ImGeodesicPathOnLabels (double *DistanceMap, double *LabelMap, int W, int H, int D, int Allongement=0, float ScaleX=1, float ScaleY=1, float ScaleZ=1)
 
template<class T >
RES_T t_ImSigmaFilterRGB (const Image< T > &imIn, const UINT8 radius, const double sigma, const double percentageNbMinPixel, const bool excludeOutlier, Image< T > &imOut)
 
template<typename T >
void t_LineCopyFromImage2D (T *rawImagePointerIn, const size_t lineSize, size_t y, T *lineout)
 
template<typename T >
void t_LineCopyToImage2D (T *linein, const size_t lineSize, size_t y, T *rawImagePointerOut)
 
template<typename T >
void t_LineShiftLeft (const T *linein, const int lineWidth, const int nbshift, const T shiftValue, T *lineout)
 
template<typename T >
void t_LineShiftRight (const T *linein, const int lineWidth, const int nbshift, const T shiftValue, T *lineout)
 
template<class T1 , class T2 >
RES_T test (const Image< T1 > &imIn1, const Image< T2 > &imIn2, const Image< T2 > &imIn3, Image< T2 > &imOut)
 Test. More...
 
template<class T1 , class T2 >
RES_T test (const Image< T1 > &imIn1, const Image< T2 > &imIn2, const T2 &value, Image< T2 > &imOut)
 
template<class T1 , class T2 >
RES_T test (const Image< T1 > &imIn1, const T2 &value, const Image< T2 > &imIn2, Image< T2 > &imOut)
 
template<class T1 , class T2 >
RES_T test (const Image< T1 > &imIn, const T2 &value1, const T2 &value2, Image< T2 > &imOut)
 
template<class T >
void testHandleSE (const Image< T > &img, StrElt se=DEFAULT_SE)
 
void testHandleSE (StrElt &se)
 
template<class T >
RES_T thick (const Image< T > &imIn, const StrElt &foreSE, const StrElt &backSE, Image< T > &imOut)
 Thicking transform.
 
template<class T >
RES_T thick (const Image< T > &imIn, const CompStrElt &compSE, Image< T > &imOut)
 
template<class T >
RES_T thick (const Image< T > &imIn, const CompStrEltList &mhtSE, Image< T > &imOut)
 
template<class T >
RES_T thin (const Image< T > &imIn, const StrElt &foreSE, const StrElt &backSE, Image< T > &imOut)
 Thinning transform.
 
template<class T >
RES_T thin (const Image< T > &imIn, const CompStrElt &compSE, Image< T > &imOut)
 
template<class T >
RES_T thin (const Image< T > &imIn, const CompStrEltList &mhtSE, Image< T > &imOut)
 
template<class T , class T_out >
RES_T threshold (const Image< T > &imIn, T minVal, T maxVal, T_out trueVal, T_out falseVal, Image< T_out > &imOut)
 Image threshold.
 
template<class T , class T_out >
RES_T threshold (const Image< T > &imIn, T minVal, T maxVal, Image< T_out > &imOut)
 
template<class T , class T_out >
RES_T threshold (const Image< T > &imIn, T minVal, Image< T_out > &imOut)
 
template<class T , class T_out >
RES_T threshold (const Image< T > &imIn, Image< T_out > &imOut)
 
template<class T >
cv::Mat toMatImage (Image< T > &im)
 Create a OpneCV Mat from a Smil image (the data is copied)
 
template<class labelT , class T >
void topDownHierarchy (std::vector< double > &weights, std::vector< hierarchy > &h, stochastic_graph< labelT, T > &graph)
 
template<class T >
RES_T topHat (const Image< T > &imIn, Image< T > &imOut, const StrElt &se=DEFAULT_SE)
 Open Top-Hat. More...
 
template<class T >
RES_T trans (const Image< T > &imIn, int dx, int dy, int dz, Image< T > &imOut, T borderValue=ImDtTypes< T >::min())
 Image translation.
 
template<class T >
RES_T trans (const Image< T > &imIn, int dx, int dy, Image< T > &imOut, T borderValue=ImDtTypes< T >::min())
 
template<class T >
ResImage< T > trans (const Image< T > &imIn, int dx, int dy, int dz)
 
template<class T >
ResImage< T > trans (const Image< T > &imIn, int dx, int dy)
 
template<class T1 , class T2 >
RES_T ultimateOpen (const Image< T1 > &imIn, Image< T1 > &imTrans, Image< T2 > &imIndic, const StrElt &se=DEFAULT_SE, T2 stopSize=0, UINT delta=0)
 Ultimate Opening using the max-trees. More...
 
template<class T1 , class T2 >
RES_T ultimateOpenMSER (const Image< T1 > &imIn, Image< T1 > &imTrans, Image< T2 > &imIndic, const StrElt &se=DEFAULT_SE, T2 stopSize=0, UINT delta=0, UINT method=2, UINT minArea=0, T1 threshold=0, bool use_textShape=0)
 
template<class labelT , class T >
std::vector< double > uniformDistribution (stochastic_graph< labelT, T > graph)
 
void Union (struct subset subsets[], int x, int y)
 
void UpdateLambdaD1 (UINT8 *imIn, UINT32 *Lambda, UINT8 *IsAlreadyPush, int W, int H, std::queue< int > *FIFO_Lplus, std::queue< int > *FIFO_Lmoins, int Level)
 
void UpdateLambdaD2 (UINT8 *imIn, UINT32 *Lambda, UINT8 *IsAlreadyPush, int W, int H, std::queue< int > *FIFO_Lplus, std::queue< int > *FIFO_Lmoins, int Level)
 
void UpdateLambdaH (UINT8 *imIn, UINT32 *Lambda, UINT8 *IsAlreadyPush, int W, int H, std::queue< int > *FIFO_Lplus, std::queue< int > *FIFO_Lmoins, int k)
 
static void UpdateLambdaH_GraphV2 (UINT8 *imIn, float *Lambda, UINT8 *IsAlreadyPush, int W, int H, std::queue< int > *FIFO_Lplus, std::queue< int > *FIFO_Lmoins, int k, int Type)
 
void UpdateLambdaV (UINT8 *imIn, UINT32 *Lambda, UINT8 *IsAlreadyPush, int W, int H, std::queue< int > *FIFO_Lplus, std::queue< int > *FIFO_Lmoins, int k)
 
static void UpdateLambdaV_GraphV2 (UINT8 *imIn, float *Lambda, UINT8 *IsAlreadyPush, int W, int H, std::queue< int > *FIFO_Lplus, std::queue< int > *FIFO_Lmoins, int k, int Type)
 
template<class T >
vector< T > valueList (const Image< T > &imIn, bool onlyNonZero=true)
 Get the list of the pixel values present in the image. More...
 
template<class T , class labelT >
map< labelT, vector< T > > valueLists (const Image< T > &imIn, map< labelT, Blob > &blobs)
 Measure the list of values of each blob in imIn. More...
 
template<class T >
RES_T vertConvolve (const Image< T > &imIn, const vector< double > &kernel, Image< T > &imOut)
 Vertical convolution. More...
 
template<class T >
RES_T vFlip (Image< T > &imIn, Image< T > &imOut)
 Vertical flip (horizontal mirror). More...
 
template<class T >
RES_T vFlip (Image< T > &imInOut)
 
void VincentAreaClosing (int lambda, greyval *im, greyval *label, int width, int height, PixelHeap *p_heap, long *fill_list)
 
template<class labelT , class T >
void visit_stochastic_node (const T &l, stochastic_graph< labelT, T > &r, vector< T > &visited, const size_t &i)
 
template<class T >
double vol (const Image< T > &imIn)
 Volume of an image. More...
 
template<>
double vol (const Image< RGB > &imIn)
 
template<class T >
RES_T waterfall (const Image< T > &gradIn, const Image< T > &wsIn, Image< T > &imGradOut, Image< T > &imWsOut, const StrElt &se=DEFAULT_SE)
 Waterfall. More...
 
template<class T >
RES_T waterfall (const Image< T > &gradIn, UINT nLevel, Image< T > &imWsOut, const StrElt &se=DEFAULT_SE)
 Waterfall. More...
 
template<class T , class labelT >
RES_T watershed (const Image< T > &imIn, const Image< labelT > &imMarkers, Image< T > &imOut, Image< labelT > &imBasinsOut, const StrElt &se=DEFAULT_SE)
 Constrained watershed. More...
 
template<class T , class labelT >
RES_T watershed (const Image< T > &imIn, Image< labelT > &imMarkers, Image< T > &imOut, const StrElt &se=DEFAULT_SE)
 
template<class T >
RES_T watershed (const Image< T > &imIn, Image< T > &imOut, const StrElt &se=DEFAULT_SE)
 
template<class T , class labelT , class outT >
RES_T watershedExtinction (const Image< T > &imIn, const Image< labelT > &imMarkers, Image< outT > &imOut, Image< labelT > &imBasinsOut, const char *extinctionType="v", const StrElt &se=DEFAULT_SE, bool rankOutput=true)
 
template<class T , class labelT , class outT >
RES_T watershedExtinction (const Image< T > &imIn, Image< labelT > &imMarkers, Image< outT > &imOut, const char *extinctionType="v", const StrElt &se=DEFAULT_SE, bool rankOutput=true)
 
template<class T , class outT >
RES_T watershedExtinction (const Image< T > &imIn, Image< outT > &imOut, const char *extinctionType="v", const StrElt &se=DEFAULT_SE, bool rankOutput=true)
 
template<class T , class labelT , class outT >
RES_T watershedExtinctionGraph (const Image< T > &imIn, const Image< labelT > &imMarkers, Image< labelT > &imBasinsOut, Graph< labelT, outT > &graph, const char *extinctionType="v", const StrElt &se=DEFAULT_SE)
 Calculation of the minimum spanning tree, simultaneously to the image flooding, with edges weighted according to volume extinction values. More...
 
template<class T , class labelT , class outT >
RES_T watershedExtinctionGraph (const Image< T > &imIn, Image< labelT > &imBasinsOut, Graph< labelT, outT > &graph, const char *extinctionType="v", const StrElt &se=DEFAULT_SE)
 
template<class T , class labelT >
Graph< labelT, labelT > watershedExtinctionGraph (const Image< T > &imIn, const Image< labelT > &imMarkers, Image< labelT > &imBasinsOut, const char *extinctionType="v", const StrElt &se=DEFAULT_SE)
 Warning: returns a graph with ranking values.
 
template<class T , class labelT >
Graph< labelT, labelT > watershedExtinctionGraph (const Image< T > &imIn, Image< labelT > &imBasinsOut, const char *extinctionType="v", const StrElt &se=DEFAULT_SE)
 
template<class labelT , class T >
std::vector< size_t > watershedGraph (stochastic_graph< labelT, T > &graph, std::vector< int > &markers)
 
template<class labelT , class T >
std::vector< double > weightHierarchy (std::vector< hierarchy > &h, stochastic_graph< labelT, T > &graph)
 
template<class T >
RES_T widthClose (const Image< T > &imIn, size_t stopSize, Image< T > &imOut, const StrElt &se=DEFAULT_SE)
 
template<class T >
RES_T widthOpen (const Image< T > &imIn, size_t stopSize, Image< T > &imOut, const StrElt &se=DEFAULT_SE)
 Width opening. More...
 
template<class T >
RES_T write (const Image< T > &image, const char *filename)
 Write image file.
 
template<class T >
RES_T write (const Image< T > &image, const vector< string > fileList)
 Write a 3D image as a stack of 2D images. More...
 
size_t write_data (void *ptr, size_t size, size_t nmemb, FILE *stream)
 
RES_T writeJPGHeader (FILE *, JPGHeader &)
 
static size_t WriteMemoryCallback (void *contents, size_t size, size_t nmemb, void *)
 
RES_T writePNGHeader (FILE *fp, PNGHeader &hStruct)
 
template<class T >
RES_T writeRAW (Image< T > &image, const char *filename)
 RAW file write.
 
RES_T writeTIFFHeader (FILE *, TIFFHeader &)
 
template<class T >
RES_T zhangSkeleton (const Image< T > &imIn, Image< T > &imOut)
 Zhang 2D skeleton. More...
 
double ZPC (int *matrix, int Width, int nbGrayLevel)
 F10 - Zone Percentage, ZPC. More...
 
RES_T RGBToXYZ (const Image< RGB > &imRgbIn, Image< RGB > &imXyzOut)
 RGBToXYZ. More...
 
RES_T XYZToRGB (const Image< RGB > &imXyzIn, Image< RGB > &imRgbOut)
 XYZToRGB. More...
 
RES_T XYZToLAB (const Image< RGB > &imXyzIn, Image< RGB > &imLabOut)
 XYZToLAB. More...
 
RES_T LABToXYZ (const Image< RGB > &imLabIn, Image< RGB > &imXyzOut)
 LABToXYZ. More...
 
RES_T RGBToHLS (const Image< RGB > &imRgbIn, Image< RGB > &imHlsOut)
 RGBToHLS. More...
 
RES_T HLSToRGB (const Image< RGB > &imHlsIn, Image< RGB > &imRgbOut)
 HLSToRGB. More...
 
RES_T RGBToHSV (const Image< RGB > &imRgbIn, Image< RGB > &imHlsOut)
 RGBToHSV. More...
 
RES_T RGBToLAB (const Image< RGB > &imRgbIn, Image< RGB > &imLabOut)
 RGBToLAB. More...
 
RES_T LABToRGB (const Image< RGB > &imLabIn, Image< RGB > &imRgbOut)
 LABToRGB. More...
 
template<class T >
RES_T RGBToLuminance (const Image< RGB > &imRgbIn, Image< T > &imLumOut)
 RGBToLuminance. More...
 
RES_T gradient_LAB (const Image< RGB > &imIn, Image< UINT8 > &imOut, const StrElt &se=DEFAULT_SE, bool convertFirstToLAB=true)
 gradient_LAB More...
 
Image< UINT8 > gradient_LAB (const Image< RGB > &imIn, const StrElt &se=DEFAULT_SE, bool convertFirstToLAB=true)
 gradient_LAB More...
 
RES_T gradient_HLS (const Image< RGB > &imIn, Image< UINT8 > &imOut, const StrElt &se=DEFAULT_SE, bool convertFirstToHLS=true)
 gradient_HLS More...
 
Image< UINT8 > gradient_HLS (const Image< RGB > &imIn, const StrElt &se=DEFAULT_SE, bool convertFirstToHLS=true)
 gradient_HLS More...
 
template<class T >
RES_T drawLine (Image< T > &im, int x0, int y0, int x1, int y1, T value=ImDtTypes< T >::max())
 Draws a line between two points P0(x0,y0) and P1(x1,y1). More...
 
template<class T >
RES_T drawLine (Image< T > &imOut, vector< UINT > coords, T value=ImDtTypes< T >::max())
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
template<class T >
RES_T drawRectangle (Image< T > &imOut, int x0, int y0, size_t width, size_t height, T value=ImDtTypes< T >::max(), bool fill=false, size_t zSlice=0)
 Draw a rectangle. More...
 
template<class T >
RES_T drawRectangle (Image< T > &imOut, vector< UINT > coords, T value=ImDtTypes< T >::max(), bool fill=false)
 
template<class T , class MapT >
RES_T drawRectangles (Image< T > &imOut, const map< MapT, vector< size_t > > &coordsVectMap, bool fill=false)
 Draw a list of rectangles. More...
 
template<class T >
RES_T drawCircle (Image< T > &imOut, int x0, int y0, int radius, T value=ImDtTypes< T >::max(), size_t zSlice=0)
 Draw a circle. More...
 
template<class T >
RES_T drawSphere (Image< T > &imOut, int x0, int y0, int z0, int radius, T value=ImDtTypes< T >::max())
 Draw a sphere. More...
 
template<class T >
RES_T drawDisc (Image< T > &imOut, int x0, int y0, size_t zSlice, int radius, T value=ImDtTypes< T >::max())
 Draw a disc. More...
 
template<class T >
RES_T drawDisc (Image< T > &imOut, int x0, int y0, int radius, T value=ImDtTypes< T >::max())
 
template<class T >
RES_T drawBox (Image< T > &imOut, size_t x0, size_t y0, size_t z0, size_t width, size_t height, size_t depth, T value=ImDtTypes< T >::max(), bool fill=false)
 Draw a box (3D) More...
 
template<class T >
RES_T drawText (Image< T > &imOut, size_t x, size_t y, size_t z, string txt, string font, UINT size=20, T value=ImDtTypes< T >::max())
 Draw text on image. More...
 
template<class T >
RES_T drawText (Image< T > &imOut, size_t x, size_t y, string txt, string font, UINT size=20, T value=ImDtTypes< T >::max())
 
template<class T >
RES_T copyPattern (const Image< T > &imIn, int x0, int y0, int width, int height, Image< T > &imOut, int nbr_along_x, int nbr_along_y)
 Copy a given pattern (zone of input image) several times in an output image. More...
 
template<class T >
RES_T copyPattern (const Image< T > &imIn, int x0, int y0, int width, int height, Image< T > &imOut)
 
template<class T >
RES_T copyPattern (const Image< T > &imIn, Image< T > &imOut, int nbr_along_x, int nbr_along_y)
 
template<class T >
RES_T copyPattern (const Image< T > &imIn, Image< T > &imOut)
 
template<class T1 , class T2 >
void copyLine (const typename unaryLineFunctionBase< T1 >::lineInType lIn, const size_t size, typename unaryLineFunctionBase< T2 >::lineInType lOut)
 copy line
 
template<class T >
void copyLine (const typename unaryLineFunctionBase< T >::lineInType lIn, const size_t size, typename unaryLineFunctionBase< T >::lineInType lOut)
 
template<class T >
void shiftLine (const typename unaryLineFunctionBase< T >::lineInType lIn, int dx, size_t lineLen, typename unaryLineFunctionBase< T >::lineInType lOut, T borderValue=ImDtTypes< T >::min())
 
template<class T >
Image< T > * createImage (const T)
 
template<class T >
Image< T > * castBaseImage (BaseImage *img, const T &)
 
template<class T >
RES_T drawOverlay (const Image< T > &imToDraw, Image< T > &imOut)
 Draw overlay.
 

Variables

AttribStruct Attribs [NUMATTR]
 
static int debugOn = false
 
DecisionStruct Decisions [NUMDECISIONS]
 
const map< T1, T2 > Image< T2 > T2 defaultValue
 
Graphgraph
 
int head
 
Graph const StrElt class T2 const Image< T2 > & imEdgeValues
 
Graph const StrElt class T2 const Image< T2 > Graph const StrElt class T2 const Image< T2 > const Image< T2 > & imNodeValues
 
const map< T1, T2 > Image< T2 > & imOut
 
const Graph Image< imOutT > imOutT linesValue
 
const map< T1, T2 > & lut
 
static std::string memoryCallbackBuffer
 
int * Queue
 
Graph const StrEltse
 
int * SortPixels
 
double Sum = 1
 
int tail
 
enum  RES_T {
  RES_OK = 1, RES_ERR = -100, RES_ERR_BAD_ALLOCATION, RES_ERR_BAD_SIZE,
  RES_ERR_IO, RES_ERR_NOT_IMPLEMENTED, RES_ERR_UNKNOWN
}
 
const char * getErrorMessage (const RES_T &res)
 

Detailed Description

Author Vincent Morard Date : 7 march 2011 See : Morard V. and Dokladal P. and Decenciere E. LINEAR OPENINGS IN CONSTANT TIME WITH ARBITRARY ORIENTATIONS.

Interface to SMIL Vincent Morard Date : 7 march 2011.

This program computes the grey scale area closing using Vincent's priority-queue algorithm. The input is a grey scale image (im), and its output is a grey-scale image (out). The time complexity of this algorithm is quadratic in the number of pixels, and AlogA in the area A of the closing.

(c) Arnold Meijster and Michael Wilkinson

Function Documentation

◆ areAllocated()

bool smil::areAllocated ( const BaseImage im,
  ... 
)
inline

Check if all images in a list are allocated.

The list of images must be finished by NULL.

◆ BARYGL()

double smil::BARYGL ( int *  matrix,
int  Width,
int  nbGrayLevel 
)
inline

F11 - Methode qui calcule le barycentre sur les niveaux de gris.

Returns
Le barycentre sur les niveaux de gris.

◆ BARYS()

double smil::BARYS ( int *  matrix,
int  Width,
int  nbGrayLevel 
)
inline

F12 - Methode qui calcule le barycentre sur les tailles.

Returns
Le barycentre sur les tailles.

◆ GLNU()

double smil::GLNU ( int *  matrix,
int  Width,
int  nbGrayLevel 
)
inline

F8 - Gray Level Non Uniform, GLNU.

Homogeneite spectrale.

Returns
GLNU.

◆ haveSameSize()

bool smil::haveSameSize ( const BaseImage im,
  ... 
)
inline

Check if all images in a list have the same size.

The list of images must be finished by NULL.

◆ HGZE()

double smil::HGZE ( int *  matrix,
int  Width,
int  nbGrayLevel 
)
inline

F3 - High Gray level Zone Emphasis, HGZE.

Returns
HGZE.

◆ LGZE()

double smil::LGZE ( int *  matrix,
int  Width,
int  nbGrayLevel 
)
inline

F2 - Low Gray level Zone Emphasis, LGZE.

Returns
LGZE.

◆ LZE()

double smil::LZE ( int *  matrix,
int  Width,
int  nbGrayLevel 
)
inline

F1 - Large Zone Emphasis, LZE.

Grande zone.

Returns
LZE.

◆ LZHGE()

double smil::LZHGE ( int *  matrix,
int  Width,
int  nbGrayLevel 
)
inline

F7 - Large Zone High Gray level Emphasis, LZHGE.

Returns
LZHGE.

◆ LZLGE()

double smil::LZLGE ( int *  matrix,
int  Width,
int  nbGrayLevel 
)
inline

F6 - Large Zone Low Gray level Emphasis, LZLGE.

Returns
LSLGLE.

◆ setSameSize()

bool smil::setSameSize ( const BaseImage im,
  ... 
)
inline

Set the same size to a list of images.

The size applied corresponds to the size of the first input image

◆ SZE()

double smil::SZE ( int *  matrix,
int  Width,
int  nbGrayLevel 
)
inline

F0 - Small Zone Emphasis, SZE.

Petites zones.

Returns
SZE.

◆ SZHGE()

double smil::SZHGE ( int *  matrix,
int  Width,
int  nbGrayLevel 
)
inline

F5 - Small Zone High Gray level Emphasis, SZHGE.

Returns
SZHGE.

◆ SZLGE()

double smil::SZLGE ( int *  matrix,
int  Width,
int  nbGrayLevel 
)
inline

F4 - Small Zone Low Gray level Emphasis, SZLGE.

Returns
SZLGE.

◆ SZNU()

double smil::SZNU ( int *  matrix,
int  Width,
int  nbGrayLevel 
)
inline

F9 - Size Zone Non Uniform, SZNU.

Uniformite.

Returns
SZNU.

◆ ZPC()

double smil::ZPC ( int *  matrix,
int  Width,
int  nbGrayLevel 
)
inline

F10 - Zone Percentage, ZPC.

Egalite des isotailles (pourcentage primitives).

Returns
ZPC.

Variable Documentation

◆ Attribs

AttribStruct Attribs[NUMATTR]
Initial value:
= {
{"Area", NewAreaData, DeleteAreaData, AddToAreaData, MergeAreaData,
AreaAttribute},
{"Area of min. enclosing rectangle", NewEnclRectData, DeleteEnclRectData,
AddToEnclRectData, MergeEnclRectData, EnclRectAreaAttribute},
{"Square of diagonal of min. enclosing rectangle", NewEnclRectData,
DeleteEnclRectData, AddToEnclRectData, MergeEnclRectData,
EnclRectDiagAttribute},
{"Moment of Inertia", NewInertiaData, DeleteInertiaData, AddToInertiaData,
MergeInertiaData, InertiaAttribute},
{"(Moment of Inertia) / (area)^2", NewInertiaData, DeleteInertiaData,
AddToInertiaData, MergeInertiaData, InertiaDivA2Attribute},
{"Mean X position", NewInertiaData, DeleteInertiaData, AddToInertiaData,
MergeInertiaData, MeanXAttribute},
{"Mean Y position", NewInertiaData, DeleteInertiaData, AddToInertiaData,
MergeInertiaData, MeanYAttribute}}

◆ Decisions

DecisionStruct Decisions[NUMDECISIONS]
Initial value:
= {
{"Min", MaxTreeFilterMin},
{"Direct", MaxTreeFilterDirect},
{"Max", MaxTreeFilterMax},
{"Subtractive", MaxTreeFilterSubtractive},
}