org.autoplot.imagedatasource.ImageDataSet

Adapt a BufferedImage to a rank 2 or rank 3 QDataSet, using ColorOp to extract red, green, or blue channels. When mask is null and op is null, then a rank 3 dataset [w,h,3] is returned, a bundle of red, green, blue channels.

ImageDataSet( java.awt.image.BufferedImage image )

create a dataset from the image, returning a rank 3 dataset ds[w,h,3].

ImageDataSet( java.awt.image.BufferedImage image, java.awt.Color mask, org.autoplot.imagedatasource.ImageDataSet.ColorOp op )

create a dataset from the image. When mask and op are null, then a rank 3 dataset ds[w,h,3] is returned.


length

length( ) → int

Returns:

int

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

length( int i ) → int
length( int i, int j ) → int

rank

rank( ) → int

Returns:

int

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


value

value( int i0, int i1 ) → double

Parameters

i0 - an int
i1 - an int

Returns:

double

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

value( int i0, int i1, int i2 ) → double