Jump to content


Photo

Color Range Macro

Macros Analyze Gringo

  • Please log in to reply
11 replies to this topic

#1 Gringo

Gringo

    Associate Administrator

  • Adv Members
  • PipPipPipPipPip
  • 1,455 posts

Posted 16 April 2012 - 09:46 AM

This macro measures the minimum and maximum values of the Red, Green, Blue and Alpha channels in the image, or in a square area of the image.
It's useful when you want to get the idea of the color range of an image, quickly detect negative color values and the alpha values below 0 and above 1, which may cause some compositing errors downstream.
The measured values are displayed in the Control Panel of the macro.
The tool also renders additional information on top of the analyzed image:
  • Draggable and resizeable text output box with the miximum and maximum channel values
  • Areas with color values below the defined threshold are filled with magenta (by default, those are negative colors).
  • Areas with color values above the defined threshold are filled with green (by default, those are color values above 1).
  • The out-of-range areas are surrounded by white contour for easier visual detection in case the areas are too small.
To use the macro, feed your image to the Input, drag'n'drop the ColorRange node to a Display View

Posted Image

Posted Image

Download ColorRange_v05-2

#2 bfloch

bfloch

    Flying Pig

  • Adv Members
  • PipPipPipPipPip
  • 960 posts

Posted 16 April 2012 - 11:28 AM

Very cool.
The Area: Is it working only for the On-Screen Text? I was expecting it to also mask the results.

I created this bfHDRView a long time ago (which explains the poor interface) which is probably not that nice but what I like is the Shake-Like black, grey, white mode as well as being able to normalize 1-to-inf and -inf-to-0 to see what is inside the highlights/subblacks. Maybe features to incorporate in your macro to make it a almighty instrument?
You can also select the channels to display and because it is much simpler it is also a lot faster ;)

But I do like your approach very much, too.
Cheers,
Blazej

#3 ChadCapeland

ChadCapeland

    Flying Pig

  • Adv Members
  • PipPipPipPipPip
  • 1,975 posts

Posted 16 April 2012 - 12:41 PM

We have a plugin that does this over an entire clip, but I like how you circle the result, as single pixel marks can be very easy to miss.

#4 Gringo

Gringo

    Associate Administrator

  • Adv Members
  • PipPipPipPipPip
  • 1,455 posts

Posted 09 May 2012 - 09:08 AM

Thank you for the suggestions!
So, here is a new version:
  • The out-of-range color indication is only shown in the selected area, the area is surrounded by a gray border
  • The bug of the Probe modifier, which makes it analyze the area twice as big as the defined area, is considered and compensated
  • The white contours are rendered better
  • No thin dark edge around the on-screen text box anymore
Posted Image

Download ColorRange_v06-1

#5 SecondMan

SecondMan

    Flying Pig

  • Adv Members
  • PipPipPipPipPip
  • 1,797 posts

Posted 09 May 2012 - 11:49 AM

Nice one as usual Gringo, thanks mister! :)

#6 Tilt

Tilt

    Flying Pig

  • Adv Members
  • PipPipPipPipPip
  • 2,137 posts

Posted 09 May 2012 - 11:53 AM

there's a but in the probe tool? :-o

very nice macro though!

#7 SecondMan

SecondMan

    Flying Pig

  • Adv Members
  • PipPipPipPipPip
  • 1,797 posts

Posted 09 May 2012 - 12:15 PM

there's a but in the probe tool? :-o

very nice macro though!


Ha interesting - I had no idea of that.

I shall be looking for Probe's but :)

#8 Tilt

Tilt

    Flying Pig

  • Adv Members
  • PipPipPipPipPip
  • 2,137 posts

Posted 09 May 2012 - 12:20 PM

:blush:

#9 Gringo

Gringo

    Associate Administrator

  • Adv Members
  • PipPipPipPipPip
  • 1,455 posts

Posted 10 May 2012 - 04:51 AM

Here are two examples concerning the Probe issue:
Probe_Bug_v01.comp
Probe_Bug_v02.comp
All the descriptions are inside the comps.

#10 bfloch

bfloch

    Flying Pig

  • Adv Members
  • PipPipPipPipPip
  • 960 posts

Posted 10 May 2012 - 05:59 AM

Here are two examples concerning the Probe issue:
Probe_Bug_v01.comp
Probe_Bug_v02.comp
All the descriptions are inside the comps.


FYI: Has been addressed already.

#11 Tilt

Tilt

    Flying Pig

  • Adv Members
  • PipPipPipPipPip
  • 2,137 posts

Posted 11 May 2012 - 10:43 AM

amazing how some bugs managed to hide in plain sight :-) I've never tested the probe on a pattern.

#12 ChadCapeland

ChadCapeland

    Flying Pig

  • Adv Members
  • PipPipPipPipPip
  • 1,975 posts

Posted 11 May 2012 - 10:48 AM

Yeah, never saw that before either. I guess I'm always probing either the whole image or a really small region.





Also tagged with one or more of these keywords: Macros, Analyze, Gringo

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users