Previous topicNext topic

How can I make white solid with a colored image ?

Questions, comments, feedback, etc.
Post Reply
alain.mts
Posts: 5
Joined: Wed Dec 27, 2017 10:49 am

How can I make white solid with a colored image ?

Post by alain.mts »

Hello,

I don't find how I can made an solid white shape from a colored image (.png).
In this image there are also black lines that also have to be white.
I would use this as a mask.
You can see in the example made with Photoshop what I mean.
Of course I can use Photoshop to change this images.
But my intention is to do this with videos with a green background, and so use the moving objects in the video as a mask.

Alain.mts
Attachments
with PS.png
with PS.png (120.05 KiB) Viewed 3407 times
Sadler
Posts: 1139
Joined: Sat Aug 02, 2014 7:10 pm
Location: London, UK

Re: How can I make white solid with a colored image ?

Post by Sadler »

I've tried with a couple of green screened videos here. Throwing together a Brightness/Contrast (0.9/0.0) with a Posterise (1.0) seems to consistently give a completely white object. Knock the green screen out with a ChromaKey or ReplaceColour. YMMV depending on the quality of your green screen and the subject matter. If that doesn't work for you, try various combinations on the B+C before and after the posterise.
Magic
Site Admin
Posts: 3440
Joined: Wed Apr 09, 2014 9:28 pm

Re: How can I make white solid with a colored image ?

Post by Magic »

This could be accomplished with a very simple shader (for the GLSLShader module). Try the attached and see if it gets the results you need.
Attachments
AlphaThreshold.txt
(124 Bytes) Downloaded 311 times
alain.mts
Posts: 5
Joined: Wed Dec 27, 2017 10:49 am

Re: How can I make white solid with a colored image ?

Post by alain.mts »

Hello,
To Sadler : Your method works very good when I use a green screen video, but not when I use a .png image.
To Eric : Your method by using 'AlphaThreshold.txt' works perfect for green screen video's and for.png images.
My problem has been solved. :D
Thanks for your answers.
Alain.mts
Post Reply