ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 greenscreen
 New Topic  Reply to Topic
Previous Page
Author Previous Topic Topic Next Topic
Page: of 2

spetric

Croatia
308 Posts

Posted - Apr 11 2014 :  04:10:25  Show Profile  Reply
@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.

Go to Top of Page

w2m

USA
1990 Posts

Posted - Apr 11 2014 :  06:14:26  Show Profile  Reply
@Dracola - There is no chromakey procedure.

William Miller
Go to Top of Page

dracola

Argentina
37 Posts

Posted - Apr 16 2014 :  23:12:06  Show Profile  Reply
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 ^_^
Go to Top of Page

w2m

USA
1990 Posts

Posted - Apr 17 2014 :  06:21:55  Show Profile  Reply
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
Go to Top of Page
Page: of 2 Previous Topic Topic Next Topic  
Previous Page
 New Topic  Reply to Topic
Jump To: