SMIL
1.0.4
|
Functions | |
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<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 | 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<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 | 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<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<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<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<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 | 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 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 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 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<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 | 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<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<typename T > | |
RES_T | ImPathOpening_GraphV2 (const Image< UINT8 > &imIn, double Lenght, Image< T > &imOut) |
Path Opening Operation with a graph V2. 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<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<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 | 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... | |
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 | 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 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 | 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 | 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 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<class T1 , class T2 > | |
RES_T | measComputeVolume (const Image< T1 > &imIn, const Image< T2 > &imLevel, float *Value) |
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 | ImFromSK_AreaForEachCC (const Image< T1 > &imIn, int ScaleX, int ScaleY, int ScaleZ, Image< T2 > &imOut) |
template<class T > | |
RES_T | MeanValueOf (const Image< T > &imIn, bool slideBySlide, double *Value) |
template<class T1 , class T2 > | |
RES_T | ImLayerDist (Image< T1 > &imIn, int labelIn, int labelOut, float dx, float dy, float dz, Image< T2 > &imOut) |
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.
[in] | imIn | : the initial image |
[in] | Lenght | : Stop criteria values i.e. size of lenght |
[out] | imOut | : Path Opening of imIn |
RES_T smil::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.
[in] | imIn | : the initial image |
[in] | Lenght | : Stop criteria values i.e. size of lenght |
[out] | imOut | : Path Closing of imIn |
Fast Grayscale Path Opening Operation: made by updating the distance function from on threshold to an other.
[in] | imIn | : the initial image |
[in] | Lenght | : Stop criteria values i.e. size of lenght |
[out] | imOut | : Path Opening of imIn |
Fast Grayscale Path Closing Operation made by updating the distance function from on threshold to an other.
[in] | imIn | : the initial image |
[in] | Lenght | : Stop criteria values i.e. size of lenght |
[out] | imOut | : Path Opening of imIn |
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.
[in] | imIn | : the initial image |
[out] | imOut | : Ultimate Path Opening of imIn (contraste) |
[out] | imIndicatrice | : Ultimate Path Opening of imIn (Size of the opening) |
[in] | stop | : size of the max opening [-1 : max(W,H)] |
[out] | lambdaAttribute | : accumulation [0 : no accumulation] |
RES_T smil::ImUltimatePathClosing | ( | const Image< UINT8 > & | imIn, |
Image< T1 > & | imTrans, | ||
Image< T2 > & | imInd, | ||
int | stop, | ||
int | lambdaAttribute | ||
) |
Ultimate Path Closing Operation with a graph V3.
[in] | imIn | : the initial image |
[out] | imTrans | : Ultimate Path Opening of imIn (contraste) |
[out] | imInd | : Ultimate Path Opening of imIn (Size of the opening) |
[out] | stop | : size of the max opening [-1 : max(W,H)] |
[out] | lambdaAttribute | : accumulation [0 : no accumulation] |
RES_T ImBinaryPathOpening | ( | const Image< T1 > & | imIn, |
const UINT32 | Lenght, | ||
const UINT32 | Slice, | ||
Image< T2 > & | imOut | ||
) |
Binary Path Opening Operation.
[in] | imIn | : the initial image |
[in] | Lenght | : Stop criteria values i.e. size of lenght |
[in] | Slice | : Threashold of the input image : the path closing would be applyed on this slice |
[out] | imOut | : Binary Path Opening of imIn |
RES_T smil::ImBinaryPathClosing | ( | const Image< T1 > & | imIn, |
const UINT32 | Lenght, | ||
const UINT32 | Slice, | ||
Image< T2 > & | imOut | ||
) |
Binary Path Closing Operation.
[in] | imIn | : the initial image |
[in] | Lenght | : Stop criteria values i.e. size of lenght |
[in] | Slice | : Threashold of the input image : the path closing would be applyed on this slice |
[out] | imOut | : Binary Path Closing of imIn |
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.
[in] | imIn | : the initial image |
[in] | Lenght | : size of the path (above: the CC is destroy) |
[out] | imOut | : geodesic valuation of the path |
[in] | Method | : size of the path (above: the CC is destroy) |
[in] | ScaleX | : Scale X |
[in] | ScaleY | : Scale Y |
[in] | ScaleZ | : Scale Z |
RES_T smil::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.
[in] | imIn | : the initial image |
[out] | imOut | : geodesic valuation of the path |
[in] | Lenght | : size of the path (above: the CC is destroy) |
[in] | Method | : |
[in] | ScaleX | : Scale X |
[in] | ScaleY | : Scale Y |
[in] | ScaleZ | : Scale Z |
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.
[in] | imIn | : the initial image |
[out] | imTrans | : geodesic valuation of the path: image Transform |
[out] | imInd | : geodesic valuation of the path : image Indicatrice |
[in] | ScaleX | : Scale X |
[in] | ScaleY | : Scale Y |
[in] | ScaleZ | : Scale Z |
[in] | stop | : Parameter of the UO stop lenght value |
[in] | lambdaAttribute | : Accumulation. [0, no accumulation] |
[in] | takeMin | : As the geodesic Path is not an increasing attribute, we can chose the min or the max. |
RES_T smil::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.
[in] | imIn | : the initial image |
[out] | imTrans | : geodesic valuation of the path: image Transform |
[out] | imIndicatrice | : geodesic valuation of the path : image Indicatrice |
[in] | ScaleX | : Scale X |
[in] | ScaleY | : Scale Y |
[in] | ScaleZ | : Scale Z |
[in] | stop | : Parameter of the UO stop lenght value |
[in] | lambdaAttribute | : Accumulation. [0, no accumulation] |
[in] | takeMin | : As the geodesic Path is not an increasing attribute, we can chose the min or the max. |
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.
[in] | imIn | : the initial image (binary : 0, 255) |
[out] | imOut | : the result (gray scale ) |
[in] | sliceBySlice | : if we apply this algorithm for the entire picture or slice by slice. |
[in] | dz_over_dx | : |
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.
[in] | imIn | : the initial image (binary : 0, 255) |
[out] | imOut | : the result (gray scale ) |
[in] | sliceBySlice | : if we apply this algorithm for the entire picture or slice by slice. |
[in] | dz_over_dx | : |
ImLabelFlatZonesWithElongation : we compute the elongation for each flat zone in a gray scale image.
Only 8-connectivity is implemented by the moment.
[in] | imIn | : the initial image (gray scale) |
[out] | imOut | : the result (gray scale) |
ImLabelFlatZonesWithExtremities : we compute the elongation for each flat zone in a gray scale image.
Only 8-connectivity is implemented by the moment.
[in] | imIn | : the initial image (gray scale) |
[out] | imOut | : the result (gray scale) |
ImLabelFlatZonesWithGeodesicDiameter : we compute the geodesic diameter for each flat zone in a gray scale image.
Only 8-connectivity is implemented by the moment.
[in] | imIn | : the initial image (gray scale) |
[out] | imOut | : the result (gray scale) |
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.
[in] | imIn | : the initial image (binary : 0, 255) |
[out] | imOut | : the result (gray scale ) |
[in] | sliceBySlice | : if we apply this algorithm for the entire picture or slice by slice. |
[in] | dz_over_dx | : |
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.
[in] | imIn | : the initial image |
[out] | imTrans | : Ultimate Path Opening of imIn (contraste) |
[out] | imInd | : Ultimate Path Opening of imIn (Size of the opening) |
[out] | stop | : size of the max opening [-1 : max(W,H)] |
[out] | lambdaAttribute | : accumulation [0 : no accumulation] |
RES_T smil::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.
[in] | imIn | : the initial image |
[out] | imTrans | : Ultimate Path Opening of imIn (contraste) |
[out] | imInd | : Ultimate Path Opening of imIn (Size of the opening) |
[out] | stop | : size of the max opening [-1 : max(W,H)] |
[out] | lambdaAttribute | : accumulation [0 : no accumulation] |
Path Opening Operation with a graph V2.
[in] | imIn | : the initial image |
[out] | imOut | : pathOpening of imIn |
[in] | Lenght | : criteria value i.e. size of lenght |
RES_T smil::ImPathClosing_GraphV2 | ( | const Image< UINT8 > & | imIn, |
double | Lenght, | ||
Image< T > & | imOut | ||
) |
Path Closing Operation with a graph V2.
[in] | imIn | : the initial image |
[out] | imOut | : pathOpening of imIn |
[in] | Lenght | : criteria value i.e. size of lenght |
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.
[in] | imIn | : the initial image |
[out] | imOut | : the result (binary : 0, 255) |
[in] | SliceBySlice | : if we apply this algorithm for the entire picture or slice by slice. |
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)
[in] | imIn | : the initial image |
[out] | imOut | : the result (binary : 0, 255) |
[in] | paramSigma | : threshold : Mu + paramSigma * Sigma |
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.
[in] | imIn | : |
[in] | imIn2 | : |
[out] | patternSpect | : image |
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.
[in] | imIndicatrice | : the initial image |
[out] | imIndicatriceCorr | : the initial image filtered |
[in] | percentage | : |
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.
[in] | imBin | : the initial image (binary : 0, 255) |
[in] | imSk | : the initial image (the skeleton associated) |
[out] | imOut | : the result : each CC have a value which correspond to the elongation of the CC |
ImFromSkeletonSupTriplePoint : Suppress the triples points from a skeleton.
[in] | imIn | : the initial image |
[out] | imOut | : the result |
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.
[in] | imIn | : the initial image |
[out] | Granulo | : |
[in] | nbElt | : |
[in] | ScaleX | : Scale X |
[in] | ScaleY | : Scale Y |
[in] | ScaleZ | : Scale Z |
ImFalseColorHSL : from a gray scale picture, we apply false color with a shade off.
(HSL color space)
[in] | imIn | : the initial image |
[out] | imOut | : the result |
[in] | Scale | : we multiply each pixel by a scale factor. |