| | |
find the X-Y coordinate of the white pixels of the grayscale image using c#
![]() |
What do you mean by I want to box up the white pixels in the image using the rectangle. ?
Coordinates start in the upper left corner with (0,0).
Y coordinates increase by moving down.
X coordinates increase by moving left.
Coordinates start in the upper left corner with (0,0).
Y coordinates increase by moving down.
X coordinates increase by moving left.
Today is a gift, that's why it is called "The Present".
Make love, no war. Cave ab homine unius libri.
Danny
Make love, no war. Cave ab homine unius libri.
Danny
Do you mean you want to draw a rectangle around area that have all-white pixels? This will work OK if the areas are in fact only rectangular but I highly suspect you will find jagged edges with white pixels. How should that be handled?
•
•
Join Date: Jul 2009
Posts: 5
Reputation:
Solved Threads: 0
•
•
•
•
What do you mean by I want to box up the white pixels in the image using the rectangle. ?
Coordinates start in the upper left corner with (0,0).
Y coordinates increase by moving down.
X coordinates increase by moving left.
Box up mean indicate with rectangles where the white pixels of the image are.
I have a gray-scale image in the pictureBox and I want to draw a rectangle on the white pixels of the image. Now my problem is i don't know how to get the X-Y coordinate and size of the white pixels of the image for drawing the rectangle on them. As i m a beginer in programming, could you guide me how can i write it in c#. Thanks in advance.
best regards,
Check out this thread:
http://www.daniweb.com/forums/thread215149.html
It does basically the same thing but uses a screen shot instead of a bitmap file. You can just change that section of the code out then it shows you how to find a pixel. After you have a working version of that code then post it up here and we'll go from there!
http://www.daniweb.com/forums/thread215149.html
It does basically the same thing but uses a screen shot instead of a bitmap file. You can just change that section of the code out then it shows you how to find a pixel. After you have a working version of that code then post it up here and we'll go from there!
•
•
Join Date: Jul 2009
Posts: 5
Reputation:
Solved Threads: 0
•
•
•
•
Do you mean you want to draw a rectangle around area that have all-white pixels? This will work OK if the areas are in fact only rectangular but I highly suspect you will find jagged edges with white pixels. How should that be handled?
Best Regard,
![]() |
Other Threads in the C# Forum
- Previous Thread: Quirk in CheckedListBox?
- Next Thread: smart cab project does not refresh dependencies
Views: 1701 | Replies: 6
| Thread Tools | Search this Thread |
Tag cloud for image, picturebox
.net animation applet array asp.net back background backup bitmap bmp broken browser bufferedimage button byte c# captcha center checkbox clone cloning compression contenttype css database datagram differnces directory display dowload download drawing drive embedded encode encoder fast file form format free game gdi geometry grid gtk hard header hosting image image2database images include java jpanel jpeg link mandelbrot map math mediawiki method multimedia mysql open opengl packets pan panel php picture picturebox pixel pixelgrabber post problem pygame pygtk python random remote retrieve screen shot subdomain swing tagging tags transfer transparency udp upload url vb vb.net view web webbrowser website windows







