Author |
Topic |
spetric
Croatia
308 Posts |
Posted - Apr 11 2014 : 04:10:25
|
@Bill, @Nigel
You're right. Image can be used as output mask. I'm inspecting some algorithms that works, let's say, semi-automatic, using user supplied threshold value. Many of them works in a single pass (scanning through image pixels).
Bill's technique may be developed further (automated), i.e. sorting palette with respect to hue, and then check pixels hue against some threshold or tolerance.
|
|
|
w2m
USA
1990 Posts |
Posted - Apr 11 2014 : 06:14:26
|
@Dracola - There is no chromakey procedure.
William Miller |
|
|
dracola
Argentina
37 Posts |
Posted - Apr 16 2014 : 23:12:06
|
i'v tried
ImageEnView1.IO.LoadFromfile('c:\background.jpg'); ImageEnView1.EnableAlphaChannel:=TRUE; ImageEnView1.Proc.SetTransparentColors(CreateRGB(255,240,170),CreateRGB(255,210,0), 0); //remove yellow background
but, it's has a little rough edge on the edge between object (like people hair) and background... just wandering is there a way to add feather like in selection in ImageEnView1.Proc.SetTransparentColors ?
Thank's a lots specialy to w2m, spetric & xequte for the solution ^_^ |
|
|
w2m
USA
1990 Posts |
Posted - Apr 17 2014 : 06:21:55
|
For the previously posted picture the correct Min and Max RGB values are Min: CreateRGB(234,170,1) Max CreateRGB(255,234,129)
These values have to be calculated for each picture. If any one color in the average of min or max in incorrect, will incorrect results will be produced. You MUST get the min and max values correct There is no other way than that described already in this post.
William Miller |
|
|
Topic |
|
|
|