Click here to Skip to main content
15,914,357 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
dear all

how to solve the following problem? thanks a lot.

int value1[3][3]={{-1,0,1},{-1,0,1},{-1,0,1}};
int value2[3][3]={{-1,-1,-1},{0,0,0},{1,1,1}};
int Mask[3][3];
int iWidth=m_vicImg.endx-m_vicImg.stx+1;
int iHeight=m_vicImg.endy-m_vicImg.sty+1;
int iBuffwidth=m_vicImg.buffwidth;
unsigned char *ucImgdata=m_vicImg.ibuff;
int *ucImgdata1 ;

for(int iY=0;iY<iHeight;iY++)
{
for(int iX=0;iX<iWidth*3;iX+=3)
{
ucImgdata1 = 0.3*ucImgdata[iX] + 0.59*ucImgdata[iX+1] + 0.11*ucImgdata[iX+2];
}
ucImgdata+=iBuffwidth;
}
the error is below:
error C2440: '=' : cannot convert from 'int' to 'int *'

Li Zhiyuan


modified on Thursday, February 21, 2008 3:20 AM

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 
GeneralRe: About Mouse Icon Updated Pin
_AnsHUMAN_ 20-Feb-08 21:36
_AnsHUMAN_ 20-Feb-08 21:36 
GeneralRe: About Mouse Icon Updated Pin
manish.patel20-Feb-08 21:49
manish.patel20-Feb-08 21:49 
QuestionRe: About Mouse Icon Updated Pin
Rajkumar R21-Feb-08 0:38
Rajkumar R21-Feb-08 0:38 
GeneralRe: About Mouse Icon Updated Pin
manish.patel21-Feb-08 1:08
manish.patel21-Feb-08 1:08 
GeneralRe: About Mouse Icon Updated Pin
Rajkumar R21-Feb-08 3:26
Rajkumar R21-Feb-08 3:26 
GeneralRe: About Mouse Icon Updated Pin
manish.patel21-Feb-08 1:25
manish.patel21-Feb-08 1:25 
General[Message Deleted] Pin
swarup20-Feb-08 19:52
swarup20-Feb-08 19:52 
GeneralRe: How to add a file to an application Pin
Rajkumar R20-Feb-08 20:04
Rajkumar R20-Feb-08 20:04 

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.