-
Notifications
You must be signed in to change notification settings - Fork 94
Expand file tree
/
Copy pathFillCriticalFramesJob.h
More file actions
48 lines (38 loc) · 1000 Bytes
/
Copy pathFillCriticalFramesJob.h
File metadata and controls
48 lines (38 loc) · 1000 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/* Copyright (C) 2010 Ion Torrent Systems, Inc. All Rights Reserved */
#ifndef FILLCRITICALFRAMESJOB_H
#define FILLCRITICALFRAMESJOB_H
#include <vector>
#include <string>
#include <stdio.h>
#include "PJob.h"
#include "Traces.h"
#include "Mask.h"
#include "Image.h"
#include "ReportSet.h"
class FillCriticalFramesJob : public PJob {
public:
FillCriticalFramesJob() {
mTrace = NULL;
mRegionXSize = mRegionYSize = 0;
}
void Init(Traces *trace, int regionXSize, int regionYSize) {
mTrace = trace;
mRegionXSize = regionXSize;
mRegionYSize = regionYSize;
}
/** Process work. */
virtual void Run() {
mTrace->FillCriticalFrames();
mTrace->CalcReference(mRegionXSize,mRegionYSize,mTrace->mGridMedian);
}
/** Cleanup any resources. */
virtual void TearDown() {}
/** Exit this pthread (killing thread) */
void Exit() {
pthread_exit(NULL);
}
private:
Traces *mTrace;
int mRegionXSize, mRegionYSize;
};
#endif // FILLCRITICALFRAMESJOB_H