it.geosolutions.imageio.plugins.jpeg
Class JpegJMagickImageReader.JpegJMagickImageReaderReadParam

Object
  extended by IIOParam
      extended by ImageReadParam
          extended by EnhancedImageReadParam
              extended by JpegJMagickImageReader.JpegJMagickImageReaderReadParam
All Implemented Interfaces:
Cloneable
Enclosing class:
JpegJMagickImageReader

public static class JpegJMagickImageReader.JpegJMagickImageReaderReadParam
extends EnhancedImageReadParam

Implementation of ImageReadParam for this JpegJMagickImageReader. Actually we are using CloneableImageReadParam since ImageMagick guys claim that their library is thread safe but the moment I am getting nasty errors if I try to use multithreading hence I am locking the reader up.

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

Field Summary
static int INTERPOLATION_BILINEAR
           
static int INTERPOLATION_NEAREST
           
 
Fields inherited from class EnhancedImageReadParam
destinationRegion
 
Fields inherited from class ImageReadParam
canSetSourceRenderSize, destination, destinationBands, minProgressivePass, numProgressivePasses, sourceRenderSize
 
Fields inherited from class IIOParam
controller, defaultController, destinationOffset, destinationType, sourceBands, sourceRegion, sourceXSubsampling, sourceYSubsampling, subsamplingXOffset, subsamplingYOffset
 
Constructor Summary
JpegJMagickImageReader.JpegJMagickImageReaderReadParam()
          Constructs a default instance of JP2KakaduImageReadParam.
 
Method Summary
 Object clone()
          Deep copy this instance of JpegJMagickImageReader.JpegJMagickImageReaderReadParam;
 int getInterpolationType()
          Gets InterpolationType.
protected  void intialize(ImageReadParam param)
          Initilize this JpegJMagickImageReaderReadParam
 void setInterpolationType(int interpolationType)
          Sets InterpolationType.
 String toString()
           
 
Methods inherited from class EnhancedImageReadParam
getDestinationRegion, narrowClone, setDestinationRegion
 
Methods inherited from class ImageReadParam
canSetSourceRenderSize, getDestination, getDestinationBands, getSourceMaxProgressivePass, getSourceMinProgressivePass, getSourceNumProgressivePasses, getSourceRenderSize, setDestination, setDestinationBands, setDestinationType, setSourceProgressivePasses, setSourceRenderSize
 
Methods inherited from class IIOParam
activateController, getController, getDefaultController, getDestinationOffset, getDestinationType, getSourceBands, getSourceRegion, getSourceXSubsampling, getSourceYSubsampling, getSubsamplingXOffset, getSubsamplingYOffset, hasController, setController, setDestinationOffset, setSourceBands, setSourceRegion, setSourceSubsampling
 
Methods inherited from class Object
equals, finalize, getClass, hashCode, notify, notifyAll, 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

JpegJMagickImageReader.JpegJMagickImageReaderReadParam

public JpegJMagickImageReader.JpegJMagickImageReaderReadParam()
Constructs a default instance of JP2KakaduImageReadParam.

Method Detail

toString

public String toString()
Overrides:
toString in class Object

clone

public Object clone()
             throws CloneNotSupportedException
Deep copy this instance of JpegJMagickImageReader.JpegJMagickImageReaderReadParam;

Overrides:
clone in class EnhancedImageReadParam
Throws:
CloneNotSupportedException

getInterpolationType

public final int getInterpolationType()
Gets InterpolationType.

Returns:
the interpolation algorithm which will be used when imageMagick 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

intialize

protected void intialize(ImageReadParam param)
Initilize this JpegJMagickImageReaderReadParam



Copyright © 2006-2010 GeoSolutions. All Rights Reserved.