Loading...

Chroma Key (green screen) Edges

Discussions about image processing in GdPicture.NET using GdPictureImaging.

Chroma Key (green screen) Edges

Postby greenware » Fri Feb 03, 2012 8:36 pm

I'm removing the green from an image and overlaying it on a background and everything is working great -- except for the edges - especially around the hair. I've seen some other green screen software apply some "fuzzy/Blurring" to the edges to blend it better. Is there some method that this control can do similar?

Here's what I'm doing now:
Code: Select all
        Dim Imaging1 As New GdPicture.GdPictureImaging
        Dim Left As Integer
        Dim Top As Integer
        Dim Width As Integer
        Dim Height As Integer
        Dim MainImage As Integer = Imaging1.CreateGdPictureImageFromFile(gdGreenFGRND.Tag)
        Stat = Imaging1.fxRemoveBackgroundChromaKey(MainImage, ColorKey.ColorKeyGreen, HSThreshold.Value, HSMinVal.Value)
       
        gdGreenFGRND.GetDisplayedArea(Left, Top, Width, Height)
        Dim newimage As Integer = Imaging1.CreateGdPictureImageFromFile(gdGreenBKG.Tag)
        Imaging1.Crop(MainImage, Left, Top, Width, Height)
        Imaging1.ResizeHeightRatio(MainImage, 2100, Drawing2D.InterpolationMode.HighQualityBicubic)

        Imaging1.DrawGdPictureImage(MainImage, newimage, 0, 0, 1500, 2100, Drawing2D.InterpolationMode.HighQualityBicubic)
        Imaging1.ReleaseGdPictureImage(MainImage)
        Imaging1.SaveAsJPEG(newimage, sPath & "\GreenScreen.jpg")
        Imaging1.ReleaseGdPictureImage(newimage)




Thanks.
John
greenware
 
Posts: 13
Joined: Tue Jan 10, 2012 7:15 pm

Re: Chroma Key (green screen) Edges

Postby SamiKharma » Sun Feb 05, 2012 1:43 pm

Hi John,
Could you please show me an image to I can understand exactly what you are talking about and better help you.

Best Regards,
Sami
GdPicture Support
SamiKharma
 
Posts: 44
Joined: Tue Sep 27, 2011 11:47 am

Re: Chroma Key (green screen) Edges

Postby greenware » Mon Feb 06, 2012 12:49 am

Attached image shows what I'm talking about.

I'm guessing they have some algorithm that detects the edges around the "green" and does some sort of anti-alias before removing the green color.

greenscreen1.jpg


Thanks.
greenware
 
Posts: 13
Joined: Tue Jan 10, 2012 7:15 pm

Re: Chroma Key (green screen) Edges

Postby greenware » Wed Feb 15, 2012 5:55 pm

I received an email from Sami that you will be able to add something to do this in the future.

Is there any way I can be notified when you begin working on this and when it is completed? This issue has turned into a real stumbling block for my client.

thanks.

Hi John,

Unfortunately, we do not have such a feature. We will add something like this in the future, but there is no timeline for that yet.

Best Regards,
Sami Kharma
GdPicture Support Staff Member
greenware
 
Posts: 13
Joined: Tue Jan 10, 2012 7:15 pm

Re: Chroma Key (green screen) Edges

Postby SamiKharma » Wed Feb 15, 2012 7:04 pm

Hi,

New features are usually announced in our news letters, but I will keep it to update this forum thread when the task has been done.

Best Regards,
Sami
SamiKharma
 
Posts: 44
Joined: Tue Sep 27, 2011 11:47 am


Return to Image Processing

Who is online

Users browsing this forum: No registered users and 0 guests