Home > Default > Python Image processing. (Help needed)

Python Image processing. (Help needed)

November 30Hits:0
Advertisement
Hi all.
I'm currently trying to learn python and have made some(small) progress into the matter.
However, I have an urgent need to extract some information from a bactch of photos for statistical purposes, namely:
- color saturation (red, green, and blue)
- mean luminance
- variance of luminance
- root mean square (RMS) contrast
- kurtosis
- skewness
- energy
Now I've searched for some program that could aid me in this when suddenly I remembered Python.
I thought I could write a little script to extract said information and save it in a file.
This is where I need the help of all you python gurus.
Need a pointer in the right direction. I'm looking into PIL. IS this the best choice? Could this give me all the info need.
To be honest, I don't even know what some of that info is (my wife needs it for here PhD thesis...)
Any help would be appreciated.
Cheers,
P.

Answers

palobo wrote:@buttons: Thanks. I am currently looking through that reading. Statisctical info for RGB etc is great, just what I needed. However I can't seem to get info on contast and luminance. I will keep at it.
All I can tell you for sure from a very dim recollection of an undergraduate graphics course is that contrast and luminance can be derived mathematically from RGB somehow.
PIL gives you the option to do pixel by pixel comparisons, so you can certainly get the info you need... the first step would be to define it though. ;-)
Dusty

Read other 5 answers

Tags:

Related Articles

  • Python Image processing. (Help needed)November 30

    Hi all. I'm currently trying to learn python and have made some(small) progress into the matter. However, I have an urgent need to extract some information from a bactch of photos for statistical purposes, namely: - color saturation (red, green, and

  • QGIS python errorNovember 30

    Hello everyone, I've successfully built qgis from AUR, following the recommendations there to install first sipdev and pyqt4dev. However, I obtain the following when I launch it: Couldn't load plugin 'processing' from ['/usr/share/qgis/python', '/hom

  • How to compare data between two worksheet in Excel for applescriptOctober 11

    Hi All, How to compare the data from two different worksheet in Excel and set the value into one worksheet according to the same name? Here is the example. Worksheet 1 & 2 current we have, the final worksheet is the result we want and the value can b

  • Xcode: fun with fork-bombsNovember 30

    This isn't a question; just an FYI so that when people search for 'zombie python' in the forums they'll find something. I came back from a week-long trip and found hundreds of python zombie processes on my system, for all users [even root]. Was a bit

  • 3850 WLC Admin GUI Authentiaction with AAANovember 30

    Hi all.  I'm making myself a little nutty this morning.  I've had a 3850 with the WLC function enabled in my lab for quite some time.  Just bumped it to 03.07.00E and I'm having a devil of a time getting in to the Wireless GUI - particularly when I h

  • Mystery Python Process (eating memory & CPU)November 30

    Hi - I have been using my 1.83GHz Intel iMac for a day or two. I migrated data from my iBook G4 and I have to say that it went very smoothly. But today the machine has seemed SUPER-slow, and my SysStat widget indicated consistent very high CPU load.

  • Python processNovember 30

    I have noticed that in my Activity monitor there is an amazing amount of Python processes. I remember there only being one or two earlier in the life of my computer. What could cause this? or did i just not notice it earlier? Basically my OS is runni

  • Running shell process - python interpreterNovember 30

    Hello, I'm trying to write some Java code that will launch a python interpreter shell and pipe input/output back and forth from the interpreter's i/o streams and the Java program. The code posted below seems to work just fine under Mac OS X; however,

  • Possible spotlight memory leak? CPU/python process taxes system 100%November 30

    Posted this on other thread previously with no replies...and have read others with same problem, yet nobody with any solutions....this process almost always kicks in every other day only when my system is in sleep/standby mode which makes me think of

  • Accessing/processing geospatial data types in Azure cloud services using PythonNovember 30

    Hi We are creating a cloud-services in Azure using Python and Django, and are trying to store the geospatial data into SQL Database, however Django doesn't not have a built-in spatial data support (unless we use GeoDjango, which doesn't support sqlse

Copyright (C) 2019 wisumpire.com, All Rights Reserved. webmaster#wisumpire.com 14 q. 0.795 s.