Click here to Skip to main content
15,920,687 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
GeneralRe: An Algorithm !! Pin
Jomy John21-Sep-05 21:48
Jomy John21-Sep-05 21:48 
GeneralRe: An Algorithm !! Pin
Christian Graus22-Sep-05 12:17
protectorChristian Graus22-Sep-05 12:17 
GeneralRe: An Algorithm !! Pin
Jomy John28-Sep-05 6:38
Jomy John28-Sep-05 6:38 
GeneralRe: An Algorithm !! Pin
Christian Graus28-Sep-05 7:30
protectorChristian Graus28-Sep-05 7:30 
GeneralRe: An Algorithm !! Pin
Jomy John28-Sep-05 15:07
Jomy John28-Sep-05 15:07 
GeneralRe: An Algorithm !! Pin
Christian Graus29-Sep-05 19:39
protectorChristian Graus29-Sep-05 19:39 
GeneralRe: An Algorithm !! Pin
Jomy John30-Sep-05 16:19
Jomy John30-Sep-05 16:19 
AnswerRe: An Algorithm !! Pin
Johann Gerell20-Sep-05 20:05
Johann Gerell20-Sep-05 20:05 
Assuming that the JPEG is decoded and that you have a raw RGB888 (24 bpp) DWORD-aligned stream:

  1. Get a pointer to the first DWORD, pPixel.
  2. Assign the color componenent values of that pixel to a COLORREEF, color = *pPixel.
  3. Multiply the RGB components to get the intensity (assuming that is the intensity definition...), intensity = GetRValue(color) * GetGValue(color) * GetBValue(color).
  4. Store the pixel id and its intensity somehow (defined by you), StorePixelIntensity(id, intensity).
  5. Continue to the next pixel, ++pPixel.
  6. Goto 1 if there are more pixels.



--
The Blog: Bits and Pieces

-- modified at 2:05 Wednesday 21st September, 2005
GeneralRe: An Algorithm !! Pin
Jomy John21-Sep-05 4:39
Jomy John21-Sep-05 4:39 
QuestionC++ Pointer To Pointer Pin
BlitzPackage19-Sep-05 14:57
BlitzPackage19-Sep-05 14:57 
NewsRe: C++ Pointer To Pointer Pin
prasad_som19-Sep-05 19:03
prasad_som19-Sep-05 19:03 
AnswerRe: C++ Pointer To Pointer Pin
VaporTrace19-Sep-05 20:09
VaporTrace19-Sep-05 20:09 
AnswerRe: C++ Pointer To Pointer Pin
John R. Shaw21-Sep-05 22:47
John R. Shaw21-Sep-05 22:47 
QuestionHow does this work? Pin
LiquidE_SA19-Sep-05 3:15
LiquidE_SA19-Sep-05 3:15 
AnswerRe: How does this work? Pin
RichardS19-Sep-05 5:56
RichardS19-Sep-05 5:56 
GeneralRe: How does this work? Pin
VaporTrace19-Sep-05 6:30
VaporTrace19-Sep-05 6:30 
GeneralRe: How does this work? Pin
RichardS19-Sep-05 8:01
RichardS19-Sep-05 8:01 
GeneralRe: How does this work? Pin
VaporTrace19-Sep-05 13:24
VaporTrace19-Sep-05 13:24 
GeneralRe: How does this work? Pin
RichardS20-Sep-05 5:36
RichardS20-Sep-05 5:36 
AnswerRe: How does this work? Pin
VaporTrace19-Sep-05 6:18
VaporTrace19-Sep-05 6:18 
GeneralRe: How does this work? Pin
Johann Gerell20-Sep-05 19:55
Johann Gerell20-Sep-05 19:55 
GeneralRe: How does this work? Pin
RichardS21-Sep-05 6:14
RichardS21-Sep-05 6:14 
GeneralRe: How does this work? Pin
Johann Gerell24-Sep-05 11:18
Johann Gerell24-Sep-05 11:18 
QuestionWininet : Cache problem Pin
JabraJabra18-Sep-05 20:50
JabraJabra18-Sep-05 20:50 
AnswerRe: Wininet : Cache problem Pin
RichardS19-Sep-05 6:13
RichardS19-Sep-05 6:13 

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.