View Single Post
  #1 (permalink)  
Old February 27th, 2005, 03:33 AM
ck ck is offline
Authorized User
 
Join Date: Dec 2004
Posts: 34
Thanks: 0
Thanked 0 Times in 0 Posts
Default image processing

hi, i doing a image processing for thinning.thinning is to thin the ridge in one pixel thick.in thinning it got 3*3 mask as below:

p9 p2 p3
p8 p1 p4
p7 p6 p5

it must satisfied 4 conditions in 2 steps:
step 1:
condition 1:
2<N(P1)<6
where N(P1) = p2+p3+p4+p5+p6+p7+p8+p9

condition 2:
T(P1) = 1
where T(P1) is transition 0 to 1 in order sequence p2, p3, p4...p9

condition 3:
p2, p4, p6 = 0

condition 4:
p4, p6, p8 = 0

if all the condition is match then delete the pixel.

step 2:
condition 1:
2<N(P1)<6
where N(P1) = p2+p3+p4+p5+p6+p7+p8+p9

condition 2:
T(P1) = 1
where T(P1) is transition 0 to 1 in order sequence p2, p3, p4...p9

condition 3:
p2, p4, p8 = 0

condition 4:
p2, p6, p8 = 0

if all the condition is match then delete the pixel.

so, how to do it??? thanks a lot.....
hear from u soon :)

regards,
ck


__________________
ck.
Reply With Quote