Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to show UIImage in processImage:(Mat&)image method

Hi all, I want to show a UIImage in processImage:(Mat&)image method, but it does not work. I used this code:

UIImage *imgSegnale = [UIImage imageNamed:@"28d452f38cf0cb107ba05aee1c24cdfb.png"];
self.imgViewSegnale.image = imgSegnale;

If I add this code in viewDidLod method, it works. Also work if I add this code in a (IBAction) method (using a button). But it don't work if I add this code in processImage:(Mat&)image method.

Any suggestion?

Best regards Costantino

How to show UIImage in processImage:(Mat&)image method

Hi all, I want to show a UIImage in processImage:(Mat&)image method, but it does not work. I used this code:

UIImage *imgSegnale = [UIImage imageNamed:@"28d452f38cf0cb107ba05aee1c24cdfb.png"];
imageNamed:@"testImage.png"];
self.imgViewSegnale.image = imgSegnale;

If I add this code in viewDidLod method, it works. Also work if I add this code in a (IBAction) method (using a button). But it don't work if I add this code in processImage:(Mat&)image method.

Any suggestion?

Best regards Costantino

How to show UIImage in processImage:(Mat&)image method

Hi all, I want to show a UIImage in processImage:(Mat&)image method, but it does not work. I used this code:

UIImage *imgSegnale = [UIImage imageNamed:@"testImage.png"];
self.imgViewSegnale.image = imgSegnale;

If I add this code in viewDidLod method, it works. Also work if I add this code in a (IBAction) method (using a button). But it don't work if I add this code in processImage:(Mat&)image method.

Any suggestion?

Best regards Costantino