W
wallacej
Does anybody know why
unsigned char myImage[512*480]; works but
unsigned char myImage[1004*1001]; does not?
I think its because the second line is a value too big for unsigned
char, is this correct?
If so:
How do I create this pointer for the size 1004*1001? I have tried
using long, int etc but the image processing function that I pass the
pointer to does not accept this. The function requires me to cast the
unsigned char into a long when I pass the pointer, I don't know if this
is making a difference; as your probably confused heres some code:
unsigned char myImage[512 * 480]; //Size for Halcon image
//unsigned char myImage[1004 * 1001]; //Size for Halcon image ///does
not work////////
//create a Halcon Image to receive output from edge detection
::gen_image1(&imgIPPCannyOut, "byte", dev->nBufferWidth,
dev->nBufferHeight, (long)myImage);
Thank You
unsigned char myImage[512*480]; works but
unsigned char myImage[1004*1001]; does not?
I think its because the second line is a value too big for unsigned
char, is this correct?
If so:
How do I create this pointer for the size 1004*1001? I have tried
using long, int etc but the image processing function that I pass the
pointer to does not accept this. The function requires me to cast the
unsigned char into a long when I pass the pointer, I don't know if this
is making a difference; as your probably confused heres some code:
unsigned char myImage[512 * 480]; //Size for Halcon image
//unsigned char myImage[1004 * 1001]; //Size for Halcon image ///does
not work////////
//create a Halcon Image to receive output from edge detection
::gen_image1(&imgIPPCannyOut, "byte", dev->nBufferWidth,
dev->nBufferHeight, (long)myImage);
Thank You