1 from smilPython
import *
3 def tgdskiz(im1, im2, imMask):
17 def skizBin(label1, label2, maskIm, se=hSE()):
23 while oldVol != newVol:
31 sup(label1, tmp1, label1)
32 sup(label2, tmp2, label2)
39 def trueWatershed(imIn, imMark, imOut, se=hSE()):
49 mask(~label1, label1, label2)
53 sup(maskIm, imMark, maskIm)
54 skizBin(label1, label2, maskIm, se)
59 def skizIsotrop(imIn, imOut, se=hSE()):
66 mask(~label1, label1, label2)
74 skizBin(label1, label2, maskIm, se)
RES_T sup(const Image< T > &imIn1, const Image< T > &imIn2, Image< T > &imOut)
sup() - Sup of two images
Definition: DImageArith.hpp:254
RES_T inf(const Image< T > &imIn1, const Image< T > &imIn2, Image< T > &imOut)
inf() - Inf of two images
Definition: DImageArith.hpp:305
RES_T addNoSat(const Image< T > &imIn1, const Image< T > &imIn2, Image< T > &imOut)
addNoSat() - Addition (without saturation check)
Definition: DImageArith.hpp:126
RES_T mask(const Image< T > &imIn, const Image< T > &imMask, Image< T > &imOut)
mask() - Image mask
Definition: DImageArith.hpp:1969
RES_T fill(Image< T > &imOut, const T &value)
fill() - Fill an image with a given value.
Definition: DImageArith.hpp:1456
RES_T threshold(const Image< T > &imIn, T minVal, T maxVal, T_out trueVal, T_out falseVal, Image< T_out > &imOut)
threshold() - Image threshold
Definition: DImageHistogram.hpp:269
size_t label(const Image< T1 > &imIn, Image< T2 > &imOut, const StrElt &se=DEFAULT_SE)
label() - Image labelization
Definition: DMorphoLabel.hpp:564
vector< T > rangeVal(const Image< T > &imIn, bool onlyNonZero=false)
rangeVal() - Min and Max values of an image
Definition: DMeasures.hpp:416
double vol(const Image< T > &imIn)
vol() - Volume of an image
Definition: DMeasures.hpp:129
RES_T dilate(const Image< T > &imIn, Image< T > &imOut, const StrElt &se=DEFAULT_SE, const T borderVal=ImDtTypes< T >::min())
dilate() - Morphological grayscale dilation
Definition: DMorphoBase.hpp:65