Click here to Skip to main content
15,905,874 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: About polymorphism.. Pin
rowdy_vc++21-Feb-08 0:47
rowdy_vc++21-Feb-08 0:47 
GeneralRe: About polymorphism.. Pin
Rajkumar R21-Feb-08 1:02
Rajkumar R21-Feb-08 1:02 
GeneralRe: About polymorphism.. Pin
David Crow21-Feb-08 4:03
David Crow21-Feb-08 4:03 
Questionconvert color image to grayscale image ? Pin
gentleguy20-Feb-08 21:29
gentleguy20-Feb-08 21:29 
AnswerRe: convert color image to grayscale image ? Pin
Iain Clarke, Warrior Programmer20-Feb-08 22:06
Iain Clarke, Warrior Programmer20-Feb-08 22:06 
AnswerRe: convert color image to grayscale image ? Pin
CPallini20-Feb-08 22:16
mveCPallini20-Feb-08 22:16 
GeneralRe: convert color image to grayscale image ? Pin
Rajkumar R20-Feb-08 22:55
Rajkumar R20-Feb-08 22:55 
GeneralRe: convert color image to grayscale image ? Pin
CPallini20-Feb-08 23:22
mveCPallini20-Feb-08 23:22 
Color to Gray space conversion is lossy by definition:
RGB Color space allows 2^24 different values for color image pixels, while the constraint RGB(x,x,x) implies 2^8 different values for gray pixels. Thus we have a mapping of a 2^24 set to 2^8 set, i.e. a lossy mapping.

Average is a very simple method to obtain a grayscale image, maybe also a naive (though working) one, but the lossy nature of the conversion is unavoidable.
Smile | :)

If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.

This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke


GeneralRe: convert color image to grayscale image ? [modified] Pin
Rajkumar R20-Feb-08 23:33
Rajkumar R20-Feb-08 23:33 
GeneralRe: convert color image to grayscale image ? Pin
CPallini21-Feb-08 0:02
mveCPallini21-Feb-08 0:02 
GeneralRe: convert color image to grayscale image ? Pin
Rajkumar R21-Feb-08 0:14
Rajkumar R21-Feb-08 0:14 
GeneralRe: convert color image to grayscale image ? Pin
gentleguy21-Feb-08 0:32
gentleguy21-Feb-08 0:32 
GeneralRe: convert color image to grayscale image ? Pin
Rajkumar R21-Feb-08 1:38
Rajkumar R21-Feb-08 1:38 
AnswerRe: convert color image to grayscale image ? Pin
swarup21-Feb-08 1:06
swarup21-Feb-08 1:06 
GeneralRe: convert color image to grayscale image ? Pin
gentleguy21-Feb-08 2:10
gentleguy21-Feb-08 2:10 
Questioncan't convert from int to int *? Pin
gentleguy20-Feb-08 21:14
gentleguy20-Feb-08 21:14 
AnswerRe: can't convert from double to double? Pin
CPallini20-Feb-08 21:30
mveCPallini20-Feb-08 21:30 
QuestionHow to change drop down list Height of a ComboBox Pin
poda20-Feb-08 21:00
poda20-Feb-08 21:00 
AnswerRe: How to change drop down list Height of a ComboBox Pin
Rajkumar R20-Feb-08 22:14
Rajkumar R20-Feb-08 22:14 
AnswerRe: How to change drop down list Height of a ComboBox Pin
Iain Clarke, Warrior Programmer20-Feb-08 22:32
Iain Clarke, Warrior Programmer20-Feb-08 22:32 
AnswerRe: How to change drop down list Height of a ComboBox Pin
David Crow21-Feb-08 4:11
David Crow21-Feb-08 4:11 
AnswerRe: How to change drop down list Height of a ComboBox Pin
poda21-Feb-08 18:41
poda21-Feb-08 18:41 
GeneralRe: How to change drop down list Height of a ComboBox Pin
Rajkumar R24-Feb-08 2:46
Rajkumar R24-Feb-08 2:46 
QuestionAbout Mouse Icon Pin
manish.patel20-Feb-08 19:58
manish.patel20-Feb-08 19:58 
GeneralAbout Mouse Icon Updated Pin
manish.patel20-Feb-08 20:10
manish.patel20-Feb-08 20:10 

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.