Quantcast
Channel: beginners - openFrameworks
Viewing all articles
Browse latest Browse all 4929

Pass image as pointer

$
0
0

@marcorexo wrote:

I’m trying to pass the address of an image to a function using a pointer so that I can change the actual image and reduce memory usage without using copies. However, I keep getting this error:

Undefined symbols for architecture x86_64:
“file::crop_image(ofxCvGrayscaleImage)”…

The file contents are:

file.h

void crop_image(ofxCvGrayscaleImage *img);

file.m


crop_image(threshold_image_copy);

void crop_image(ofxCvGrayscaleImage *img){
;
}

Please could you point me in the right direction? No pun intended.

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 4929

Trending Articles