Click here to Skip to main content
15,892,072 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionCOMPILER DESIGN Pin
Member 1194299628-Aug-15 5:32
Member 1194299628-Aug-15 5:32 
AnswerRe: COMPILER DESIGN Pin
Afzaal Ahmad Zeeshan28-Aug-15 5:44
professionalAfzaal Ahmad Zeeshan28-Aug-15 5:44 
QuestionRe: COMPILER DESIGN Pin
David Crow28-Aug-15 9:24
David Crow28-Aug-15 9:24 
QuestionCan somebody help me determining what is the preferred data structures for CPU scheduling algorithms or Rate monolithic algorithms and why? Pin
anup7226-Aug-15 20:00
anup7226-Aug-15 20:00 
QuestionColor difference between old and new application Pin
gopi_cpp25-Aug-15 19:04
gopi_cpp25-Aug-15 19:04 
AnswerRe: Color difference between old and new application Pin
enhzflep25-Aug-15 21:02
enhzflep25-Aug-15 21:02 
GeneralRe: Color difference between old and new application Pin
gopi_cpp25-Aug-15 23:08
gopi_cpp25-Aug-15 23:08 
GeneralRe: Color difference between old and new application Pin
enhzflep26-Aug-15 1:28
enhzflep26-Aug-15 1:28 
Ahhhhh! What you say about them reading in the L-a-b values may very well be the key here - unless of course, it is the exact same library performing the colour-space transformation each time.

I mean, the RGB values are also available in each line and as far as a colour-picker is concerned, are entirely unambiguous. While different monitors/printers may display the same RGB value in a way that appears differently to our eyes and would produce different RGB values if a photograph of the results are compared.

However, the first paragraph from the wikipedia page on Lab color space[^] may possibly hold the key to the different results. It says:


A Lab color space is a color-opponent space with dimension L for lightness and a and b for the
color-opponent dimensions, based on nonlinearly compressed (e.g. CIE XYZ color space) coordinates.
The terminology originates from the three dimensions of the Hunter 1948 color space, which are L,
a, and b.[1][2] However, Lab is now more often used as an informal abbreviation for the L-a-b
representation of the CIE 1976 color space (or CIELAB, described below). The difference between
the original Hunter and CIE color coordinates is that the CIE coordinates are based on a cube root
transformation of the color data, while the Hunter coordinates are based on a square root
transformation.
Other examples of color spaces with Lab representations include the CIE 1994
color space and the CIE 2000 color space.
(emphasis mine)


Reading on further, I was reminded that there are a number of systems based on Lab and importantly, they do not all employ the same conversion formula to rgb

I'll bet that if you plug the Lab values (53.75, 43.63, 28.62) given for the colour you mentioned into the different formulas one of them will give you 198,93,82 and another of them will give you 120,27,20

Naturally, the contents of my comment are entirely moot if the exact same code is used to convert from Lab -> RGB and also if the tests are performed on different machines, since RGB values are device-dependant, while Lab values are not.

What a curly problem you have! D'Oh! | :doh:
"When I was 5 years old, my mother always told me that happiness was the key to life. When I went to school, they asked me what I wanted to be when I grew up. I wrote down 'happy'. They told me I didn't understand the assignment, and I told them they didn't understand life." - John Lennon

GeneralRe: Color difference between old and new application Pin
gopi_cpp26-Aug-15 2:11
gopi_cpp26-Aug-15 2:11 
GeneralRe: Color difference between old and new application Pin
enhzflep26-Aug-15 3:59
enhzflep26-Aug-15 3:59 
AnswerRe: Color difference between old and new application Pin
Richard MacCutchan25-Aug-15 21:19
mveRichard MacCutchan25-Aug-15 21:19 
GeneralRe: Color difference between old and new application Pin
gopi_cpp25-Aug-15 23:12
gopi_cpp25-Aug-15 23:12 
GeneralRe: Color difference between old and new application Pin
Richard MacCutchan25-Aug-15 23:23
mveRichard MacCutchan25-Aug-15 23:23 
GeneralRe: Color difference between old and new application Pin
gopi_cpp26-Aug-15 0:45
gopi_cpp26-Aug-15 0:45 
SuggestionRe: Color difference between old and new application Pin
Richard MacCutchan26-Aug-15 0:53
mveRichard MacCutchan26-Aug-15 0:53 
GeneralRe: Color difference between old and new application Pin
gopi_cpp26-Aug-15 1:00
gopi_cpp26-Aug-15 1:00 
GeneralRe: Color difference between old and new application Pin
Richard MacCutchan26-Aug-15 1:02
mveRichard MacCutchan26-Aug-15 1:02 
AnswerRe: Color difference between old and new application Pin
basementman4-Sep-15 4:21
basementman4-Sep-15 4:21 
QuestionMDI Application How to change Views Title Pin
Member 853403525-Aug-15 3:36
Member 853403525-Aug-15 3:36 
QuestionRe: MDI Application How to change Views Title Pin
David Crow25-Aug-15 4:05
David Crow25-Aug-15 4:05 
AnswerRe: MDI Application How to change Views Title Pin
Member 853403525-Aug-15 4:28
Member 853403525-Aug-15 4:28 
AnswerRe: MDI Application How to change Views Title Pin
Member 853403525-Aug-15 4:47
Member 853403525-Aug-15 4:47 
QuestionSystem-Restore programatically Pin
Krishnakumartg24-Aug-15 1:19
Krishnakumartg24-Aug-15 1:19 
AnswerRe: System-Restore programatically Pin
Richard Deeming24-Aug-15 1:43
mveRichard Deeming24-Aug-15 1:43 
GeneralRe: System-Restore programatically Pin
Krishnakumartg24-Aug-15 2:01
Krishnakumartg24-Aug-15 2:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.