|
oevislib_net
0.14.3.0
|
Functions | |
| oevislib_net.Image.Image () | |
| Construct an empty Image object, with pixel type set to UInt8 and 1 channel. | |
| oevislib_net.Image.Image (int inWidth, int inHeight, PixelType inPixelType, int inChannels) | |
| Construct an Image object, setting size, pixel type and number of channels. | |
| oevislib_net.Image.Image (int inWidth, int inHeight, PixelType inPixelType, int inChannels, IntPtr inData, bool inDeepCopy=true) | |
| Construct a new Image object by wrapping existing data. | |
| oevislib_net.Image.Image (int inWidth, int inHeight, PixelType inPixelType, int inChannels, Box inBox) | |
| Construct a new Image object, using a box to identify the non-zero pixels. | |
| oevislib_net.Image.Image (int inWidth, int inHeight, PixelType inPixelType, int inChannels, Region inRoi) | |
| Construct a new Image object from a Region of interest. | |
| oevislib_net.Image.Image (int inWidth, int inHeight, PixelType inPixelType, int inChannels, Pixel inPixel) | |
| Construct an Image object with all the pixels set to a specific value. | |
| oevislib_net.Image.Image (int inWidth, int inHeight, PixelType inPixelType, int inChannels, Array< Pixel > inPixels) | |
| Construct an Image object from an array of pixels. | |
| oevislib_net.Image.Image (Array< Profile > inProfiles) | |
| Construct a new Image object by joining an array of profiles together as consecutive image rows. | |
| Image | oevislib_net.Image.Copy (Box inRoi) |
| Returns a copy of the image with black pixels outside the box. | |
| Image | oevislib_net.Image.Copy (Region inRoi) |
| Returns a copy of the image with black pixels outside the region. | |
| ByteBuffer | oevislib_net.Image.Serialize () |
| Serialize the Image object using flatbuffers. | |
| static Image | oevislib_net.Image.Deserialize (ByteBuffer inBuffer) |
| De-serialize an Image buffer. | |
| IntPtr | oevislib_net.Image.GetData () |
| Returns the pointer to the image's data. | |
| int | oevislib_net.Image.GetDataSize () |
| Returns the size of a single image pixel in bytes. | |
| Size | oevislib_net.Image.GetFrame () |
| Returns a Size object containing the image's width and height. | |
| int | oevislib_net.Image.GetWidth () |
| Returns the width of the image. | |
| int | oevislib_net.Image.GetHeight () |
| Returns the height of the image. | |
| int | oevislib_net.Image.GetArea () |
| Returns the area of the image. | |
| int | oevislib_net.Image.GetChannels () |
| Returns the number of channels of the image. | |
| ImageFormat | oevislib_net.Image.GetImageFormat () |
| Returns an ImageFormat object associated with the image object. | |
| PixelType | oevislib_net.Image.GetPixelType () |
| Returns the image's pixel type. | |
| float | oevislib_net.Image.GetMaxValue () |
| Returns the maximum pixel's value for the current pixel type. | |
| float | oevislib_net.Image.GetMinValue () |
| Returns the minimum pixel's value for the current pixel type. | |
| int | oevislib_net.Image.GetPitch () |
| Returns the pitch (bytes in a row) of the image. | |
| PixelFormat | oevislib_net.Image.GetPixelFormat () |
| Returns the image's pixel format. | |
| int | oevislib_net.Image.GetPixelSize () |
| Returns the size of a single pixel in bytes. | |
| bool | oevislib_net.Image.IsEmpty () |
| Returns whether the image is empty. | |
| void | oevislib_net.Image.SetValue (float inValue, int inX, int inY, int inChannel=0) |
| Set the pixel's value in a specific spot. | |
| void | oevislib_net.Image.SetPixel (Pixel inPixel, Point2Di inPosition) |
| Sets a pixel of the image to the selected value. | |
| void | oevislib_net.Image.SetPixels (Pixel inPixel) |
| Sets all pixels of the image to one value. | |
| void | oevislib_net.Image.SetPixels (Pixel inPixel, Array< Point2Di > inPositions) |
| Sets a selection of pixels to a new value. | |
| void | oevislib_net.Image.SetPixels (Array< Pixel > inPixels, Array< Point2Di > inPositions) |
| Sets a selection of pixels, each one to a specific new value. | |
| void | oevislib_net.Image.SetPixelsInRegion (Pixel inPixel, Region inRoi) |
| Sets the pixels inside the specified region to a new value. | |
| void | oevislib_net.Image.SetPixelsInBox (Pixel inPixel, Box inRoi) |
| Sets the pixels inside the specified box to a new value. | |
| void | oevislib_net.Image.SetColumn (int inColIndex, Pixel inPixel) |
| Sets pixel values on an entire column of the image. | |
| void | oevislib_net.Image.SetRow (int inRowIndex, Pixel inPixel) |
| Sets pixel values in an entire row of the image. | |
| float | oevislib_net.Image.GetValue (int inX, int inY, int inChannel=0) |
| Returns the pixel's value given a specific spot. | |
| float | oevislib_net.Image.GetGrayValue (int inX, int inY) |
| Returns the grayscale pixel's value given a specific spot. | |
| Pixel | oevislib_net.Image.GetPixel (Point2Di inPosition) |
| Returns a single pixel of the image. | |
| Pixel | oevislib_net.Image.GetInterpolatedPixel (Point2D inPosition, InterpolationMethod2D inInterpolation=InterpolationMethod2D.Bilinear) |
| Returns an interpolated pixel on the image. | |
| Array< Pixel > | oevislib_net.Image.GetInterpolatedPixels (Array< Point2D > inPositions, InterpolationMethod2D inInterpolation=InterpolationMethod2D.Bilinear) |
| Returns an array of pixel values at specified positions. | |
| Array< Pixel > | oevislib_net.Image.GetPixels (Array< Point2Di > inPositions) |
| Returns an array of pixels at specified positions. | |
| Array< Pixel > | oevislib_net.Image.GetPixelsFromRegion (Region inRoi, Optional< Array< Point2Di > > outPositions=null) |
| Returns an array of pixels (and their relative positions) inside a specified region. | |
| Array< Pixel > | oevislib_net.Image.GetPixelsFromBox (Box inRoi, Optional< Array< Point2Di > > outPositions=null) |
| Returns an array of pixels (and their relative positions) inside a box. | |
| Array< Pixel > | oevislib_net.Image.GetColumn (int inColIndex) |
| Extracts the array of pixel values from a single column of the image. | |
| Image | oevislib_net.Image.GetColumnImage (int inColIndex) |
| Creates a new image using a single column of the current one. | |
| Array< Pixel > | oevislib_net.Image.GetRow (int inRowIndex) |
| Extracts the array of pixel values from a single row of the image. | |
| Image | oevislib_net.Image.GetRowImage (int inRowIndex) |
| Creates a new image using a single row of the current one. | |
| void | oevislib_net.Image.ConvertToType (PixelType inNewType) |
| Changes the pixel type (in-place). | |
| Image | oevislib_net.Image.ConvertToType (PixelType inNewType, int inDepthDelta) |
| Changes the pixel type. | |
| Region | oevislib_net.Image.ToRegion () |
| Convert every non-zero pixel of the 1-channel image to a point in the output region. | |
| override object | oevislib_net.Image.Clone () |
| Returns a clone of the image. | |
ImageFormat Basics | |
| |
| oevislib_net.ImageFormat.ImageFormat () | |
| Creates a new ImageFormat object with default values. | |
| oevislib_net.ImageFormat.ImageFormat (int inWidth, int inHeight, PixelType inType, int inDepth) | |
| Creates a new ImageFormat object. | |
| int | oevislib_net.ImageFormat.GetArea () |
| Returns the area of the image (width * height). | |
Pixel Basics | |||||
| |||||
| static Pixel | oevislib_net.Pixel.operator+ (Pixel inPixel1, Pixel inPixel2) | ||||
| |||||
| static Pixel | oevislib_net.Pixel.operator- (Pixel inPixel1, Pixel inPixel2) | ||||
| |||||
| static Pixel | oevislib_net.Pixel.operator* (Pixel inPixel, float inValue) | ||||
| |||||
| static Pixel | oevislib_net.Pixel.operator/ (Pixel inPixel, float inValue) | ||||
| |||||
| oevislib_net.Pixel.Pixel () | |||||
| Constructs a new Pixel object using the default value. | |||||
| oevislib_net.Pixel.Pixel (float inX, float inY=0.0f, float inZ=0.0f, float inA=0.0f) | |||||
| Constructs a new Pixel object. | |||||
| ByteBuffer | oevislib_net.Pixel.Serialize () | ||||
| Serialize the Pixel object using flatbuffers. | |||||
| static Pixel | oevislib_net.Pixel.Deserialize (ByteBuffer inBuffer) | ||||
| De-serialize a Pixel buffer. | |||||
PixelFormat Basics | |
| |
| oevislib_net.PixelFormat.PixelFormat () | |
| Constructs a new PixelFormat object with default values. | |
| oevislib_net.PixelFormat.PixelFormat (PixelType inPixelType, int inChannels) | |
| Constructs a new Pixel Format object. | |
|
inline |
Returns a clone of the image.
|
inline |
Changes the pixel type (in-place).
If the value of pixel component doesn't fit in the range of the new type, it is clipped to the nearest proper value (maximum or minimum for the new type).
| inNewType | New pixel type of the image. |
Changes the pixel type.
If the value of pixel component doesn't fit in the range of the new type, it is clipped to the nearest proper value (maximum or minimum for the new type).
| inNewType | New pixel type of the image. |
| inDepthDelta | Pixel values are multiplied by 2^inDepthDelta. Range: [-30, 30]. |
Returns a copy of the image with black pixels outside the box.
| inRoi | Rectangle of pixels to maintain. |
Returns a copy of the image with black pixels outside the region.
| inRoi | Region of pixels to maintain. |
|
inlinestatic |
De-serialize an Image buffer.
| inBuffer | Buffer containing the object. |
|
inlinestatic |
De-serialize a Pixel buffer.
| inBuffer | Buffer containing the object. |
|
inline |
Returns the area of the image.
|
inline |
Returns the area of the image (width * height).
|
inline |
Returns the number of channels of the image.
|
inline |
|
inline |
|
inline |
Returns the pointer to the image's data.
|
inline |
Returns the size of a single image pixel in bytes.
|
inline |
|
inline |
|
inline |
Returns the height of the image.
|
inline |
Returns an ImageFormat object associated with the image object.
|
inline |
Returns an interpolated pixel on the image.
The position must be inside the image frame.
| inPosition | Point on the image to be accessed. |
| inInterpolation | Interpolation method. |
|
inline |
Returns an array of pixel values at specified positions.
All positions must be inside the image frame.
| inPositions | Points on the image to be accessed. |
| inInterpolation | Interpolation method. |
|
inline |
Returns the maximum pixel's value for the current pixel type.
|
inline |
Returns the minimum pixel's value for the current pixel type.
|
inline |
Returns the pitch (bytes in a row) of the image.
|
inline |
Returns the image's pixel format.
Returns an array of pixels at specified positions.
| inPositions | Pixels' positions. |
|
inline |
Returns an array of pixels (and their relative positions) inside a box.
| inRoi | Box where pixels have to be extracted. |
| outPositions | Pixels' positions. |
|
inline |
Returns an array of pixels (and their relative positions) inside a specified region.
| inRoi | Region of interest. |
| outPositions | Pixels' positions. |
|
inline |
Returns the size of a single pixel in bytes.
|
inline |
Returns the image's pixel type.
|
inline |
|
inline |
|
inline |
|
inline |
Returns the width of the image.
|
inline |
Construct an empty Image object, with pixel type set to UInt8 and 1 channel.
|
inline |
Construct a new Image object by joining an array of profiles together as consecutive image rows.
| inProfiles | Array of profiles. |
|
inline |
|
inline |
Construct an Image object from an array of pixels.
If the pixels are not enough for all the image, only a part (starting from the top-left corner) will be covered.
|
inline |
Construct a new Image object, using a box to identify the non-zero pixels.
|
inline |
|
inline |
Creates a new ImageFormat object with default values.
|
inline |
Creates a new ImageFormat object.
|
inline |
Returns whether the image is empty.
| inPixel | |
| inValue |
| inPixel1 | |
| inPixel2 |
| inPixel1 | |
| inPixel2 |
| inPixel | |
| inValue |
|
inline |
Constructs a new Pixel object using the default value.
|
inline |
Constructs a new Pixel object.
| inX | First pixel component (usually red). |
| inY | Second pixel component (usually green). |
| inZ | Third pixel component (usually blue). |
| inA | Fourth pixel component. |
|
inline |
Constructs a new PixelFormat object with default values.
|
inline |
|
inline |
Serialize the Image object using flatbuffers.
|
inline |
Serialize the Pixel object using flatbuffers.
|
inline |
Sets a pixel of the image to the selected value.
| inPixel | New pixel value. |
| inPosition | Pixel's position. |
Sets a selection of pixels, each one to a specific new value.
| inPixels | New pixel values. |
| inPositions | Pixels to set. |
|
inline |
Sets all pixels of the image to one value.
| inPixel | Pixel value. |
Sets a selection of pixels to a new value.
| inPixel | New pixel value. |
| inPositions | Pixels to select. |
Sets the pixels inside the specified box to a new value.
| inPixel | New pixel value. |
| inRoi | Box of pixels to be set. |
Sets the pixels inside the specified region to a new value.
If the region is partially outside the image, only the pixels that are inside the image will be set (no exception will be thrown for the out-of-bounds pixels).
| inPixel | New pixel value. |
| inRoi | Region of pixels to be set. |
|
inline |
|
inline |
|
inline |
Convert every non-zero pixel of the 1-channel image to a point in the output region.