Skip to content

Latest commit

 

History

History
40 lines (23 loc) · 1.61 KB

EMCVImage.md

File metadata and controls

40 lines (23 loc) · 1.61 KB

EMCVImage

A wrapped image class. The default color format should be BGR when image opened from file.

  • [ObjC]: Means this property or method can be used on Objective-C.
  • [ObjC++]: Means this property or method can only be used on Objective-C++.

Super: [EMCVBasicImage]

See: [EMCVSplitedImage] [EMCVSingleImage]

Property

empty.

Instance Method

Initialization

  • [ObjC]: initWithPath: Open a local image file with a NSString path.
  • [ObjC]: initWithBasicImage: Init a instance with a EMCVBasicImage. It'll copy memory.
  • [ObjC]: initWithBasicImageWithNoCopy: Init a instance with a EMCVBasicImage. It'll not copy memory.
  • [ObjC]: initWithCVSingleImage: Init a instance with a EMCVSingleImage instance. Means to init a single channal image.
  • [ObjC]: initWithCVSplitedImage: Init a instance with a EMCVSpritedImage instance.

Others

  • [ObjC]: forEachPixelWithBlock: Enumerate each pixel and run a block with pixel's memory pointer.
  • [ObjC]: forEachPixelAtX:andY:withBlock: Run a block with the specified pixel's memory pointer.
  • [ObjC]: makeACopy: Make a copy. It will copy memory.
  • [ObjC]: newCannyWithThresh1:andThresh2: Canny. Create a new EMCVImage instance and draw Canny image on it.
  • [ObjC]: cannyOnImage:WithThresh1:andThresh2: Canny. Draw Canny image on a specified image.

Class Method

empty