Region Growing
Region Growing
Region Growing
1
REGION GROWING REGION GROWING
Growing criteria:
Since weld defects pixels are very bright, good seed Difference between pixel and seed less than 65.
pixel value is 255. 8-connected adjacency.
REGION GROWING
REGION GROWING
i=imread('pinktumor2.jpg');
f=rgb2gray(i);
[g,SI,TI]=regiongrow(f,75,70);
figure, subplot(121); imshow(f);
subplot(122); imshow(g);
Seeds
I = im2double(imread('medtest.png'));
x=198; y=359;
J = regiongrowing(I,x,y,0.2);
figure, subplot(131); imshow(I);
subplot(132); imshow(J);
• Quadtree-based algorithm
SEGMENTATION BY SIMILARITY
(SPLIT AND MERGE)
11
2
REGION SPLIT & MERGE STEP 1: SPLIT REGION R WHERE P(RI) =FALSE
Steps:
1. Split into 4 disjointed quadrants any region Ri where P(Ri) =
FALSE
2. Merge any adjacent regions Rj and Rk for which P(Rj ∪ Rk) =
TRUE
3. Stop when no further splitting or merging is possible.
STEP 1: SPLIT REGION R WHERE P(RI) =FALSE STEP 1: SPLIT REGION R WHERE P(RI) =FALSE
STEP 2. Merge adjacent regions Rj and Rk which P(Rj ∪ Rk) STEP 2. Merge adjacent regions Rj and Rk which P(Rj ∪ Rk)
= TRUE = TRUE
3
STEP 2. Merge adjacent regions Rj and Rk which P(Rj
∪ Rk) = TRUE