PRTools contents

PRTools manual

im_bpropagation

IM_BPROPAGATION

Binary propagation of images stored in a dataset (DIP_Image)

    B = IM_BPROPAGATION(A1,A2,N,CONNECTIVITY,EDGE_CONDITION)

Input
 A1 Dataset with binary object images dataset (possibly multi-band)  to be treated as seed for the propagation
 A2 Dataset with binary object images dataset (possibly multi-band)  to be treated as mask for the propagation
 N Number of iterations (default inf)
 CONNECTIVITY See BPROPAGATION
 EDGE_CONDITION Value of edge, default 1

Output
 B Dataset with propagated images

Description

The binary images in A1 are dilated under the condition that the result  stays inside the components stored in A2.

Example(s)

 a = delft_idb; a = seldat(a,9);        delfigs
 mask = a*im_gray*im_threshold;         figure, show(mask)
 seed = mask*im_berosion;               figure, show(seed)
 cleaned = im_bpropagation(seed,mask);  figure, show(cleaned)
 showfigs

See also

datasets, datafiles, dip_image, bpropagation,

PRTools contents

PRTools manual