Page 1 of 1

Image::resolutionUnits() always undefined

Posted: 2012-04-23T05:50:00-07:00
by gabriels
Hi,

When i run the following code:

Code: Select all

Image image;

image.read( "path_to_file" );

cout << image.resolutionUnits() << endl;
I always get 0, which is undefined. I found a workaround on the internet - use Image::constImage()::units. It gives me the right value. I don't know if it's a bug or i'm using it the wrong way.