Python Forum
grayscale image processing
Thread Rating:
  • 3 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
grayscale image processing
#6
(Oct-24-2017, 09:19 PM)Mekire Wrote: We'll need to see what code you have so far.  As long as you can access the images as arrays it shouldn't be too hard.  Not sure if PIL uses numpy or not but if it does it will make things easier.

from PIL import Image
from pylab import *
im=array(Image.open('0.1v.jpg').convert('L'))
print(im)
So far, this is the code I have. Now I can read every pixel's grayscale value.
Reply


Messages In This Thread
grayscale image processing - by zyb1003 - Oct-24-2017, 07:34 PM
RE: grayscale image processing - by Larz60+ - Oct-24-2017, 07:43 PM
RE: grayscale image processing - by zyb1003 - Oct-24-2017, 09:04 PM
RE: grayscale image processing - by Mekire - Oct-24-2017, 07:44 PM
RE: grayscale image processing - by Mekire - Oct-24-2017, 09:19 PM
RE: grayscale image processing - by zyb1003 - Oct-24-2017, 09:40 PM
RE: grayscale image processing - by Mekire - Oct-24-2017, 10:08 PM
RE: grayscale image processing - by heiner55 - Oct-25-2017, 06:25 AM
RE: grayscale image processing - by zyb1003 - Oct-25-2017, 07:07 PM
RE: grayscale image processing - by Mekire - Oct-25-2017, 07:12 PM
RE: grayscale image processing - by heiner55 - Oct-26-2017, 05:33 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Pillow Image Processing matteusbeus 2 3,050 Nov-02-2017, 03:07 PM
Last Post: DeaD_EyE

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020