| | |
Locating pixels 'x' position in image
Please support our Python advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: Nov 2008
Posts: 43
Reputation:
Solved Threads: 0
I think I figured it out: Python Syntax (Toggle Plain Text)
y = 0 for x in range(width): if pixel_dict[(x,y)][2] > 0: print( "(%d, %d): %s"% (x, y, pixel_dict[(x, y)]) )
•
•
•
•
I think I figured it out:
Python Syntax (Toggle Plain Text)
y = 0 for x in range(width): if pixel_dict[(x,y)][2] > 0: print( "(%d, %d): %s"% (x, y, pixel_dict[(x, y)]) )
![]() |
Similar Threads
- PIL question (Python)
- Image Position Moves on Resize of Window (HTML and CSS)
- counting pixels in an image(ocr) (Python)
- Position and Load an image when Clicked (JavaScript / DHTML / AJAX)
- scrolling images (JavaScript / DHTML / AJAX)
- How to get the cursor position on an image (C++)
- Checking source codes of image, audio and video files (Site Layout and Usability)
- Checking source codes of image, audio and video files (C)
- Checking source codes of image, audio and video files (Graphics and Multimedia)
Other Threads in the Python Forum
- Previous Thread: How to store info for later use
- Next Thread: Having an issue downloading proper tools for Python
Views: 847 | Replies: 12
| Thread Tools | Search this Thread |
Tag cloud for Python
anti assignment avogadro beginner bluetooth code convert count csv decimals def dictionary dynamic dynamically enter examples excel file float format frange ftp function gnu gui heads homework import input jaunty java lapse leftmouse line lines linux list lists loop microcontroller module mouse multiple newb number numbers output parsing path pointer port prime program programming projects py2exe pygame pygtk pyopengl pyqt python random raw_input recursion recursive redirect scrolledtext slicenotation software sqlite ssh stderr string strings subprocess syntax table tennis terminal text thread threading time tkinter tlapse tooltip tuple tutorial twoup ubuntu unicode unix urllib urllib2 variable web-scrape windows word wx.wizard wxpython






