![]() | IBitmapImage Interface |
Namespace: CohesiveComputing.Imaging
public interface IBitmapImage
The IBitmapImage type exposes the following members.
Name | Description | |
---|---|---|
![]() | Dpi | Gets or sets the image dpi. |
![]() | Height | Gets the image height. |
![]() | IsTopDown | Gets a value indicating whether this image is top down. |
![]() | MetaData | Gets or sets the EXIF meta data dictionary. |
![]() | Stride | Gets the number of bytes needed for each scan line. |
![]() | UserObj | Gets or sets a temporary user object instance associated with the image. |
![]() | Width | Gets the image width. |
Name | Description | |
---|---|---|
![]() | Add(IBitmapImage) | Performs arithmetic add of image2 to instance. |
![]() | Add(IBitmapImage, Single) | Performs arithmetic add of image2 to instance. Applies brightness scale factor to image2 before adding. |
![]() | ApplyLut(UInt32) | Applies intensity lookup table to image. The lookup table must have 256 elements with values ranging from 0 to 255 inclusive. |
![]() | ApplyLut(UInt32, UInt32, UInt32) | Applies RGB lookup table to image. Each lookup table must have 256 elements with values ranging from 0 to 255 inclusive. |
![]() | AutoContrast | Automatically adjusts the image contrast and brightness levels. |
![]() | BuildNormalizedHog |
Builds normalized Histograms of oriented gradients for a given image using block size of 8x8 pixels.
Normalizes the Hog in to a single array of gradients.
Each successive group of 36 elements ((2 x 2) x (9 x 1) histogram) represents gradients
(at angles 0, 20, 40, 60, 80, 100, 120, 140, and 160 degrees) in a 16x16 pixel window.
This window slides over 8-pixel intervals, starting at top left of image.
|
![]() | ChangeBrightness | Changes the image brightness. |
![]() | ChangePerspective | Change perspective for given axis. |
![]() | ColourAt | Returns RGB colour at given logical pixel co-ordinates. Origin is top left corner.
No boundary checks are performed. |
![]() | ColourCodeAt | Returns RGB colour at given logical co-ordinates. Origin is top left corner.
No boundary checks are performed. |
![]() | Copy | Makes a copy of the entire image. |
![]() | CountBlobs | Counts the blobs in the image. |
![]() | CreateBlankImage | Creates blank image with same dimensions as instance image. |
![]() | CreateEuclideanDistanceMap | Creates Euclidean distance map from a binary image. The EDM is represented using 8 bpp top down byte array. |
![]() | CreateEuclideanDistanceMapImage |
Creates Euclidean distance map image from a binary image
|
![]() | Crop | Copies a rectangular region from the image, and returns as new image. |
![]() | Difference | Performs arithmetic subtraction from instance image. Negative results are forced to positive. |
![]() | Dilate | Applies 3x3 dilation kernel to the image. Works best on grey scale images. |
![]() | Dilate(MorphologyKernelType, Int32) | Applies dilation kernel to the image. Works best on grey scale images. |
![]() | Erode | Applies 3x3 erosion kernel to the image. Works best on grey scale images. |
![]() | Erode(MorphologyKernelType, Int32) | Applies erosion kernel to the image. Works best on grey scale images. |
![]() | ExtractBlobs | Extracts blobs from the image. Blob pixels must be non zero, i.e. not black. |
![]() | FindDeSkewAngle | Finds the de-skew angle for scanned document that is not straight. This method works best with 200 DPI images using 11 point font size. |
![]() | FindDeSkewAngle(Int32) | Finds the de-skew angle for scanned document that is not straight. This method works best with 200 DPI images using 11 point font size. Providing a different DPI than actual can sometimes improve the accuracy of this method. |
![]() | FindEdges | Finds the edges in the image. Returns an array where each element corresponds to a pixel. |
![]() | FindEdges1AsImage | Applies a 1st order derivative kernel to the image to find edges. |
![]() | FindEdges2AsImage | Applies a 2nd order derivative kernel to the image to find edges. |
![]() | FindEdgesLaplacian | Uses Laplacian 3x3 kernel to find all edges. |
![]() | FindEdgesSobel | Uses Sobel 3x3 kernel to find all edges. |
![]() | ForEachGsPixel(FuncInt32, Int32) | Sets new grey scale levels for the instance image. |
![]() | ForEachGsPixel(FuncInt32, Int32, Int32) | Sets in-place grey scale levels for the instance image, for pixels at x and y co-ordinates. |
![]() | ForEachGsPixel(FuncInt32, Int32, Int32, Int32) | Sets new grey scale levels for the instance image, and exposes x and y co-ordinates. |
![]() | ForEachGsPixel(FuncInt32, Int32, Int32, Int32) | Sets new grey scale levels for the instance image,
and exposes all immediate neighbour pixels in a clockwise order (i.e. Centre, {N, NE, E, SE, ..., NW}). |
![]() | ForEachGsPixel(FuncInt32, Int32, Int32, Int32, Int32, Int32) |
Sets new grey scale levels for the instance image, and exposes x and y co-ordinates,
and exposes all immediate neighbour pixels in a clockwise order (i.e. Centre, {N, NE, E, SE, ..., NW}).
|
![]() | ForEachIPixel(ActionInt32, Int32, Int32) | Iterates brightness levels of the instance image,
for pixels at x and y co-ordinates. |
![]() | ForEachIPixel(FuncInt32, Int32) | Sets new brightness levels for the instance image. |
![]() | ForEachIPixel(FuncInt32, Single) | Sets new brightness levels for the instance image. |
![]() | ForEachIPixel(FuncInt32, Int32, Int32) | Sets new brightness levels for the instance image, and exposes all immediate neighbour
pixels in a clockwise order (i.e. Centre, {N, NE, E, SE, ..., NW}). |
![]() | ForEachIPixel(FuncInt32, Int32, Int32, Int32) | Sets new brightness levels for the instance image,
for pixels at x and y co-ordinates. |
![]() | ForEachIPixel(FuncInt32, Int32, Int32, Int32) | Sets new brightness levels for the instance image, and exposes all immediate neighbour
pixels in a clockwise order (i.e. Centre, {N, NE, E, SE, ..., NW}). |
![]() | ForEachIPixel(FuncInt32, Int32, Int32, Int32, Int32, Int32) | Sets new brightness levels for the instance image,
for pixels at x and y co-ordinates, and exposes all immediate neighbour
pixels in a clockwise order (i.e. Centre, {N, NE, E, SE, ..., NW}). |
![]() | ForEachRgbPixel(ActionInt32, Int32, Int32, Int32, Int32) | Iterates colour pixels of the instance image,
for pixels at x and y co-ordinates. |
![]() | ForEachRgbPixel(FuncInt32, Int32, ValueTupleInt32, Int32, Int32) | Sets in-place new R,G & B colours for the instance image, for pixels at x and y co-ordinates. |
![]() | ForEachRgbPixel(FuncInt32, Int32, Int32, ValueTupleInt32, Int32, Int32) | Sets new R,G & B colours for the instance image. |
![]() | ForEachRgbPixel(FuncInt32, Int32, Int32, ValueTupleSingle, Single, Single) | Sets new R,G & B colours for the instance image. |
![]() | ForEachRgbPixel(FuncInt32, Int32, Int32, Int32, Int32, ValueTupleInt32, Int32, Int32) | Sets new R,G & B colours for the instance image,
for pixels at x and y co-ordinates. |
![]() | GetBlocksRegion | Returns the region of the image that is aligned with the supplied block size. |
![]() | GetHistograms(ColourChannel) | Generates histogram statistics for the image. |
![]() | GetHistograms(ColourChannel, Int32, Int32, Int32, Int32) | Generates histogram statistics for a region of the image. |
![]() | GetHogDominantGradients |
Gets the dominant gradients (of the image HOG); a 1 dimension array of (Angle, Gradient), where each element maps
to an 8x8 block of an image, whose origin is the top left.
StrideX and Height identify the width and height of the dominant gradient array.
|
![]() | GetImageData | Gets the raw image data as 24bpp blue/green/red raw data, where each row is 32bit aligned. |
![]() | GetIntensityData | Gets 8-bit grey scale data for image. Each byte in the array corresponds to a pixel in the image. |
![]() | GetRawFileSize | Returns the number of bytes needed to store image as a BMP file. |
![]() | GPlot(Int32, Int32) | Plots a white pixel at co-ordinates whose origin is bottom left.
No boundary checks are performed. |
![]() | GPlot(Int32, Int32, Int32) | Plots a pixel at co-ordinates whose origin is bottom left.
No boundary checks are performed. |
![]() | GPlot(Int32, Int32, Int32, Int32, Int32) | Plots a pixel at co-ordinates whose origin is bottom left.
No boundary checks are performed. |
![]() | GPlotLine(Int32, Int32, Int32, Int32, Int32) | Plots a line from start point (origin is bottom left) to end point. |
![]() | GPlotLine(Int32, Int32, Single, Int32, Int32) | Plots a line from start point (origin is bottom left), at given angle, for given radius. Returns end point co-ordinates. |
![]() | GRectFill | Draws a filled rectangle. Origin is bottom left. |
![]() | HEqualize | Performs histogram equalization on the image. |
![]() | HEqualize(Single) | Performs histogram equalization on the image. |
![]() | HEqualizeLocal | Performs histogram equalization for a pixel within a 3x3 neighbourhood. |
![]() | IntensityAt | Returns intensity value (0 to 255) at given logical co-ordinates. Origin is top left corner.
No boundary checks are performed. |
![]() | IsGreyScale | Returns true if image is grey scale. |
![]() | LogicalAnd | Performs AND operation of mask and image. |
![]() | LogicalDifference(IBitmapImage) | Performs a 'Set' difference. Where the images intersect, black colour is output. Otherwise, the original pixel is output. |
![]() | LogicalDifference(IBitmapImage, Single, Int32) |
Performs a 'Set' difference. Where the images intersect, intersect Colour is output.
Otherwise, the original pixel is output.
Parameter matchAccuracy specifies the accuracy for the intersection.
|
![]() | LogicalXor | Performs XOR operation of mask and image. |
![]() | Paste(IBitmapImage, Int32, Int32) | Pastes the specified rectangular image into the destination image. |
![]() | Paste(IBitmapImage, Int32, Int32, Single, Boolean) | Pastes the specified rectangular image into the destination image, with optional blending and transparency. |
![]() | Paste(IBitmapImage, Int32, Int32, Int32, Int32, Int32, Int32, Single) | Copies a rectangular region from paste source image in to destination image. |
![]() | Paste(IBitmapImage, Int32, Int32, Int32, Int32, Int32, Int32, Single, Int32, Single) | Copies a rectangular region from paste source image in to destination image. |
![]() | Plot(Int32, Int32) | Plots a white pixel at co-ordinates whose origin is top left.
No boundary checks are performed. |
![]() | Plot(Int32, Int32, Int32) | Plots a pixel at co-ordinates whose origin is top left.
No boundary checks are performed. |
![]() | Plot(Int32, Int32, Int32, Int32, Int32) | Plots a pixel at co-ordinates whose origin is top left.
No boundary checks are performed. |
![]() | PlotLine(Int32, Int32, Int32, Int32, Int32) | Plots a line from start point (origin is top left) to end point. |
![]() | PlotLine(Int32, Int32, Single, Int32, Int32) | Plots a line from start point (origin is top left), at given angle, for given radius. Returns end point co-ordinates. |
![]() | RectFill |
Draws a filled rectangle. Origin is top left.
|
![]() | ReduceDistortion | Reduces either barrel or pin cushion distortion. |
![]() | ReduceNoiseAdaptive | Applies adaptive 3x3 filter to reduce noise whilst preserving edges. |
![]() | ReduceNoiseMedian | Applies 3x3 median filter to R, G, & B colours of the image. |
![]() | Reflect | Reflects image in either horizontal or vertical axis. |
![]() | Resize(Single, ResizeInterpolation) | Resizes image by scale factor. |
![]() | Resize(Int32, Int32, ResizeInterpolation) | Resizes image to new width and height. |
![]() | Rotate(Double, Interpolation) | Rotates image by angle expressed as degrees. |
![]() | Rotate(Double, Int32, Interpolation) | Rotates image by angle expressed as degrees. |
![]() | Save(Stream) | Saves instance to a bitmap stream. |
![]() | Save(String) | Saves instance to a bitmap file. |
![]() | SaveJpeg(Stream, Int32) |
Saves image as Jpeg.
|
![]() | SaveJpeg(String, Int32) |
Saves image as Jpeg.
|
![]() | SavePng(Stream) | Saves image as PNG. |
![]() | SavePng(String) | Saves image as PNG. |
![]() | Sharpen | Applies a Laplacian 3x3 sharpening filter to the image using default strength of 0. |
![]() | Sharpen(Int32) | Applies a Laplacian 3x3 sharpening filter to the image. |
![]() | Smooth | Applies smoothing 3x3 filter to the image |
![]() | Smooth(KernelType, Int32) | Applies a smoothing kernel to the image.
Uses strength parameter to apply dynamic centre pixel weighting. |
![]() | Subtract(IBitmapImage) | Performs arithmetic subtraction from instance image.
Negative results are forced to 0 (black). |
![]() | Subtract(IBitmapImage, Single) | Performs arithmetic subtraction from instance image. Applies brightness scale factor to image2 before subtracting.
Negative results are forced to 0 (black). |
![]() | Threshold | Applies a bracketed (upper and lower) brightness threshold to the image. |
![]() | ThresholdBinary(Single) | Brightness values above (or equal to) specified threshold are forced to 100% (white).
Brightness values below are forced to 0% (black). |
![]() | ThresholdBinary(Single, Boolean) | Brightness values are clamped to 100% (white) or 0% (black) depending on parameters thresholdPc and toInverse. |
![]() | ThresholdCeiling | Brightness values above specified limit are forced to 100% (white). |
![]() | ThresholdColour | Performs colour thresholding by thresholding each pixel to a default 20 colour palette. |
![]() | ThresholdColour(Int32) | Performs colour thresholding by thresholding each pixel to one of the supplied colours. |
![]() | ThresholdColour(ValueTupleInt32, Int32, Int32) |
Performs colour thresholding by thresholding each pixel to one of the supplied colours.
|
![]() | ThresholdColour(Int32, Single, Int32) | Performs colour thresholding by thresholding each pixel to one of the supplied colours.
Colours not matching are set to the default colour. |
![]() | ThresholdColour(ValueTupleInt32, Int32, Int32, Single, ValueTupleInt32, Int32, Int32) |
Performs colour thresholding by thresholding each pixel to one of the supplied colours.
Colours not matching are set to the default colour.
|
![]() | ThresholdFloor |
Brightness values below specified limit are forced to 0% (black).
|
![]() | ToGreyScale | Converts image to grey scale. |
![]() | ToInverse |
Converts image to negative equivalent.
|