Class IplImage
Represents an IPL image header.
Inherited Members
Namespace: OpenCV.Net
Assembly: OpenCV.Net.dll
Syntax
public class IplImage : Arr
  Constructors
| Improve this Doc View SourceIplImage(Size, IplDepth, Int32)
Initializes a new instance of the IplImage class with the
specified size, pixel bit depth and
channels per element.
Declaration
public IplImage(Size size, IplDepth depth, int channels)
  Parameters
| Type | Name | Description | 
|---|---|---|
| Size | size | The pixel-accurate size of the IplImage.  | 
      
| IplDepth | depth | The bit depth of image pixels.  | 
      
| Int32 | channels | The number of channels per pixel.  | 
      
IplImage(Size, IplDepth, Int32, IntPtr)
Initializes a new instance of the IplImage class with the
specified size, pixel bit depth and
channels per element. A pointer to the image raw
data is provided.
Declaration
public IplImage(Size size, IplDepth depth, int channels, IntPtr data)
  Parameters
| Type | Name | Description | 
|---|---|---|
| Size | size | The pixel-accurate size of the IplImage.  | 
      
| IplDepth | depth | The bit depth of image pixels.  | 
      
| Int32 | channels | The number of channels per pixel.  | 
      
| IntPtr | data | A pointer to the image raw pixel data.  | 
      
Properties
| Improve this Doc View SourceChannelOfInterest
Gets or sets the image channel of interest. Only a few functions support COI.
Declaration
public int ChannelOfInterest { get; set; }
  Property Value
| Type | Description | 
|---|---|
| Int32 | 
Channels
Gets the number of channels per image pixel.
Declaration
public int Channels { get; }
  Property Value
| Type | Description | 
|---|---|
| Int32 | 
Depth
Gets the bit depth of image pixels.
Declaration
public IplDepth Depth { get; }
  Property Value
| Type | Description | 
|---|---|
| IplDepth | 
Height
Gets the height of the image in pixels.
Declaration
public int Height { get; }
  Property Value
| Type | Description | 
|---|---|
| Int32 | 
ImageData
Gets a pointer to the aligned image data.
Declaration
public IntPtr ImageData { get; }
  Property Value
| Type | Description | 
|---|---|
| IntPtr | 
RegionOfInterest
Gets or sets the image region of interest.
Declaration
public Rect RegionOfInterest { get; set; }
  Property Value
| Type | Description | 
|---|---|
| Rect | 
Width
Gets the width of the image in pixels.
Declaration
public int Width { get; }
  Property Value
| Type | Description | 
|---|---|
| Int32 | 
WidthStep
Gets the size of the aligned image row in bytes.
Declaration
public int WidthStep { get; }
  Property Value
| Type | Description | 
|---|---|
| Int32 | 
Methods
| Improve this Doc View SourceClone()
Creates a new IplImage that is a copy of the current instance.
Declaration
public IplImage Clone()
  Returns
| Type | Description | 
|---|---|
| IplImage | A new IplImage that is a copy of this instance. WidthStep may differ.  | 
      
GetSubRect(Rect)
Creates a new IplImage from a subrectangle of the current instance. No data is copied.
Declaration
public IplImage GetSubRect(Rect rect)
  Parameters
| Type | Name | Description | 
|---|---|---|
| Rect | rect | Zero-based coordinates of the rectangle of interest.  | 
      
Returns
| Type | Description | 
|---|---|
| IplImage | A new IplImage that corresponds to the specified rectangle of the current image.  | 
      
ReleaseHandle()
Executes the code required to free the native IplImage handle.
Declaration
protected override bool ReleaseHandle()
  Returns
| Type | Description | 
|---|---|
| Boolean | true if the handle is released successfully; otherwise, in the event of a catastrophic failure, false.  | 
      
ResetRegionOfInterest()
Resets the image region and channel of interest.
Declaration
public void ResetRegionOfInterest()
  ToString()
Creates a 
Declaration
public override string ToString()
  Returns
| Type | Description | 
|---|---|
| String | A   | 
      
Operators
| Improve this Doc View SourceAddition(IplImage, IplImage)
Calculates the per-element sum of two IplImage values.
Declaration
public static IplImage operator +(IplImage left, IplImage right)
  Parameters
| Type | Name | Description | 
|---|---|---|
| IplImage | left | The first value to add.  | 
      
| IplImage | right | The second value to add.  | 
      
Returns
| Type | Description | 
|---|---|
| IplImage | The result of adding   | 
      
Addition(IplImage, Scalar)
Declaration
public static IplImage operator +(IplImage left, Scalar right)
  Parameters
| Type | Name | Description | 
|---|---|---|
| IplImage | left | The image to add.  | 
      
| Scalar | right | The scalar to add.  | 
      
Returns
| Type | Description | 
|---|---|
| IplImage | The result of adding   | 
      
Addition(IplImage, Double)
Calculates the per-element sum of a IplImage and a
Declaration
public static IplImage operator +(IplImage left, double right)
  Parameters
| Type | Name | Description | 
|---|---|---|
| IplImage | left | The image to add.  | 
      
| Double | right | The scalar value to add.  | 
      
Returns
| Type | Description | 
|---|---|
| IplImage | The result of adding   | 
      
Addition(Scalar, IplImage)
Declaration
public static IplImage operator +(Scalar left, IplImage right)
  Parameters
| Type | Name | Description | 
|---|---|---|
| Scalar | left | The scalar to add.  | 
      
| IplImage | right | The image to add.  | 
      
Returns
| Type | Description | 
|---|---|
| IplImage | The result of adding   | 
      
Addition(Double, IplImage)
Calculates the per-element sum of a 
Declaration
public static IplImage operator +(double left, IplImage right)
  Parameters
| Type | Name | Description | 
|---|---|---|
| Double | left | The scalar value to add.  | 
      
| IplImage | right | The image to add.  | 
      
Returns
| Type | Description | 
|---|---|
| IplImage | The result of adding   | 
      
BitwiseAnd(IplImage, IplImage)
Performs per-element bit-wise conjunction of two IplImage values.
Declaration
public static IplImage operator &(IplImage left, IplImage right)
  Parameters
| Type | Name | Description | 
|---|---|---|
| IplImage | left | The first image value.  | 
      
| IplImage | right | The second image value.  | 
      
Returns
| Type | Description | 
|---|---|
| IplImage | The result of performing the bit-wise conjunction of   | 
      
BitwiseAnd(IplImage, Scalar)
Declaration
public static IplImage operator &(IplImage left, Scalar right)
  Parameters
| Type | Name | Description | 
|---|---|---|
| IplImage | left | The image value.  | 
      
| Scalar | right | The scalar value.  | 
      
Returns
| Type | Description | 
|---|---|
| IplImage | The result of performing the bit-wise conjunction of   | 
      
BitwiseAnd(IplImage, Double)
Performs per-element bit-wise conjunction of a IplImage and a
Declaration
public static IplImage operator &(IplImage left, double right)
  Parameters
| Type | Name | Description | 
|---|---|---|
| IplImage | left | The image value.  | 
      
| Double | right | The scalar value.  | 
      
Returns
| Type | Description | 
|---|---|
| IplImage | The result of performing the bit-wise conjunction of   | 
      
BitwiseAnd(Scalar, IplImage)
Declaration
public static IplImage operator &(Scalar left, IplImage right)
  Parameters
| Type | Name | Description | 
|---|---|---|
| Scalar | left | The scalar value.  | 
      
| IplImage | right | The image value.  | 
      
Returns
| Type | Description | 
|---|---|
| IplImage | The result of performing the bit-wise conjunction of   | 
      
BitwiseAnd(Double, IplImage)
Performs per-element bit-wise conjunction of a 
Declaration
public static IplImage operator &(double left, IplImage right)
  Parameters
| Type | Name | Description | 
|---|---|---|
| Double | left | The scalar value.  | 
      
| IplImage | right | The image value.  | 
      
Returns
| Type | Description | 
|---|---|
| IplImage | The result of performing the bit-wise conjunction of   | 
      
BitwiseOr(IplImage, IplImage)
Performs per-element bit-wise disjunction of two IplImage values.
Declaration
public static IplImage operator |(IplImage left, IplImage right)
  Parameters
| Type | Name | Description | 
|---|---|---|
| IplImage | left | The first image value.  | 
      
| IplImage | right | The second image value.  | 
      
Returns
| Type | Description | 
|---|---|
| IplImage | The result of performing the bit-wise disjunction of   | 
      
BitwiseOr(IplImage, Scalar)
Declaration
public static IplImage operator |(IplImage left, Scalar right)
  Parameters
| Type | Name | Description | 
|---|---|---|
| IplImage | left | The image value.  | 
      
| Scalar | right | The scalar value.  | 
      
Returns
| Type | Description | 
|---|---|
| IplImage | The result of performing the bit-wise disjunction of   | 
      
BitwiseOr(IplImage, Double)
Performs per-element bit-wise disjunction of a IplImage and a
Declaration
public static IplImage operator |(IplImage left, double right)
  Parameters
| Type | Name | Description | 
|---|---|---|
| IplImage | left | The image value.  | 
      
| Double | right | The scalar value.  | 
      
Returns
| Type | Description | 
|---|---|
| IplImage | The result of performing the bit-wise disjunction of   | 
      
BitwiseOr(Scalar, IplImage)
Declaration
public static IplImage operator |(Scalar left, IplImage right)
  Parameters
| Type | Name | Description | 
|---|---|---|
| Scalar | left | The scalar value.  | 
      
| IplImage | right | The image value.  | 
      
Returns
| Type | Description | 
|---|---|
| IplImage | The result of performing the bit-wise disjunction of   | 
      
BitwiseOr(Double, IplImage)
Performs per-element bit-wise disjunction of a 
Declaration
public static IplImage operator |(double left, IplImage right)
  Parameters
| Type | Name | Description | 
|---|---|---|
| Double | left | The scalar value.  | 
      
| IplImage | right | The image value.  | 
      
Returns
| Type | Description | 
|---|---|
| IplImage | The result of performing the bit-wise disjunction of   | 
      
Division(IplImage, IplImage)
Calculates the per-element division of two IplImage values.
Declaration
public static IplImage operator /(IplImage left, IplImage right)
  Parameters
| Type | Name | Description | 
|---|---|---|
| IplImage | left | The dividend.  | 
      
| IplImage | right | The divisor.  | 
      
Returns
| Type | Description | 
|---|---|
| IplImage | The result of dividing   | 
      
Division(IplImage, Double)
Calculates the per-element division of a IplImage by a
Declaration
public static IplImage operator /(IplImage left, double right)
  Parameters
| Type | Name | Description | 
|---|---|---|
| IplImage | left | The image dividend.  | 
      
| Double | right | The scalar divisor.  | 
      
Returns
| Type | Description | 
|---|---|
| IplImage | The result of dividing   | 
      
Division(Double, IplImage)
Calculates the per-element division of a 
Declaration
public static IplImage operator /(double left, IplImage right)
  Parameters
| Type | Name | Description | 
|---|---|---|
| Double | left | The scalar dividend.  | 
      
| IplImage | right | The image divisor.  | 
      
Returns
| Type | Description | 
|---|---|
| IplImage | The result of dividing   | 
      
ExclusiveOr(IplImage, IplImage)
Performs per-element bit-wise "exclusive or" operation on two IplImage values.
Declaration
public static IplImage operator ^(IplImage left, IplImage right)
  Parameters
| Type | Name | Description | 
|---|---|---|
| IplImage | left | The first image value.  | 
      
| IplImage | right | The second image value.  | 
      
Returns
| Type | Description | 
|---|---|
| IplImage | The result of performing the bit-wise "exclusive or" operation
of   | 
      
ExclusiveOr(IplImage, Scalar)
Declaration
public static IplImage operator ^(IplImage left, Scalar right)
  Parameters
| Type | Name | Description | 
|---|---|---|
| IplImage | left | The image value.  | 
      
| Scalar | right | The scalar value.  | 
      
Returns
| Type | Description | 
|---|---|
| IplImage | The result of performing the bit-wise "exclusive or" operation
of   | 
      
ExclusiveOr(IplImage, Double)
Performs per-element bit-wise "exclusive or" operation of a
IplImage and a 
Declaration
public static IplImage operator ^(IplImage left, double right)
  Parameters
| Type | Name | Description | 
|---|---|---|
| IplImage | left | The image value.  | 
      
| Double | right | The scalar value.  | 
      
Returns
| Type | Description | 
|---|---|
| IplImage | The result of performing the bit-wise "exclusive or" operation
of   | 
      
ExclusiveOr(Scalar, IplImage)
Declaration
public static IplImage operator ^(Scalar left, IplImage right)
  Parameters
| Type | Name | Description | 
|---|---|---|
| Scalar | left | The scalar value.  | 
      
| IplImage | right | The image value.  | 
      
Returns
| Type | Description | 
|---|---|
| IplImage | The result of performing the bit-wise "exclusive or" operation
of   | 
      
ExclusiveOr(Double, IplImage)
Performs per-element bit-wise "exclusive or" operation of a
Declaration
public static IplImage operator ^(double left, IplImage right)
  Parameters
| Type | Name | Description | 
|---|---|---|
| Double | left | The scalar value.  | 
      
| IplImage | right | The image value.  | 
      
Returns
| Type | Description | 
|---|---|
| IplImage | The result of performing the bit-wise "exclusive or" operation
of   | 
      
Explicit(IplImage to Mat)
Declaration
public static explicit operator Mat(IplImage image)
  Parameters
| Type | Name | Description | 
|---|---|---|
| IplImage | image | The image to convert.  | 
      
Returns
| Type | Description | 
|---|---|
| Mat | A Mat value of the same size and element type.  | 
      
Multiply(IplImage, IplImage)
Calculates the per-element product of two IplImage values.
Declaration
public static IplImage operator *(IplImage left, IplImage right)
  Parameters
| Type | Name | Description | 
|---|---|---|
| IplImage | left | The first value to multiply.  | 
      
| IplImage | right | The second value to multiply.  | 
      
Returns
| Type | Description | 
|---|---|
| IplImage | The result of multiplying   | 
      
Multiply(IplImage, Double)
Calculates the per-element product of a IplImage by a
Declaration
public static IplImage operator *(IplImage left, double right)
  Parameters
| Type | Name | Description | 
|---|---|---|
| IplImage | left | The image to multiply.  | 
      
| Double | right | The scalar value to multiply.  | 
      
Returns
| Type | Description | 
|---|---|
| IplImage | The result of multiplying   | 
      
Multiply(Double, IplImage)
Calculates the per-element product of a 
Declaration
public static IplImage operator *(double left, IplImage right)
  Parameters
| Type | Name | Description | 
|---|---|---|
| Double | left | The scalar value to multiply.  | 
      
| IplImage | right | The image to multiply.  | 
      
Returns
| Type | Description | 
|---|---|
| IplImage | The result of multiplying   | 
      
OnesComplement(IplImage)
Performs per-element bit-wise inversion of the specified IplImage value.
Declaration
public static IplImage operator ~(IplImage image)
  Parameters
| Type | Name | Description | 
|---|---|---|
| IplImage | image | The image to invert.  | 
      
Returns
| Type | Description | 
|---|---|
| IplImage | The result of bitwise inverting   | 
      
Subtraction(IplImage, IplImage)
Calculates the per-element difference between two IplImage values.
Declaration
public static IplImage operator -(IplImage left, IplImage right)
  Parameters
| Type | Name | Description | 
|---|---|---|
| IplImage | left | The minuend.  | 
      
| IplImage | right | The subtrahend.  | 
      
Returns
| Type | Description | 
|---|---|
| IplImage | The result of subtracting   | 
      
Subtraction(IplImage, Scalar)
Declaration
public static IplImage operator -(IplImage left, Scalar right)
  Parameters
| Type | Name | Description | 
|---|---|---|
| IplImage | left | The image minuend.  | 
      
| Scalar | right | The scalar subtrahend.  | 
      
Returns
| Type | Description | 
|---|---|
| IplImage | The result of subtracting   | 
      
Subtraction(IplImage, Double)
Calculates the per-element difference between a IplImage and a
Declaration
public static IplImage operator -(IplImage left, double right)
  Parameters
| Type | Name | Description | 
|---|---|---|
| IplImage | left | The image minuend.  | 
      
| Double | right | The scalar subtrahend.  | 
      
Returns
| Type | Description | 
|---|---|
| IplImage | The result of subtracting   | 
      
Subtraction(Scalar, IplImage)
Declaration
public static IplImage operator -(Scalar left, IplImage right)
  Parameters
| Type | Name | Description | 
|---|---|---|
| Scalar | left | The scalar minuend.  | 
      
| IplImage | right | The image subtrahend.  | 
      
Returns
| Type | Description | 
|---|---|
| IplImage | The result of subtracting   | 
      
Subtraction(Double, IplImage)
Subtracts every element of the specified IplImage value from a
Declaration
public static IplImage operator -(double left, IplImage right)
  Parameters
| Type | Name | Description | 
|---|---|---|
| Double | left | The scalar minuend.  | 
      
| IplImage | right | The image subtrahend.  | 
      
Returns
| Type | Description | 
|---|---|
| IplImage | The result of subtracting   | 
      
UnaryNegation(IplImage)
Negates the specified IplImage value.
Declaration
public static IplImage operator -(IplImage image)
  Parameters
| Type | Name | Description | 
|---|---|---|
| IplImage | image | The image to negate.  | 
      
Returns
| Type | Description | 
|---|---|
| IplImage | The result of   | 
      
UnaryPlus(IplImage)
Returns the IplImage value (the sign is unchanged).
Declaration
public static IplImage operator +(IplImage image)
  Parameters
| Type | Name | Description | 
|---|---|---|
| IplImage | image | The image to return.  | 
      
Returns
| Type | Description | 
|---|---|
| IplImage | The image   |