ALImage Class Reference

Inherits from NSObject
Declared in ALImage.h

Overview

The ALImage encapsulate the opencv image classes and methods.

  uiImage

The ALImage UIImage object.

@property (nonatomic, strong) UIImage *uiImage

Declared In

ALImage.h

– uiImageWithSpecOverlay:

Method draws the DisplaySpecs onto the ALImage and returns an UIImage. For debbugging purpose so you can see where we located the digits.

- (UIImage *)uiImageWithSpecOverlay:(ALROISpec *)displaySpec

Parameters

displaySpec

The Display specifications where to find, and how to interpret the digits.

Return Value

An UIImage with an overlay of all the digits and segments.

Discussion

Warning: Possible long task. Be aware when executed in Main Thread.

Declared In

ALImage.h

– uiImageWithDisplayResults:

Method draws the DisplaySpecs and DisplayResult onto the ALImage and returns an UIImage. For debbugging purpose so you can see where we located the digits and what results we computed.

- (UIImage *)uiImageWithDisplayResults:(ALDisplayResult *)displayResult

Parameters

displayResult

The Display result contains the computed result for every segment.

Return Value

An UIImage with an overlay of all the digits and segments.

Discussion

Warning: Possible long task. Be aware when executed in Main Thread.

Declared In

ALImage.h

– uiImageWithDigitOverlay:

Method draws one DigitSpec onto the ALImage and returns an UIImage. For debbugging purpose so you can see where we located the digit.

- (UIImage *)uiImageWithDigitOverlay:(ALDataPoint *)digitSpec

Parameters

digitSpec

A DigitSpec specification where the digit in the Image is found.

Return Value

An UIImage with an overlay of this DigitSpec.

Discussion

Warning: Possible long task. Be aware when executed in Main Thread.

Declared In

ALImage.h

– uiImageWithRectOverlay:

Method draws one CGRect onto the ALImage and returns an UIImage. For debbugging purpose so you can see where we located the digit.

- (UIImage *)uiImageWithRectOverlay:(CGRect)rectToDraw

Parameters

rectToDraw

A CGRect which will be drawn.

Return Value

An UIImage with an overlay of this CGRect.

Discussion

Warning: Possible long task. Be aware when executed in Main Thread.

Declared In

ALImage.h

– uiImageWithSquareOverlay:

Method draws one ALSquare onto the ALImage and returns an UIImage. For debbugging purpose so you can see where we located the digit.

- (UIImage *)uiImageWithSquareOverlay:(ALSquare *)square

Parameters

square

An ALSquare which will be drawn onto the Image.

Return Value

An UIImage with an overlay of the ALSquare.

Discussion

Warning: Possible long task. Be aware when executed in Main Thread.

Declared In

ALImage.h

– uiImageWithHorizontalLines:

Method draws horizontal lines onto the ALImage and returns an UIImage. For debbugging purpose so you can see where we located the digit.

- (UIImage *)uiImageWithHorizontalLines:(NSArray *)lines

Parameters

lines

An array with positions where to draw lines onto the Image.

Return Value

An UIImage with an overlay of the horizontal lines.

Discussion

Warning: Possible long task. Be aware when executed in Main Thread.

Declared In

ALImage.h

– uiImageWithVerticalLines:

Method draws vertical lines onto the ALImage and returns an UIImage. For debbugging purpose so you can see where we located the digit.

- (UIImage *)uiImageWithVerticalLines:(NSArray *)lines

Parameters

lines

An array with positions where to draw lines onto the Image.

Return Value

An UIImage with an overlay of the vertical lines.

Discussion

Warning: Possible long task. Be aware when executed in Main Thread.

Declared In

ALImage.h

– uiImageWithContours:

Method draws contours onto the ALImage and returns an UIImage. For debbugging purpose so you can see where we located the digit.

- (UIImage *)uiImageWithContours:(ALContours *)contours

Parameters

lines

An ALContours which will be drawn onto the Image.

Return Value

An UIImage with an overlay of the contours.

Discussion

Warning: Possible long task. Be aware when executed in Main Thread.

Declared In

ALImage.h

– initWithUIImage:

Initialise an ALImage with an UIImage.

- (instancetype)initWithUIImage:(UIImage *)uiImage

Parameters

uiImage

The UIImage to encapsulate.

Return Value

A new instance of ALImage.

Declared In

ALImage.h

– initWithBGRAImageBuffer:rotate:

Initialise an ALImage with an CVimageBufferRef.

- (instancetype)initWithBGRAImageBuffer:(CVImageBufferRef)imageBuffer rotate:(CGFloat)degrees

Parameters

imageBuffer

The CVImageBufferRef to encapsulate.

Return Value

A new instance of ALImage.

Declared In

ALImage.h

– initWithBGRAImageBuffer:rotate:cutout:

Initialise an ALImage with an CVimageBufferRef.

- (instancetype)initWithBGRAImageBuffer:(CVImageBufferRef)imageBuffer rotate:(CGFloat)degrees cutout:(CGRect)cutout

Parameters

imageBuffer

The CVImageBufferRef to encapsulate.

cutout

The cutout

Return Value

A new instance of ALImage.

Declared In

ALImage.h

– isEmpy

Checks wether the ALImage is empty.

- (BOOL)isEmpy

Return Value

YES/NO wether the ALImage is empty.

Declared In

ALImage.h