Just Launched: You can now import projects and releases from Google Code onto SourceForge
We are excited to release new functionality to enable a 1-click import from Google Code onto the Allura platform on SourceForge. You can import tickets, wikis, source, releases, and more with a few simple steps. Read More
Using vxl 1.11.0 on Windows XP, there appears to be a problem writing
cropped images to tiff with vil_save(). Specifically, the following
works fine with other formats (bmp, jpg), but when I try to save as
tiff, the crop is always taken starting from the upper-left corner of
the image, ignoring the offsets.
vil_image_view<vxl_byte> crop1 = vil_crop(img, 1, 200, 1, 200);
vil_image_view<vxl_byte> crop2 = vil_crop(img, 51, 200, 51, 200);
My workaround has been to perform a vil_copy_deep before saving.
From: Peter Vanroose <peter_vanroose@ya...> - 2009-08-19 21:56:31
For the record:
There was a similar problem with vil_pnm and vil_iris, which I've corrected yesterday.
I've added tests to vil/tests/test_save_load_image.cxx to check for this particular problem (i.e., save and read back the "crop" of an image) and from the test run it seems that TIFF (nor any of the other tested file formats) have the problem anymore.
(This holds for the current SVN version, which will become 1.13 soon.)
Går det långsamt? Skaffa dig en snabbare bredbandsuppkoppling.
Sök och jämför priser hos Kelkoo.