Extract the content of an aoi (area of interest) into a new image.
Namespace: Stemmer.Cvb.Foundation
Assembly: Stemmer.Cvb.Foundation (in Stemmer.Cvb.Foundation.dll) Version: 14.0.0.0
Syntax
public static Image SubImage( this Image img, Area2D aoi, Interpolation interpolation )
Parameters
- img
- Type: Stemmer.CvbImage
Image to work from. - aoi
- Type: Stemmer.CvbArea2D
Area of interest to be extracted. - interpolation
- Type: Stemmer.Cvb.FoundationInterpolation
Interpolation mode to be used.
Return Value
Type: ImageNew image of the subregion.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type Image. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).Exceptions
Exception | Condition |
---|---|
ArgumentNullException | If the input img is null |
ObjectDisposedException | If the input img has already been disposed |
See Also