Frame_

Summary
Frame_
Functions
Frame_.allocUsed internally to allocate required memory.
rgb?Used internally.
Frame_.typecodeReturns colourspace.
Frame_.typecode=Used internally.
Frame_.widthReturns width.
Frame_.width=Used internally.
Frame_.heightReturns height.
Frame_.height=Used internally.
Frame_.shapeReturns width and height of frame.
Frame_.typesizeReturns amount of storage required.
Frame_.inspectSame as Frame_.to_s.
Frame_.to_sDisplay information about this class.
Frame_.to_strSame as Frame_.to_s.
Properties
typecodeReturns colourspace of frame.
widthReturns width of frame.
heightReturns height of frame.
memoryGet Memory object with frame data.
Functions
shapeReturns width and height of frame.
rgb?Used internally.
typesizeReturns amount of storage required.
to_ubyteConvert to array of unsigned byte
to_byteConvert to array of signed byte
to_usintConvert to array of unsigned short int
to_sintConvert to array of signed short int
to_uintConvert to array of unsigned int
to_intConvert to array of signed int
to_ulongConvert to array of unsigned long
to_longConvert to array of signed long
to_ubytergbConvert to array of unsigned byte RGB
to_bytergbConvert to array of signed byte RGB
to_usintrgbConvert to array of unsigned short RGB
to_sintrgbConvert to array of signed short RGB
to_uintrgbConvert to array of unsigned integer RGB
to_intrgbConvert to array of signed integer RGB
to_sfloatrgbConvert to array of single-precision RGB
to_dfloatrgbConvert to array of double-precision RGB
to_yv12Convert to YV12-frame.
to_i420Convert to I420-frame.
to_sfloatConvert to array of single-precision floating-point
to_sfloatrgbConvert to array of single-precision floating-point RGB
to_sfloatConvert to array of double-precision floating-point
to_sfloatrgbConvert to array of double-precision floating-point RGB
save
savef
save_ubyte
save_usint
save_sfloat
save_ubytergb
save_sfloatrgb
to_magickConvert to RGB-array and then to Magick::Image.
to_narrayConvert to RGB-array and then to NArray.
to_cvmatConvert to RGB-array and then to OpenCV matrix.
showOpens a window and displays the image.
Related
Functions
FrameCreate frame class.

Functions

Frame_.alloc

def Frame_.alloc

Used internally to allocate required memory.

rgb?

def Frame_.rgb?

Used internally.  Returns true.

Frame_.typecode

def Frame_.typecode

Returns colourspace.

Frame_.typecode=

def Frame_.typecode=(value)

Used internally.  Set colourspace of class.

Frame_.width

def Frame_.width

Returns width.

Frame_.width=

def Frame_.width=(value)

Used internally.  Set width of class.

Frame_.height

def Frame_.height

Returns height.

Frame_.height=

def Frame_.height=(value)

Used internally.  Set height of class.

Frame_.shape

def Frame_.shape

Returns width and height of frame.

Frame_.typesize

def Frame_.typesize

Returns amount of storage required.

Frame_.inspect

def Frame_.inspect

Same as Frame_.to_s.

Frame_.to_s

def Frame_.to_s

Display information about this class.

Frame_.to_str

def Frame_.to_str

Same as Frame_.to_s.

Properties

typecode

Returns colourspace of frame.

width

Returns width of frame.

height

Returns height of frame.

memory

Get Memory object with frame data.

See also

Functions

shape

def shape

Returns width and height of frame.

rgb?

def rgb?

Used internally.  Returns true.

typesize

def typesize

Returns amount of storage required.

to_ubyte

def to_ubyte

Convert to array of unsigned byte

to_byte

def to_byte

Convert to array of signed byte

to_usint

def to_usint

Convert to array of unsigned short int

to_sint

def to_sint

Convert to array of signed short int

to_uint

def to_uint

Convert to array of unsigned int

to_int

def to_int

Convert to array of signed int

to_ulong

def to_ulong

Convert to array of unsigned long

to_long

def to_long

Convert to array of signed long

to_ubytergb

def to_ubytergb

Convert to array of unsigned byte RGB

to_bytergb

def to_bytergb

Convert to array of signed byte RGB

to_usintrgb

def to_usintrgb

Convert to array of unsigned short RGB

to_sintrgb

def to_sintrgb

Convert to array of signed short RGB

to_uintrgb

def to_uintrgb

Convert to array of unsigned integer RGB

to_intrgb

def to_intrgb

Convert to array of signed integer RGB

to_sfloatrgb

def to_sfloatrgb

Convert to array of single-precision RGB

to_dfloatrgb

def to_dfloatrgb

Convert to array of double-precision RGB

to_yv12

def to_yv12

Convert to YV12-frame.

to_i420

def to_i420

Convert to I420-frame.

to_sfloat

def to_sfloat

Convert to array of single-precision floating-point

to_sfloatrgb

def to_sfloatrgb

Convert to array of single-precision floating-point RGB

to_sfloat

Convert to array of double-precision floating-point

to_sfloatrgb

Convert to array of double-precision floating-point RGB

save

def save(file)

savef

def savef(file)

save_ubyte

def save_ubyte(file)

save_usint

def save_usint(file)

save_sfloat

def save_sfloat(file)

save_ubytergb

def save_ubytergb(file)

save_sfloatrgb

def save_sfloatrgb(file)

to_magick

def to_magick

Convert to RGB-array and then to Magick::Image.

See also

to_narray

def to_narray

Convert to RGB-array and then to NArray.

See also

to_cvmat

def to_cvmat

Convert to RGB-array and then to OpenCV matrix.

See also

show

def show(width =  nil,
height =  nil)

Opens a window and displays the image.

Parameters

widthoptional parameter specifying the width of the window interior
heightoptional parameter specifying the width of the window interior

See also

Related

Summary
Functions
FrameCreate frame class.

Functions

Frame

def Frame(typecode,
width,
height)

Create frame class.

Parameters

typecodeColourspace tag.
widthWidth of frame.
heightHeight of frame.

See also

def Frame_.alloc
Used internally to allocate required memory.
def Frame_.rgb?
Used internally.
def Frame_.typecode
Returns colourspace.
def Frame_.typecode=(value)
Used internally.
def Frame_.width
Returns width.
def Frame_.width=(value)
Used internally.
def Frame_.height
Returns height.
def Frame_.height=(value)
Used internally.
def Frame_.shape
Returns width and height of frame.
def Frame_.typesize
Returns amount of storage required.
def Frame_.inspect
Same as Frame_.to_s.
def Frame_.to_s
Display information about this class.
def Frame_.to_str
Same as Frame_.to_s.
def shape
Returns width and height of frame.
def typesize
Returns amount of storage required.
def to_ubyte
Convert to array of unsigned byte
def to_byte
Convert to array of signed byte
def to_usint
Convert to array of unsigned short int
def to_sint
Convert to array of signed short int
def to_uint
Convert to array of unsigned int
def to_int
Convert to array of signed int
def to_ulong
Convert to array of unsigned long
def to_long
Convert to array of signed long
def to_ubytergb
Convert to array of unsigned byte RGB
def to_bytergb
Convert to array of signed byte RGB
def to_usintrgb
Convert to array of unsigned short RGB
def to_sintrgb
Convert to array of signed short RGB
def to_uintrgb
Convert to array of unsigned integer RGB
def to_intrgb
Convert to array of signed integer RGB
def to_sfloatrgb
Convert to array of single-precision RGB
def to_dfloatrgb
Convert to array of double-precision RGB
def to_yv12
Convert to YV12-frame.
def to_i420
Convert to I420-frame.
def to_sfloat
Convert to array of single-precision floating-point
def save(file)
def savef(file)
def save_ubyte(file)
def save_usint(file)
def save_sfloat(file)
def save_ubytergb(file)
def save_sfloatrgb(file)
def to_magick
Convert to RGB-array and then to Magick::Image.
def to_narray
Convert to RGB-array and then to NArray.
def to_cvmat
Convert to RGB-array and then to OpenCV matrix.
def show(width =  nil,
height =  nil)
Opens a window and displays the image.
def Frame(typecode,
width,
height)
Create frame class.
Objects of this class are used internally to store native data.
def to_magick
Convert to Magick::Image.
The class Magick::Image is extended with a few methods.
def to_narray
Convert to NArray.
The class NArray is extended with methods for conversion.
def to_cvmat
Convert to OpenCV matrix.
The class OpenCV::CvMat is extended with a method.
Class for opening and closing an X11-display.
Class for opening and closing a Microsoft Windows display.
Close