Page 1 of 1

RGBA_Smooth_Keyer

Posted: 28 Dec 2011, 20:51
by rray
RGBA_Smooth_Keyer
rsk.jpg
rsk.jpg (160.64 KiB) Viewed 6903 times
Isolates a color based on either it being inside a RGBA color range, or using key color+HSV tolerance values. Works similar to the the built-in RGBA_Keyer node, but works in HSV space and allows not only a boolean output (inside/outside of color range), but a gradient output depending on a falloff around the user defined color range. Installed in Render Tree/Image Processing/Processing. Compound format so it can be easily modified.

Outputs isolated/matte color and a scalar 0 to 1 value.

Download:
RGBA_Smooth_Keyer.1.6.xsirtcompound
(45.02 KiB) Downloaded 361 times
some "notes"...
  • If the result you want is easy seperable by one channel (for example only hue, only red, or only value) then you can also use the built-in Color_Matte node
  • If you don't need a blending area around the resuilt & it's separable by RGBA range, you can also use the built-in RGBA_keyer node.
  • The "Falloff location" parameter specifies where the falloff begins. Using "Outside", the user defined range is fully included, and the falloff begins at the range limits, falling off as the values go further outside the range. Using "Inside", the falloff begins inside the range and ENDS at the range limits. "Border" is in-between, meaning that the center of the falloff is exactly on the range limits.
  • when using a range, if you want the Alpha channel ignored, just set it to 0 for "From", and to 1 for "To"

Re: RGBA_Smooth_Keyer

Posted: 05 Jan 2012, 18:34
by fabricio.chamon
Hi Reinhard,

thanks a lot for sharing, this is really neat!

Re: RGBA_Smooth_Keyer

Posted: 05 Jan 2012, 23:55
by rray
Hi Fabricio, glad you find it useful!

Updated in Version 1.6

* separated methods inside the compound: should render faster
* falloff is reduced by factor 5 for hue component because hue goes through 6 "areas" for the 0-1 range, instead of 2 "areas" for saturation and value==>better blending
* fixed alpha bug for range method
* option for inverting color output (create matte/isolated color), example:
rsk2.jpg
rsk2.jpg (101.34 KiB) Viewed 6889 times