ImageInput

Base class for different types of input sources for images.

Summary
ImageInputBase class for different types of input sources for images.
Functions
readRead an image (abstract method).
status?Indicates whether input still is available (abstract method).
read_ubyteRead an image and convert to two-dimensional array of 8-bit unsigned greyscale values.
read_byteRead an image and convert to two-dimensional array of 8-bit signed greyscale values.
read_usintRead an image and convert to two-dimensional array of 16-bit unsigned greyscale values.
read_sintRead an image and convert to two-dimensional array of 16-bit signed greyscale values.
read_uintRead an image and convert to two-dimensional array of 32-bit unsigned greyscale values.
read_intRead an image and convert to two-dimensional array of 32-bit signed greyscale values.
read_ulongRead an image and convert to two-dimensional array of 64-bit unsigned greyscale values.
read_longRead an image and convert to two-dimensional array of 64-bit signed greyscale values.
read_sfloatRead an image and convert it to a two-dimensional array of single-precision floating-point greyscale values.
read_dfloatRead an image and convert it to a two-dimensional array of double precision floating-point greyscale values.
read_ubytergbRead an image and convert to two-dimensional array of 8-bit unsigned RGB values.
read_bytergbRead an image and convert to two-dimensional array of 8-bit signed RGB values.
read_usintrgbRead an image and convert to two-dimensional array of 16-bit unsigned RGB values.
read_sintrgbRead an image and convert to two-dimensional array of 16-bit signed RGB values.
read_uintrgbRead an image and convert to two-dimensional array of 32-bit unsigned RGB values.
read_intrgbRead an image and convert to two-dimensional array of 32-bit signed RGB values.
read_ulongrgbRead an image and convert to two-dimensional array of 64-bit unsigned RGB values.
read_longrgbRead an image and convert to two-dimensional array of 64-bit signed RGB values.
read_sfloatrgbRead an image and convert it to a two-dimensional array of single-precision floating-point RGB values.
read_dfloatrgbRead an image and convert it to a two-dimensional array of double precision floating-point RGB values.

Functions

read

def read

Read an image (abstract method).

Returns

An object of type Frame_ or Sequence_

status?

def status?

Indicates whether input still is available (abstract method).

read_ubyte

def read_ubyte

Read an image and convert to two-dimensional array of 8-bit unsigned greyscale values.

This is a shortcut for

read.to_ubyte

read_byte

def read_byte

Read an image and convert to two-dimensional array of 8-bit signed greyscale values.

This is a shortcut for

read.to_byte

read_usint

def read_usint

Read an image and convert to two-dimensional array of 16-bit unsigned greyscale values.

This is a shortcut for

read.to_usint

read_sint

def read_sint

Read an image and convert to two-dimensional array of 16-bit signed greyscale values.

This is a shortcut for

read.to_usint

read_uint

def read_uint

Read an image and convert to two-dimensional array of 32-bit unsigned greyscale values.

This is a shortcut for

read.to_uint

read_int

def read_int

Read an image and convert to two-dimensional array of 32-bit signed greyscale values.

This is a shortcut for

read.to_int

read_ulong

def read_ulong

Read an image and convert to two-dimensional array of 64-bit unsigned greyscale values.

This is a shortcut for

read.to_ulong

read_long

def read_long

Read an image and convert to two-dimensional array of 64-bit signed greyscale values.

This is a shortcut for

read.to_long

read_sfloat

def read_sfloat

Read an image and convert it to a two-dimensional array of single-precision floating-point greyscale values. values.

This is a shortcut for

read.to_sfloat

read_dfloat

def read_dfloat

Read an image and convert it to a two-dimensional array of double precision floating-point greyscale values.

This is a shortcut for

read.to_dfloat

read_ubytergb

def read_ubytergb

Read an image and convert to two-dimensional array of 8-bit unsigned RGB values.

This is a shortcut for

read.to_ubytergb

read_bytergb

def read_bytergb

Read an image and convert to two-dimensional array of 8-bit signed RGB values.

This is a shortcut for

read.to_bytergb

read_usintrgb

def read_usintrgb

Read an image and convert to two-dimensional array of 16-bit unsigned RGB values.

This is a shortcut for

read.to_usintrgb

read_sintrgb

def read_sintrgb

Read an image and convert to two-dimensional array of 16-bit signed RGB values.

This is a shortcut for

read.to_usintrgb

read_uintrgb

def read_uintrgb

Read an image and convert to two-dimensional array of 32-bit unsigned RGB values.

This is a shortcut for

read.to_uintrgb

read_intrgb

def read_intrgb

Read an image and convert to two-dimensional array of 32-bit signed RGB values.

This is a shortcut for

read.to_intrgb

read_ulongrgb

def read_ulongrgb

Read an image and convert to two-dimensional array of 64-bit unsigned RGB values.

This is a shortcut for

read.to_ulongrgb

read_longrgb

def read_longrgb

Read an image and convert to two-dimensional array of 64-bit signed RGB values.

This is a shortcut for

read.to_longrgb

read_sfloatrgb

def read_sfloatrgb

Read an image and convert it to a two-dimensional array of single-precision floating-point RGB values. values.

This is a shortcut for

read.to_sfloatrgb

read_dfloatrgb

def read_dfloatrgb

Read an image and convert it to a two-dimensional array of double precision floating-point RGB values.

This is a shortcut for

read.to_dfloatrgb
def read
Read an image (abstract method).
def status?
Indicates whether input still is available (abstract method).
def read_ubyte
Read an image and convert to two-dimensional array of 8-bit unsigned greyscale values.
def read_byte
Read an image and convert to two-dimensional array of 8-bit signed greyscale values.
def read_usint
Read an image and convert to two-dimensional array of 16-bit unsigned greyscale values.
def read_sint
Read an image and convert to two-dimensional array of 16-bit signed greyscale values.
def read_uint
Read an image and convert to two-dimensional array of 32-bit unsigned greyscale values.
def read_int
Read an image and convert to two-dimensional array of 32-bit signed greyscale values.
def read_ulong
Read an image and convert to two-dimensional array of 64-bit unsigned greyscale values.
def read_long
Read an image and convert to two-dimensional array of 64-bit signed greyscale values.
def read_sfloat
Read an image and convert it to a two-dimensional array of single-precision floating-point greyscale values.
def read_dfloat
Read an image and convert it to a two-dimensional array of double precision floating-point greyscale values.
def read_ubytergb
Read an image and convert to two-dimensional array of 8-bit unsigned RGB values.
def read_bytergb
Read an image and convert to two-dimensional array of 8-bit signed RGB values.
def read_usintrgb
Read an image and convert to two-dimensional array of 16-bit unsigned RGB values.
def read_sintrgb
Read an image and convert to two-dimensional array of 16-bit signed RGB values.
def read_uintrgb
Read an image and convert to two-dimensional array of 32-bit unsigned RGB values.
def read_intrgb
Read an image and convert to two-dimensional array of 32-bit signed RGB values.
def read_ulongrgb
Read an image and convert to two-dimensional array of 64-bit unsigned RGB values.
def read_longrgb
Read an image and convert to two-dimensional array of 64-bit signed RGB values.
def read_sfloatrgb
Read an image and convert it to a two-dimensional array of single-precision floating-point RGB values.
def read_dfloatrgb
Read an image and convert it to a two-dimensional array of double precision floating-point RGB values.
This class provides fast (multi-dimensional) Ruby arrays where all elements are of the same type.
Close