| | |
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: 854 | Replies: 12
| Thread Tools | Search this Thread |
Tag cloud for Python
accessdenied address ansi backend beginner changecolor class code conversion coordinates copy curves customdialog dan08 dictionary directory dynamic edit examples excel feet file float font format ftp function generator getvalue gui halp homework i/o images import info input ip java line linux list lists loop mouse mysql newb number numbers output panel parsing path port prime print program programming projects py2exe pygame pyqt python queue random rational recursion recursive schedule screensaverloopinactive scrolledtext searchingfile server ssh stamp statictext string strings sudokusolver table terminal text thread threading time tkinter tlapse tuple tutorial type ubuntu unicode url urllib urllib2 variable whileloop windows write wxpython






