org.autoplot.imagedatasource.ImageDataSource

ImageDataSource( java.net.URI uri )


CHANNEL_HUE


CHANNEL_SATURATION


CHANNEL_VALUE


GRAYSCALE_OP

return the grayscale for each pixel, with values between 0 and 255, using the mapping 0.3 * r + 0.59 * g + 0.11 * b.


HUE_OP

return the hue (as in Hue-Saturation-Value) for each pixel, with values between 0 and 360.


SATURATION_OP

return the saturation (as in Hue-Saturation-Value) for each pixel, with values between 0 and 100.


VALUE_OP

return the value (as in Hue-Saturation-Value) for each pixel, with values between 0 and 100.


getDataSet

getDataSet( ProgressMonitor mon ) → QDataSet

Parameters

mon - a ProgressMonitor

Returns:

org.das2.qds.QDataSet

[search for examples] [view on GitHub] [view on old javadoc]


getJpegExifMetaData

getJpegExifMetaData( ProgressMonitor mon ) → Map

read useful JPG metadata, such as the Orientation. This also looks to see if GPS metadata is available.

Parameters

mon - a ProgressMonitor

Returns:

a java.util.Map

[search for examples] [view on GitHub] [view on old javadoc]

getJpegExifMetaData( java.io.InputStream in ) → Map

getMetadata

getMetadata( ProgressMonitor mon ) → Map

Parameters

mon - a ProgressMonitor

Returns:

java.util.Map

[search for examples] [view on GitHub] [view on old javadoc]


getRange

getRange( JSONObject axis ) → QDataSet

Parameters

axis - a JSONObject

Returns:

org.das2.qds.QDataSet

[search for examples] [view on GitHub] [view on old javadoc]


rotateImage

rotateImage( java.awt.image.BufferedImage image, double drot, java.awt.image.BufferedImage dest ) → BufferedImage

rotate the image.

Parameters

image - a BufferedImage
drot - rotate this many degrees clockwise
dest - the target BufferedImage or null if one should be created, the same size as the original, regardless of rotation.

Returns:

the created bufferedImage

[search for examples] [view on GitHub] [view on old javadoc]