Jump to content



0

PAL Colour Conversion


2 replies to this topic

#1 cd-w OFFLINE  

cd-w

    Stargunner

  • 1,195 posts
  • Juno First!
  • Location:Glasgow, UK

Posted Mon Apr 18, 2005 3:54 AM

I am attempting to convert some colour values from NTSC to PAL using the TIA Color Charts.
This is proving to be a difficult process, and so I have two questions:
1) Has anyone already produced an approximate mapping of colour values between PAL and NTSC.
2) Is there really no PAL value for pure yellow?

Thanks,
Chris

#2 Tom OFFLINE  

Tom

    Moonsweeper

  • 449 posts
  • Location:Switzerland

Posted Mon Apr 18, 2005 5:58 AM

I've fiddled around with this once.

My approach worked somehow like this:

1) Parse the NTSC and PAL RGB values from the TIA color chart

2) Say we want to find the PAL color that is closest to NTSC color # 66: Find the RGB value for color # 66

3) Find the RGB value of the PAL color that is closest to the RGB value of NTSC color # 66. I did this by calculating the distance of the RGB color triplets in the RGB color cube: d = sqrt((rn-rp)^2 + (gn-gp)^2 + (bn-bp)^2) (rn = red component of NTSC color and so on).
The PAL RGB triplet for which d is the smallest is the closest color.

4) Find the PAL color number that corresponends with the PAL RGB triplet found in the previous step.

This kind of worked, but not perfectly.

#3 Andrew Davie OFFLINE  

Andrew Davie

    Stargunner

  • 1,314 posts
  • Location:Tasmania

Posted Sun Apr 24, 2005 5:08 AM

cd-w, on Mon Apr 18, 2005 7:54 PM, said:

2) Is there really no PAL value for pure yellow?

What's a "yellow"?




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users