public class ThreeDSpectrumExporter extends ImageExporter implements Exporter<Array3DSpectrum>
Modifier and Type | Method and Description |
---|---|
void |
convert(Array3DSpectrum array3DSpectrum,
OutputStream outputStream)
Converts a 3D spectrum file to a viewable image file.
|
void |
convert(OutputStream outputStream,
int objectIndex)
Converts the object at index objectIndex into the desired export type.
|
Array3DSpectrum |
getArray3DSpectrum()
Get the Array 3D Spectrum
|
String |
getExportType()
Get the export image format
|
int |
getTargetPixelDepth()
Return the target image pixel depth in bits
|
boolean |
isFirstIndexFastest()
Is the first index fastest?
|
boolean |
isSampleDirectionRight()
Is the sample direction to the right?
|
boolean |
maximizeDynamicRange()
Get whether or not input data elements are scaled up to the
target pixel bit depth
|
void |
maximizeDynamicRange(boolean dynamicRangeScaling)
Set whether or not input data elements are scaled up to the
maximum pixel bit depth
|
void |
setArray3DSpectrum(Array3DSpectrum img)
Set the Array 3D Spectrum
|
void |
setBands(List<Integer> bands)
Set the bands to process.
|
void |
setExportType(String exportType)
Set the export image format.
|
void |
setFirstIndexFastest(boolean firstIndexFastest)
Set whether the first index is fastest.
|
void |
setSampleDirectionRight(boolean sampleDirectionRight)
Set the sample direction.
|
void |
setTargetPixelDepth(int targetPixelDepth)
Set the target pixel bit depth
|
getDisplaySettings, parseLabel, parseLabel, parseLabel, parseLabel, setDisplaySettings
getObjectProvider, getObservationalFileArea, setObjectProvider, setObservationalFileArea
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setObjectProvider, setObservationalFileArea
public void convert(OutputStream outputStream, int objectIndex) throws IOException
Exporter
convert
in interface Exporter<Array3DSpectrum>
outputStream
- the output stream for the output objectobjectIndex
- the index of the input object of type T in the associated
observational file areaIOException
public void convert(Array3DSpectrum array3DSpectrum, OutputStream outputStream) throws IOException
convert
in interface Exporter<Array3DSpectrum>
array3DSpectrum
- the array3DSpectrum object to convertoutputStream
- the output streamIOException
- if there is an exception writing to the stream or reading the imagepublic int getTargetPixelDepth()
public void setTargetPixelDepth(int targetPixelDepth)
targetPixelDepth
- the target pixel bit depthpublic boolean maximizeDynamicRange()
public void maximizeDynamicRange(boolean dynamicRangeScaling)
dynamicRangeScaling
- public String getExportType()
public void setExportType(String exportType)
setExportType
in interface Exporter<Array3DSpectrum>
exportType
- the export image formatpublic boolean isSampleDirectionRight()
public void setSampleDirectionRight(boolean sampleDirectionRight)
sampleDirectionRight
- public boolean isFirstIndexFastest()
public void setFirstIndexFastest(boolean firstIndexFastest)
firstIndexFastest
- public Array3DSpectrum getArray3DSpectrum()
public void setArray3DSpectrum(Array3DSpectrum img)
img
- Copyright © 2010–2018 Planetary Data System. All rights reserved.