|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectIIOParam
ImageWriteParam
JP2KKakaduImageWriteParam
public class JP2KKakaduImageWriteParam
Class holding Write parameters to customize the write operations, and set several fields, tags, markers through the kakadu machinery.
| Nested Class Summary | |
|---|---|
static class |
JP2KKakaduImageWriteParam.Compression
Type of compression to better customize the quality specification. |
static class |
JP2KKakaduImageWriteParam.ProgressionOrder
|
| Field Summary | |
|---|---|
static int |
UNSPECIFIED_ORG_GEN_TLM
|
| Fields inherited from class ImageWriteParam |
|---|
canOffsetTiles, canWriteCompressed, canWriteProgressive, canWriteTiles, compressionMode, compressionQuality, compressionType, compressionTypes, locale, MODE_COPY_FROM_METADATA, MODE_DEFAULT, MODE_DISABLED, MODE_EXPLICIT, preferredTileSizes, progressiveMode, tileGridXOffset, tileGridYOffset, tileHeight, tileWidth, tilingMode, tilingSet |
| Fields inherited from class IIOParam |
|---|
controller, defaultController, destinationOffset, destinationType, sourceBands, sourceRegion, sourceXSubsampling, sourceYSubsampling, subsamplingXOffset, subsamplingYOffset |
| Constructor Summary | |
|---|---|
JP2KKakaduImageWriteParam()
Default Constructor. |
|
| Method Summary | |
|---|---|
boolean |
canWriteTiles()
|
int |
getCLevels()
Gets cLevels. |
JP2KKakaduImageWriteParam.Compression |
getCompression()
|
JP2KKakaduImageWriteParam.ProgressionOrder |
getcOrder()
|
String |
getcPrecincts()
|
byte[] |
getGeoJp2()
|
int |
getOrgGen_tlm()
|
String |
getOrgT_parts()
|
int |
getqGuard()
|
double |
getQuality()
Gets quality. |
int |
getQualityLayers()
Gets qualityLayers. |
double[] |
getQualityLayersBitRates()
|
int |
getsProfile()
|
boolean |
isAddCommentMarker()
|
boolean |
isOrgGen_plt()
|
boolean |
isWriteCodeStreamOnly()
Gets writeCodeStreamOnly. |
void |
setAddCommentMarker(boolean addCommentMarker)
|
void |
setCLevels(int cLevels)
Sets cLevels. |
void |
setCompression(JP2KKakaduImageWriteParam.Compression compression)
Set the compression type. |
void |
setcOrder(JP2KKakaduImageWriteParam.ProgressionOrder cOrder)
|
void |
setcPrecincts(String cPrecincts)
|
void |
setGeoJp2(byte[] geoJp2)
|
void |
setOrgGen_plt(boolean orgGen_plt)
|
void |
setOrgGen_tlm(int orgGen_tlm)
|
void |
setOrgT_parts(String orgT_parts)
|
void |
setqGuard(int qGuard)
|
void |
setQuality(double quality)
Sets quality. |
void |
setQualityLayers(int qualityLayers)
Sets qualityLayers. |
void |
setQualityLayersBitRates(double[] qualityLayersBitRates)
Set the qualityLayer bitRates. |
void |
setsProfile(int sProfile)
|
void |
setWriteCodeStreamOnly(boolean writeCodeStreamOnly)
Sets writeCodeStreamOnly. |
String |
toString()
|
| Methods inherited from class ImageWriteParam |
|---|
canOffsetTiles, canWriteCompressed, canWriteProgressive, getBitRate, getCompressionMode, getCompressionQuality, getCompressionQualityDescriptions, getCompressionQualityValues, getCompressionType, getCompressionTypes, getLocale, getLocalizedCompressionTypeName, getPreferredTileSizes, getProgressiveMode, getTileGridXOffset, getTileGridYOffset, getTileHeight, getTileWidth, getTilingMode, isCompressionLossless, setCompressionMode, setCompressionQuality, setCompressionType, setProgressiveMode, setTiling, setTilingMode, unsetCompression, unsetTiling |
| Methods inherited from class IIOParam |
|---|
activateController, getController, getDefaultController, getDestinationOffset, getDestinationType, getSourceBands, getSourceRegion, getSourceXSubsampling, getSourceYSubsampling, getSubsamplingXOffset, getSubsamplingYOffset, hasController, setController, setDestinationOffset, setDestinationType, setSourceBands, setSourceRegion, setSourceSubsampling |
| Methods inherited from class Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int UNSPECIFIED_ORG_GEN_TLM
| Constructor Detail |
|---|
public JP2KKakaduImageWriteParam()
| Method Detail |
|---|
public boolean canWriteTiles()
canWriteTiles in class ImageWriteParampublic void setWriteCodeStreamOnly(boolean writeCodeStreamOnly)
writeCodeStreamOnly.
value - Whether the jpeg2000 code stream only or the jp2 format
will be written into the output.isWriteCodeStreamOnly()public boolean isWriteCodeStreamOnly()
writeCodeStreamOnly.
setWriteCodeStreamOnly(boolean)public double getQuality()
quality.
setQuality(double)public void setQuality(double quality)
quality.
quality - a quality parameter representing a compression ratio. As
an instance, a 0.2 quality represents a 5:1 compression
ratio. This parameter will be ignored in case the
qualityLayersBitRates parameter have been specified or
in case the Compression parameter has been specified
through the setCompression(Compression) method
using a JP2KKakaduImageWriteParam.Compression.NUMERICALLY_LOSSLESSgetQuality(),
setQualityLayersBitRates(double[]),
setCompression(Compression)public int getCLevels()
cLevels.
setCLevels(int)public void setCLevels(int cLevels)
cLevels.
cLevels - the number of decomposition levels.getCLevels()()public int getQualityLayers()
qualityLayers.
setQualityLayers(int)public void setQualityLayers(int qualityLayers)
qualityLayers.
qualityLayers - the number of quality layers.getQualityLayers(),
setQualityLayersBitRates(double[]),
setCompression(Compression)public byte[] getGeoJp2()
public void setGeoJp2(byte[] geoJp2)
public void setOrgGen_plt(boolean orgGen_plt)
public boolean isOrgGen_plt()
public void setOrgGen_tlm(int orgGen_tlm)
public int getOrgGen_tlm()
public void setOrgT_parts(String orgT_parts)
public String getOrgT_parts()
public JP2KKakaduImageWriteParam.ProgressionOrder getcOrder()
public void setcOrder(JP2KKakaduImageWriteParam.ProgressionOrder cOrder)
public int getqGuard()
public void setqGuard(int qGuard)
public String getcPrecincts()
public void setcPrecincts(String cPrecincts)
public void setQualityLayersBitRates(double[] qualityLayersBitRates)
setQuality(double)
qualityLayersBitRates - an array representing the cumulative bitRate
for each qualityLayer. The length of the array should be equals
to the specified qualityLayers value.setQualityLayers(int),
setCompression(Compression)public double[] getQualityLayersBitRates()
public boolean isAddCommentMarker()
public void setAddCommentMarker(boolean addCommentMarker)
public int getsProfile()
public void setsProfile(int sProfile)
public void setCompression(JP2KKakaduImageWriteParam.Compression compression)
JP2KKakaduImageWriteParam.Compression.NUMERICALLY_LOSSLESS,
JP2KKakaduImageWriteParam.Compression.LOSSY.
compression - the type of compression to apply which could be numerically lossless,
visually lossless (leveraging on quality bitrates) or lossy (leveraging on quality factor).
setQualityLayers(int),
setQuality(double),
setQualityLayersBitRates(double[])public JP2KKakaduImageWriteParam.Compression getCompression()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||