Magnification Questions

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

Moderator: jskiffington

Magnification Questions

Postby TattedCodeMonkey » Mon Jul 18, 2011 3:17 pm

I'm using the C interface dll's with a c# wrapper.

from the "Unified_DSDK_8.0_win32-vc9"

I've had some good success with the SDK until recently. I'm wondering how accurate the Magnification is? It seems to work in levels instead of going to the precise value you provide.

For example I'm working with some sid files that have a resolution of 3.0 and i am trying to use it with other map data that has an approx resolution of 2.38(meters per pixel). I set the magnification to 0.79 and the ltic_getDimsAtMag method returns the same dimensions as the file at 1.0 magnification.

Am i doing anything wrong or is this how the sdk functions by design.

Thanks.
TattedCodeMonkey
 
Posts: 1
Joined: Mon Jul 18, 2011 3:01 pm

Postby ChrisH » Mon Jul 18, 2011 3:26 pm

Certain image formats may only support octave resolutions. You can try pushing a MultiResFilter onto your imageStage chain. This should to the res up/down as required.
ChrisH
 
Posts: 14
Joined: Tue Feb 12, 2008 10:20 am


Return to SDKs

Who is online

Users browsing this forum: No registered users and 1 guest