Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Announcements and Chat > General Discussion

Reply
 
Thread Tools Search this Thread Display Modes
Old 14th October 2020, 11:14   #1  |  Link
butterw2
Registered User
 
Join Date: Jun 2020
Posts: 303
Tools for image analysis ?

What software would you suggest to get stats/info from video screenshots, photos/pictures and do comparisons between them ?

Tools could be GUI, command-line, script, or Python Library, but should be easy to use.

I would like to have at least Y, R, G, B histogram display and color palette information available.


ex: Xnview classic is an image viewer that provides some basic useful info
jpg 1280x720x24
The mouse gives (x, y) position and can be used as a RGB color picker (CTRL+Shift+I).
L: displays the Luminance histogram
It can also give the unique color count of the image and show the R,G,B plane images.
>> Something a bit more complete/advanced would do fine.

Last edited by butterw2; 15th October 2020 at 16:30.
butterw2 is offline   Reply With Quote
Old 14th October 2020, 16:06   #2  |  Link
LoRd_MuldeR
Software Developer
 
LoRd_MuldeR's Avatar
 
Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,248
Avisynth might have something, for example:
* http://avisynth.nl/index.php/Histogram
* http://avisynth.nl/index.php/Histogr...ogramRGBParade
__________________
Go to https://standforukraine.com/ to find legitimate Ukrainian Charities 🇺🇦✊
LoRd_MuldeR is offline   Reply With Quote
Old 14th October 2020, 17:19   #3  |  Link
Thundik81
Registered User
 
Join Date: Jul 2004
Posts: 22
ImageMagick
Thundik81 is offline   Reply With Quote
Old 14th October 2020, 17:37   #4  |  Link
butterw2
Registered User
 
Join Date: Jun 2020
Posts: 303
I should have mentionned I did write a script for source video histogram with Avisynth:
https://github.com/butterw/bShaders/...aHistogram.avs

It does also work with images, but I'm not convinced it's the right tool for the job.

I'm hoping there is some free GUI tool (based on one of the image libraries), that can handle all basic needs.


Avisynth + GUI: AvsPmod
Issues: language/syntax limitations, no command line text output.
I was trying to do a simple script to combine 2 png screenshots for split screen comparison. IIRC, the issue was handling user input, errors and output filename...
Vapoursynth might do better.

Last edited by butterw2; 15th October 2020 at 08:41. Reason: more details
butterw2 is offline   Reply With Quote
Old 19th October 2020, 12:36   #5  |  Link
butterw2
Registered User
 
Join Date: Jun 2020
Posts: 303
- ImageMagick is command-line + batch script (or API). No decent GUI available for windows.

- for Python(3), the following would be a starting point:
OpenCV (cv2) + matplotlib (plt) + numpy (np)

For now, I just used Gimp:
Windows > Dockable Dialogs > Histogram
It allows histogram of selected area, has basic stats for selected bins.
I just needed to paste in my screenshots from clipboard.
! RGB to Grayscale conversion likely isn't sRGB.
butterw2 is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 06:24.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.