public class ImageDataSource extends AbstractDataSource
| Modifier and Type | Field and Description |
|---|---|
static int |
CHANNEL_HUE |
static int |
CHANNEL_SATURATION |
static int |
CHANNEL_VALUE |
static ImageDataSet.ColorOp |
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.
|
static ImageDataSet.ColorOp |
HUE_OP
return the hue (as in Hue-Saturation-Value) for each pixel,
with values between 0 and 360.
|
static ImageDataSet.ColorOp |
SATURATION_OP
return the saturation (as in Hue-Saturation-Value) for each pixel,
with values between 0 and 100.
|
static ImageDataSet.ColorOp |
VALUE_OP
return the value (as in Hue-Saturation-Value) for each pixel, with
values between 0 and 100.
|
logger, params, resourceURI, uri| Constructor and Description |
|---|
ImageDataSource(java.net.URI uri) |
| Modifier and Type | Method and Description |
|---|---|
QDataSet |
getDataSet(ProgressMonitor mon)
retrieve the dataset.
|
static java.util.Map<java.lang.String,java.lang.Object> |
getJpegExifMetaData(java.io.InputStream in)
read useful JPG metadata, such as the Orientation.
|
java.util.Map<java.lang.String,java.lang.Object> |
getJpegExifMetaData(ProgressMonitor mon)
read useful JPG metadata, such as the Orientation.
|
java.util.Map<java.lang.String,java.lang.Object> |
getMetadata(ProgressMonitor mon)
abstract class version returns an empty tree.
|
QDataSet |
getRange(org.json.JSONObject axis) |
static java.awt.image.BufferedImage |
rotateImage(java.awt.image.BufferedImage image,
double drot,
java.awt.image.BufferedImage dest)
rotate the image.
|
addCability, addCapability, asynchronousLoad, doWhereFilter, getCapability, getExt, getExt, getFile, getFile, getFile, getHtmlFile, getInputStream, getMetadataModel, getParam, getParams, getProperties, getURI, toStringpublic static final int CHANNEL_HUE
public static final int CHANNEL_SATURATION
public static final int CHANNEL_VALUE
public static final ImageDataSet.ColorOp GRAYSCALE_OP
public static final ImageDataSet.ColorOp HUE_OP
public static final ImageDataSet.ColorOp SATURATION_OP
public static final ImageDataSet.ColorOp VALUE_OP
public static java.awt.image.BufferedImage rotateImage(java.awt.image.BufferedImage image,
double drot,
java.awt.image.BufferedImage dest)
image - drot - rotate this many degrees clockwisedest - the target BufferedImage or null if one should be created, the same size as the original, regardless of rotation.public QDataSet getDataSet(ProgressMonitor mon) throws java.lang.Exception
DataSourcegetDataSet in interface DataSourcegetDataSet in class AbstractDataSourcejava.lang.Exceptionpublic QDataSet getRange(org.json.JSONObject axis) throws org.json.JSONException, java.text.ParseException
org.json.JSONExceptionjava.text.ParseExceptionpublic java.util.Map<java.lang.String,java.lang.Object> getJpegExifMetaData(ProgressMonitor mon) throws java.lang.Exception
mon - java.lang.Exceptionpublic static java.util.Map<java.lang.String,java.lang.Object> getJpegExifMetaData(java.io.InputStream in)
throws java.lang.Exception
in - inputStream from a jpeg source.java.lang.Exceptionpublic java.util.Map<java.lang.String,java.lang.Object> getMetadata(ProgressMonitor mon) throws java.lang.Exception
AbstractDataSourcegetMetadata in interface DataSourcegetMetadata in class AbstractDataSourcemon - progress monitorjava.lang.Exception