Skip to main content
Known Participant
July 22, 2023
Answered

Color to Mask node question

  • July 22, 2023
  • 1 reply
  • 698 views

I have a color ID mask, I'm using color to mask node to extract BnW masks from it, however the node doesn't seem to work with green color. Am I missing something? Is that an expected behavior? Couldn't find it in documentation.

Nodes and settings:

It works fine with red tho for example:

Is there a way to extract the green text? My solution for this doesn't feel like it's a good one. I've recolored it all to red and masked by luminance. Color to mask cathes edges of other shapes tho, so I've had to blur them and run through a histogram scan

 

 

This topic has been closed for replies.
Correct answer davescm

Hi

Did you use the colour picker in the mask to select the exact colour, rather than entering values? If the entered colour is slightly off the values in the bitmap, it will be ignored. Using the colour picker avoids that issue. You can also use the 'mask range' slider to widen the allowed values if there is any variation across the image.

I used the colour picker below:

 

Dave

1 reply

davescm
Community Expert
davescmCommunity ExpertCorrect answer
Community Expert
July 23, 2023

Hi

Did you use the colour picker in the mask to select the exact colour, rather than entering values? If the entered colour is slightly off the values in the bitmap, it will be ignored. Using the colour picker avoids that issue. You can also use the 'mask range' slider to widen the allowed values if there is any variation across the image.

I used the colour picker below:

 

Dave

Ilia5C31Author
Known Participant
July 23, 2023

I did use a color picker. 

Probably was something on my side. Now it works