# Open Source Programming
# Author : S.Ganesh Babu
# Program: Reading the pixel values in gray scale image.
import Image
im=Image.open('c:/new.tif')
Imv=im.load()
x,y=im.size
for i in range(x):
for j in range(y):
print Imv[i,j]
im.show(im)
# Open Source Programming
# Author : S.Ganesh Babu
# Program: Reading the pixel values in gray scale image.
import Image
im=Image.open('c:/new.tif')
Imv=im.load()
x,y=im.size
for i in range(x):
for j in range(y):
print Imv[i,j]
im.show(im)
No comments:
Post a Comment