Click here to Skip to main content
15,919,479 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: about functions Pin
Rajkumar R4-Mar-08 19:22
Rajkumar R4-Mar-08 19:22 
Questionhow to assign this value to y? Pin
gentleguy4-Mar-08 17:48
gentleguy4-Mar-08 17:48 
AnswerRe: how to assign this value to y? Pin
Rajkumar R4-Mar-08 18:26
Rajkumar R4-Mar-08 18:26 
GeneralRe: how to assign this value to y? Pin
Maxwell Chen4-Mar-08 18:27
Maxwell Chen4-Mar-08 18:27 
GeneralRe: how to assign this value to y? Pin
ThatsAlok4-Mar-08 20:30
ThatsAlok4-Mar-08 20:30 
GeneralRe: how to assign this value to y? Pin
Maxwell Chen4-Mar-08 20:34
Maxwell Chen4-Mar-08 20:34 
GeneralRe: how to assign this value to y? Pin
ThatsAlok5-Mar-08 0:59
ThatsAlok5-Mar-08 0:59 
AnswerRe: how to assign this value to y? Pin
uusheikh4-Mar-08 20:44
uusheikh4-Mar-08 20:44 
You code still doesnt look correct enough. In image processing, normally we write in this way;
x_start,y_start, x_end, y_end are the coordinates for your ROI (Region of Interest)

Also note, the RGB image is 24-bit (hence the 3 = 24/8). Array indexing is used as x*depth + y *depth*image width (not region width)

Also note, on IA-x86 (Intel Arch), RGB in memory comes as BGR

for(int y = y_start; y < y_end; y++)<br />
for(int x = x_start; x < x_end; x++)<br />
{<br />
  pImageGray[x+y*width] = pImageRGB[x*3 + y*width*3 + 0]*0.112 + pImageRGB[x*3 + y*width*3 + 1]*0.59 + pImageRGB[x*3 + y*width*3 + 2]*0.33;<br />
<br />
}

AnswerRe: how to assign this value to y? Pin
David Crow5-Mar-08 3:55
David Crow5-Mar-08 3:55 
QuestionHow to identify the code of login page? Pin
chinakknd4-Mar-08 17:38
chinakknd4-Mar-08 17:38 
AnswerRe: How to identify the code of login page? Pin
Christian Graus4-Mar-08 19:10
protectorChristian Graus4-Mar-08 19:10 
GeneralCHttpFile::EndRequest Fails Pin
yaminisridaran4-Mar-08 16:36
yaminisridaran4-Mar-08 16:36 
Generalreallocation Pin
George_George4-Mar-08 16:16
George_George4-Mar-08 16:16 
GeneralRe: reallocation Pin
Luc Pattyn6-Mar-08 7:09
sitebuilderLuc Pattyn6-Mar-08 7:09 
GeneralRe: reallocation Pin
George_George6-Mar-08 13:55
George_George6-Mar-08 13:55 
General[GDI+] Font contructing problem Pin
followait4-Mar-08 15:46
followait4-Mar-08 15:46 
GeneralRe: [GDI+] Font contructing problem Pin
Mark Salsbery4-Mar-08 16:10
Mark Salsbery4-Mar-08 16:10 
GeneralPrison? it might be a disaster Pin
sold_out4-Mar-08 15:38
sold_out4-Mar-08 15:38 
GeneralRe: Prison? it might be a disaster Pin
Mark Salsbery4-Mar-08 15:45
Mark Salsbery4-Mar-08 15:45 
GeneralRe: Prison? it might be a disaster Pin
sold_out4-Mar-08 15:49
sold_out4-Mar-08 15:49 
GeneralRe: Prison? it might be a disaster Pin
Mark Salsbery4-Mar-08 15:53
Mark Salsbery4-Mar-08 15:53 
GeneralRe: Prison? it might be a disaster Pin
sold_out4-Mar-08 15:58
sold_out4-Mar-08 15:58 
GeneralRe: Prison? it might be a disaster Pin
Mark Salsbery4-Mar-08 16:17
Mark Salsbery4-Mar-08 16:17 
GeneralRe: Prison? it might be a disaster Pin
sold_out4-Mar-08 16:23
sold_out4-Mar-08 16:23 
GeneralRe: Prison? it might be a disaster Pin
ThatsAlok4-Mar-08 20:35
ThatsAlok4-Mar-08 20:35 

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.