Compatible resolutions for LTIMosaicFilter

For discussion of LizardTech's free Decode SDK for MrSID and JPEG 2000.

Moderator: jskiffington

Compatible resolutions for LTIMosaicFilter

Postby Tubaman » Mon Feb 28, 2011 9:19 am

I have 3 .sid images for which I'm attempting to use a mosaicFilter to create a composite image. If I pass 'false' to the useMultires parameter of initialize() or checkResolutionConformance(), I get an 'incompatible X resolutions' error (50206).

According to the IMAGE:X_RESOLUTION metadata tag, the resolution of all 3 images is 0.000008 (i.e. 80cm). However, if I do a getGeoCoord() on the 3 readers, the resolutions returned are 0.0000077408, 0.0000077454 and 0.0000077496, which looks like it could be the reason for the incompatible resolutions message.

I don't currently understand why the actual resolution values are different from the tagged values (something to do with the projection with the image tiles being at slighly different lat/lon maybe? Each tile covers an area of approx 0.2 degrees square). My question though is what is the likely performance penalty if I set the useMultires parameter to true so that the images can be resampled? This sounds expensive, and if so is it possible to get the mosaicFilter to ignore the tiny difference and force it to create the mosaic without resampling?

Many thanks in advance for any help!
Tubaman
 
Posts: 3
Joined: Mon Feb 28, 2011 8:31 am

Return to SDKs

Who is online

Users browsing this forum: No registered users and 2 guests

cron