it.geosolutions.imageio.plugins.jp2k
Class JP2KKakaduImageReadParam

java.lang.Object
  extended by javax.imageio.IIOParam
      extended by javax.imageio.ImageReadParam
          extended by it.geosolutions.imageio.imageioimpl.EnhancedImageReadParam
              extended by it.geosolutions.imageio.plugins.jp2k.JP2KKakaduImageReadParam
All Implemented Interfaces:
Cloneable

public class JP2KKakaduImageReadParam
extends EnhancedImageReadParam

Class extending ImageReadParam with add for support of JP2 specific parameters.

Author:
Simone Giannecchini, GeoSolutions., Daniele Romagnoli, GeoSolutions.

Field Summary
static int INTERPOLATION_BILINEAR
           
static int INTERPOLATION_NEAREST
           
 
Fields inherited from class it.geosolutions.imageio.imageioimpl.EnhancedImageReadParam
destinationRegion
 
Fields inherited from class javax.imageio.ImageReadParam
canSetSourceRenderSize, destination, destinationBands, minProgressivePass, numProgressivePasses, sourceRenderSize
 
Fields inherited from class javax.imageio.IIOParam
controller, defaultController, destinationOffset, destinationType, sourceBands, sourceRegion, sourceXSubsampling, sourceYSubsampling, subsamplingXOffset, subsamplingYOffset
 
Constructor Summary
JP2KKakaduImageReadParam()
          Constructs a default instance of JP2KakaduImageReadParam.
 
Method Summary
 Object clone()
           
 int getInterpolationType()
          Gets InterpolationType.
 int getQualityLayers()
          Gets qualityLayers.
protected  void initialize(ImageReadParam param)
           
 void setInterpolationType(int interpolationType)
          Sets InterpolationType.
 void setQualityLayers(int qualityLayers)
          Sets qualityLayers.
 
Methods inherited from class it.geosolutions.imageio.imageioimpl.EnhancedImageReadParam
getDestinationRegion, narrowClone, setDestinationRegion
 
Methods inherited from class javax.imageio.ImageReadParam
canSetSourceRenderSize, getDestination, getDestinationBands, getSourceMaxProgressivePass, getSourceMinProgressivePass, getSourceNumProgressivePasses, getSourceRenderSize, setDestination, setDestinationBands, setDestinationType, setSourceProgressivePasses, setSourceRenderSize
 
Methods inherited from class javax.imageio.IIOParam
activateController, getController, getDefaultController, getDestinationOffset, getDestinationType, getSourceBands, getSourceRegion, getSourceXSubsampling, getSourceYSubsampling, getSubsamplingXOffset, getSubsamplingYOffset, hasController, setController, setDestinationOffset, setSourceBands, setSourceRegion, setSourceSubsampling
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INTERPOLATION_NEAREST

public static final int INTERPOLATION_NEAREST
See Also:
Constant Field Values

INTERPOLATION_BILINEAR

public static final int INTERPOLATION_BILINEAR
See Also:
Constant Field Values
Constructor Detail

JP2KKakaduImageReadParam

public JP2KKakaduImageReadParam()
Constructs a default instance of JP2KakaduImageReadParam.

Method Detail

clone

public Object clone()
             throws CloneNotSupportedException
Overrides:
clone in class EnhancedImageReadParam
Throws:
CloneNotSupportedException

setQualityLayers

public void setQualityLayers(int qualityLayers)
Sets qualityLayers.

Parameters:
qualityLayers - the quality layers involved within the read operation.
See Also:
getQualityLayers()

getQualityLayers

public final int getQualityLayers()
Gets qualityLayers.

Returns:
the number of quality layers.
See Also:
setQualityLayers(int)

getInterpolationType

public final int getInterpolationType()
Gets InterpolationType.

Returns:
the interpolation algorithm which will be used when image need to be warped

setInterpolationType

public final void setInterpolationType(int interpolationType)
Sets InterpolationType.

Parameters:
interpolationType - the interpolation type used during WarpAffine operation interpolationType should be one of: -INTERPOLATION_NEAREST -INTERPOLATION_BILINEAR -INTERPOLATION_BICUBIC -INTERPOLATION_BICUBIC2

initialize

protected void initialize(ImageReadParam param)


Copyright © 2006–2014 GeoSolutions. All rights reserved.