You are on page 1of 7

Computer Vision si Procesare

Avansata de Imagini
in Medii Virtuale Distribuite
Adrian DARABANT
L5
Threshold
• double threshold(InputArray src, OutputArray dst, double thresh, double maxval,
int type)
• THRESH_BINARY

• THRESH_BINARY_INV

• THRESH_TRUNC

• THRESH_TOZERO

• THRESH_TOZERO_INV
AdaptiveThreshold
• void adaptiveThreshold(InputArray src, OutputArray dst, double maxValue,
int adaptiveMethod, int thresholdType, int blockSize, double C)

• AdaptiveMethod –
– ADAPTIVE_THRESH_MEAN_C
– ADAPTIVE_THRESH_GAUSSIAN_C
Edge and Corner Detection using
morphological operations
• Take an image and detect in it:
– Edges
– corners
Edge Detection using morphological
operations
Hint: MorphologicalGradient
Corner Detection using morphological
operations

R1 = Dilate(Img,cross)
R1 = Erode(R1,Diamond)
R2 = Dilate(Img,Xshape) getStructuringElement
R2 = Erode(R2,square)
R = absdiff(R2,R1)
Display(R)

You might also like