Lynkeos
1.2
|
Threadable wrapper class for image list processing. More...
#import <MyListProcessing.h>
Public Member Functions | |
(oneway void) | - stopProcessing |
Static Public Member Functions | |
(void) | + threadWithAttributes: |
Thread creation. | |
Protected Attributes | |
MyIntegerRect | _cropRectangle |
id | _delegate |
NSEnumerator * | _list |
RGB * | _darkFrame |
RGB * | _flatField |
bool | _processEnded |
NSData * | _result |
Threadable wrapper class for image list processing.
It provides the thread environment to run legacy C routines dedicated to image processing.
The objects arguments to thread messages are passed by address inside a NSData because we need the real object, not a proxy (it was never meant to be a distributed application ;o).
The thread is created when the processing is started. It is done this way to ensure that the best processor is selected. Were the thread created at document opening, the load would vary on the processor where the thread runs, and could be unfavorable when a processing really starts.
- (void) stopProcessing |
References _processEnded.
+ (void) threadWithAttributes: | (NSDictionary*) | attr |
Thread creation.
attr | Thread attributes : communication ports in a dictionary |
This method creates the thread, establishes the connection with the calling thread, starts a run loop and handle its autorelease pool.
- (MyIntegerRect) _cropRectangle [protected] |
Referenced by MyImageAligner::alignWithList:reference:refBuffer:lock:darkFrame:flatField:rectangle:cutOff:precisionThreshold:, MyImageAnalyzer::analyzeWithList:darkFrame:flatField:rectangle:method:lowCutoff:highCutoff:, MyListProcessing(Private)::initWithDelegate:, and MyImageStack::stackWithList:darkFrame:flatField:rectangle:sizeFactor:.
- (RGB*) _darkFrame [protected] |
- (id) _delegate [protected] |
- (RGB*) _flatField [protected] |
- (NSEnumerator*) _list [protected] |
Referenced by MyListProcessing(Private)::initWithDelegate:, and MyListProcessing(Private)::processList.
- (bool) _processEnded [protected] |
- (NSData*) _result [protected] |