Announcement: Our new CyberLink Feedback Forum has arrived! Please transfer to our new forum to provide your feedback or to start a new discussion. The content on this CyberLink Community forum is now read only, but will continue to be available as a user resource. Thanks!
CyberLink Community Forum
where the experts meet
| Advanced Search >
Chroma Key (ignorance on my part?)
jerrys
Senior Contributor Location: New Britain, CT, USA (between New York and Boston) Joined: Feb 10, 2010 21:36 Messages: 1038 Offline
[Post New]
I'm trying to use chroma key for the first time. I'm attaching sample PNG files to illustrate what's happening. All I want to do is make the white (background) transparent.

When I apply a chroma key, using white as my "green screen" color, the background becomes transparent; the interiors of the black squiggles stay black; but there is a white border around my squiggles.

There's no anti-aliasing involved (that's a different nightmare).

When I replace the white with red in my photo editor, there are no white borders.

Am I missing something, or is the chroma key function off by one pixel? Perhaps it's doing some kind of lossy compression on the image?

==> I forgot to mention that if I don't put a color board behind my PIP object, the white border still appears on the black (empty) background.
[Thumb - Image2.png]
 Filename
Image2.png
[Disk]
 Description
Using chroma key in PD, red color board as background
 Filesize
36 Kbytes
 Downloaded:
197 time(s)
[Thumb - Image3.png]
 Filename
Image3.png
[Disk]
 Description
White replaced with red in photo editor
 Filesize
5 Kbytes
 Downloaded:
182 time(s)
[Thumb - Image1.png]
 Filename
Image1.png
[Disk]
 Description
Original file - white background, black foreground
 Filesize
5 Kbytes
 Downloaded:
206 time(s)

This message was edited 1 time. Last update was at Jul 12. 2012 20:03

Jerry Schwartz
Carl312
Senior Contributor Location: Texas, USA Joined: Mar 16, 2010 20:11 Messages: 9090 Offline
[Post New]
I think the white border is a function of chroma Key in Powerdirector.

You can do a much better remove of the white background in a photo editor.

Even when you adjust the intensity in chroma key, you still have the white borders around the black objects.

A different color to chroma key may give different results. The normal colors used are Green or Blue.

Carl312: Windows 10 64-bit 8 GB RAM,AMD Phenom II X4 965 3.4 GHz,ATI Radeon HD 5770 1GB,240GB SSD,two 1TB HDs.

BarryTheCrab
Senior Contributor Location: USA Joined: Nov 06, 2008 22:18 Messages: 6240 Offline
[Post New]
Jerry,
your images need to be more robust. Your original squiggles file is only 4.7 kb.

This message was edited 1 time. Last update was at Jul 12. 2012 22:18

HP Envy Phoenix/4thGen i7-4770(4@3.4GHz~turbo>3.9)
Nvidia GTX 960(4GB)/16GB DDR3/
Canon Vixia HV30/HF-M40/HF-M41/HF-G20/Olympus E-PL5.
Tape capture using 6 VCR, TBC-1000, Elite BVP4+, Sony D8 camcorder with TBC.
https://www.facebook.com/BarryAFTT
Xerox [Avatar]
Contributor Location: California, USA Joined: Aug 09, 2009 01:36 Messages: 446 Offline
[Post New]
In addition to chromakeying, a combination of some other effects can get rid of the white borders. Here are my settings:

Chromakey (Modify PiP): White, Intensity: 65
"Gamma Correction" (from Effects Room): 30
"Apply Re-focus" (fix/enhance): 3 Gateway DX4380, AMD A8-5500 Quad Core 3.2GHz with ATI Radeon HD 7560D; 16GB RAM; 1 TB SATA 7200 RPM; Windows 8 Pro 64-bit; PDR11, PDVD12.
jerrys
Senior Contributor Location: New Britain, CT, USA (between New York and Boston) Joined: Feb 10, 2010 21:36 Messages: 1038 Offline
[Post New]
Thanks for the suggestions, I'll give them a whirl.

Carl, PD doesn't preserve transparency when it imports an image. Jerry Schwartz
Cranston
Senior Contributor Location: USA Joined: Aug 17, 2007 02:26 Messages: 1667 Offline
[Post New]
Quote: PD doesn't preserve transparency when it imports an image.

Hmm.
But that's what all those 300,000+ PIP Objects and Particles, available for download on Cyberlink's DirectorZone are.
All are .png images, some with motion applied, on transparent backgrounds.

I must be mis-understanding what your intent/meaning/definition of "Preserve" is here.

This message was edited 1 time. Last update was at Jul 13. 2012 12:54

Click here PDtoots for a collection of PowerDirector Tutorials and Tips
jerrys
Senior Contributor Location: New Britain, CT, USA (between New York and Boston) Joined: Feb 10, 2010 21:36 Messages: 1038 Offline
[Post New]
Quote:
Quote: PD doesn't preserve transparency when it imports an image.

Hmm.
But that's what all those 300,000+ PIP Objects and Particles, available for download on Cyberlink's DirectorZone are.
All are .png images, some with motion applied, on transparent backgrounds.

I must be mis-understanding what your intent/meaning/definition of "Preserve" is here.


[Edits underlined]

Excellent point.

I just tried that again, and you are correct. PD preserves transparency with GIFs and either palette-based PNGs that have 256 colors or less, or PNGs with alpha channel based transparency; it doesn't for TIFFs. I don't know about GIFs with more than 256 colors, but I've never seen them used.

I thoroughly confused myself by using black as my foreground color.

Unfortunately, this doesn't solve the chroma key issue for them new-fangled movin' pitchers. I suppose the border isn't that obvious.

Come to think of it, if you look closely at an HD broadcast you can sometimes see a halo around the weatherman.

This message was edited 1 time. Last update was at Jul 13. 2012 13:45

Jerry Schwartz
James1
Senior Contributor Location: Surrey, B.C., Canada Joined: Jun 10, 2010 16:20 Messages: 1783 Offline
[Post New]
Hi,
Just a thought on the transparency have you adjusted the 'tolerance' slider, some (depending on programs) png files when exported as png have a small anti alias border applied to the image. This would account for the anomaly.
Jim Intel i7-2600@3.4Gz Geforce 560ti-1GB Graphic accelerator, windows 7 Premium 12GB memory

Visit GranPapa64's channel for your YouTube experience of the day!
jerrys
Senior Contributor Location: New Britain, CT, USA (between New York and Boston) Joined: Feb 10, 2010 21:36 Messages: 1038 Offline
[Post New]
Quote: Hi,
Just a thought on the transparency have you adjusted the 'tolerance' slider, some (depending on programs) png files when exported as png have a small anti alias border applied to the image. This would account for the anomaly.
Jim

No, there's no anti-aliasing done here.

This PNG business is somewhat beside the point. I was using PNGs as a test. What I was originally trying to do was get rid of the background of an animation (externally produced).

I described what I am trying to do in a different thread: http://forum.cyberlink.com/forum/posts/list/23966.page Jerry Schwartz
Powered by JForum 2.1.8 © JForum Team