skabdulravoof
MIS
hi guys..i am trying to read bmp file. here i want to load values of image into rawimage ... but i got an assertion window...can u help meout...
//decalring image
unsigned int **image;
image = new unsigned int* [biheight];
for(int i=0;i<biheight;i++)
image = new unsigned int[biwidth];
//assigning values to image
char temp;
for( i=0;i<biheight;i++)
for(int j=0;j<biwidth;j++)
{
fread(&temp,sizeof(char),1,fp);
image[j]=temp;
}
//declaring rawimage
unsigned char * rawimage=(unsigned char*) malloc(biheight*biwidth);
int k=0;
//actual problem is here...i am unable to initialize and load a value into rawimage
for(i=biheight,k=0;i>=0;i--,k++)// inverting the image
for(int j=0;j<biwidth;j++)
{rawimage[k*biwidth+j]=0;
rawimage[k*biwidth+j]=**image;
}
///////////////////////////////////////////////////////////////////////
thankssss
//decalring image
unsigned int **image;
image = new unsigned int* [biheight];
for(int i=0;i<biheight;i++)
image = new unsigned int[biwidth];
//assigning values to image
char temp;
for( i=0;i<biheight;i++)
for(int j=0;j<biwidth;j++)
{
fread(&temp,sizeof(char),1,fp);
image[j]=temp;
}
//declaring rawimage
unsigned char * rawimage=(unsigned char*) malloc(biheight*biwidth);
int k=0;
//actual problem is here...i am unable to initialize and load a value into rawimage
for(i=biheight,k=0;i>=0;i--,k++)// inverting the image
for(int j=0;j<biwidth;j++)
{rawimage[k*biwidth+j]=0;
rawimage[k*biwidth+j]=**image;
}
///////////////////////////////////////////////////////////////////////
thankssss