| Package | com.hook.imageprocessing.siox.canvas |
| Class | public class Canvas |
| Inheritance | Canvas flash.display.Sprite |
| Implements | ICanvas |
| Property | Defined By | ||
|---|---|---|---|
| confidenceMatrix : Vector.<Number>
Returns the confidence matrix vector that contains the confidence of the pixels. | Canvas | ||
| imageData : Vector.<Number>
Returns the image data vector that contains the pixel data. | Canvas | ||
| imageHeight : Number
Returns the image height. | Canvas | ||
| imageWidth : Number
Returns the image width. | Canvas | ||
| renderBitmapData : BitmapData [read-only]
Returns the bitmap data that is used to display the image. | Canvas | ||
| Property | Defined By | ||
|---|---|---|---|
| bufferBitmap : Bitmap
The Bitmap that contains the BitmapData. | Canvas | ||
| _confidenceMatrix : Vector.<Number>
Vector containing the confidence of those pixels. | Canvas | ||
| currentImageBitmapData : BitmapData
The BitmapData used to display the pixel data. | Canvas | ||
| imageBuffer : Vector.<Number>
An buffer vector that contains the rgb pixel data with alpha put in. | Canvas | ||
| _imageData : Vector.<Number>
Vector containing the pixel data. | Canvas | ||
| Method | Defined By | ||
|---|---|---|---|
Canvas()
Constructor
| Canvas | ||
initFromBitmapData(data:BitmapData):void
Initializes a canvas object from a BitmapData object. | Canvas | ||
initFromData(imageData:Vector.<Number>, imageWidth:Number, imageHeight:Number):void
Initializes a canvas object from a pre-defined image data vector. | Canvas | ||
refresh():void
Deprecated helper method that will render the canvas. | Canvas | ||
render():void
Renders the entire canvas from the confidence matrix vector and image data vector. | Canvas | ||
reset():void
Clears the image back to default. | Canvas | ||
update(changed:Vector.<Number>):void
Updated the canvas based on a vector of updated pixels. | Canvas | ||
| _confidenceMatrix | property |
protected var _confidenceMatrix:Vector.<Number>Vector containing the confidence of those pixels.
| _imageData | property |
protected var _imageData:Vector.<Number>Vector containing the pixel data.
| bufferBitmap | property |
protected var bufferBitmap:BitmapThe Bitmap that contains the BitmapData.
| confidenceMatrix | property |
confidenceMatrix:Vector.<Number>Returns the confidence matrix vector that contains the confidence of the pixels.
public function get confidenceMatrix():Vector.<Number> public function set confidenceMatrix(value:Vector.<Number>):void| currentImageBitmapData | property |
protected var currentImageBitmapData:BitmapDataThe BitmapData used to display the pixel data.
| imageBuffer | property |
protected var imageBuffer:Vector.<Number>An buffer vector that contains the rgb pixel data with alpha put in.
| imageData | property |
imageData:Vector.<Number>Returns the image data vector that contains the pixel data.
public function get imageData():Vector.<Number> public function set imageData(value:Vector.<Number>):void| imageHeight | property |
imageHeight:NumberReturns the image height.
public function get imageHeight():Number public function set imageHeight(value:Number):void| imageWidth | property |
imageWidth:NumberReturns the image width.
public function get imageWidth():Number public function set imageWidth(value:Number):void| renderBitmapData | property |
renderBitmapData:BitmapData [read-only] Returns the bitmap data that is used to display the image.
public function get renderBitmapData():BitmapData| Canvas | () | Constructor |
public function Canvas()Constructor
| initFromBitmapData | () | method |
public function initFromBitmapData(data:BitmapData):voidInitializes a canvas object from a BitmapData object. Creates a image data vector and confidence matrix vector from the BitmapData.
Parameters
data:BitmapData — The bitmap data to load into the canvas.
|
| initFromData | () | method |
public function initFromData(imageData:Vector.<Number>, imageWidth:Number, imageHeight:Number):voidInitializes a canvas object from a pre-defined image data vector.
Parameters
imageData:Vector.<Number> — The image data to load into the canvas.
| |
imageWidth:Number — The image width.
| |
imageHeight:Number — The image height.
|
| refresh | () | method |
public function refresh():voidDeprecated helper method that will render the canvas.
| render | () | method |
public function render():voidRenders the entire canvas from the confidence matrix vector and image data vector.
| reset | () | method |
public function reset():voidClears the image back to default.
| update | () | method |
public function update(changed:Vector.<Number>):voidUpdated the canvas based on a vector of updated pixels. This greatly helps with performances if only a small amount of pixels were modified.
Parameters
changed:Vector.<Number> — Vector containing changed pixels.
|