Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Aug 22nd, 2005, 7:58 AM   #1
patjc
Newbie
 
Join Date: Aug 2005
Posts: 1
Rep Power: 0 patjc is on a distinguished road
text boxs and counts

what i would like to be able to do is display the start and end point in a textbox according to a count where every group of black pixels appear in the row of a picture box that contains a black and white image with each start and end point getting a separate row in the text box
i.e
when the program checks each pixel in the row it will increment a count as long as its a white pixel(or not a black one) when the pixel is no longer white (or becomes black)it will then display the count in a textbox indicating the position of the start of the group of black pixels .then it will continue checking each pixel and incrementing the count untill it comes across a white pixel .then it will display the position of the last black pixel indicating the position of the end of the group of black pixels.the program would then keep checking the pixels dispalying the count value for the start and end of the groups of black pixels until it reaches the end of the row
i am stuck badly trying to get the code going and its holding me up big time
i have tried a number of different ways of getting the program to work any body reckon they could get somthing going



w=white pixel
b=black pixel
wwwbbbwwwbbb = text box showing 4,6
................................................. 10,12
`
patjc is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 10:16 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC