Wrox Programmer Forums
|
C++ Programming General discussions for the C++ language. For questions specific to Microsoft's Visual C++ variant, see the Visual C++ forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C++ Programming section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #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





Similar Threads
Thread Thread Starter Forum Replies Last Post
image processing OCR tasleemarif C++ Programming 1 August 13th, 2007 11:09 AM
Document Image Processing (DIP) - changing image f ALcom Access 0 March 27th, 2006 06:10 AM
wat wrong of my code (image processing) ck C++ Programming 0 March 3rd, 2005 09:52 AM
image processing ck Visual C++ 0 February 27th, 2005 03:31 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.