943,923 Members | Top Members by Rank

Ad:
  • Python Discussion Thread
  • Unsolved
  • Views: 1642
  • Python RSS
You are currently viewing page 2 of this multi-page discussion thread; Jump to the first page
May 20th, 2009
0

Re: Locating pixels 'x' position in image

I think I figured it out:

Python Syntax (Toggle Plain Text)
  1. y = 0
  2. for x in range(width):
  3. if pixel_dict[(x,y)][2] > 0:
  4. print( "(%d, %d): %s"% (x, y, pixel_dict[(x, y)]) )
Reputation Points: 10
Solved Threads: 0
Junior Poster in Training
kiddo39 is offline Offline
50 posts
since Nov 2008
May 21st, 2009
0

Re: Locating pixels 'x' position in image

Click to Expand / Collapse  Quote originally posted by kiddo39 ...
I think I figured it out:

Python Syntax (Toggle Plain Text)
  1. y = 0
  2. for x in range(width):
  3. if pixel_dict[(x,y)][2] > 0:
  4. print( "(%d, %d): %s"% (x, y, pixel_dict[(x, y)]) )
Well? Did it work? Do you think you figured it out or did you figure it out?
Reputation Points: 355
Solved Threads: 292
Veteran Poster
jlm699 is offline Offline
1,102 posts
since Jul 2008
May 21st, 2009
0

Re: Locating pixels 'x' position in image

Yes it worked....I did finally figure it out.
Reputation Points: 10
Solved Threads: 0
Junior Poster in Training
kiddo39 is offline Offline
50 posts
since Nov 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Python Forum Timeline: How to store info for later use
Next Thread in Python Forum Timeline: Having an issue downloading proper tools for Python





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC