isce3 0.25.0
Loading...
Searching...
No Matches
ChangeDetector.h
1// Copyright (c) 2017-, California Institute of Technology ("Caltech"). U.S.
2// Government sponsorship acknowledged.
3// All rights reserved.
4//
5// Author(s):
6//
7// ----------------------------------------------------------------------------
8// Author: Xiaoqing Wu
9
10#pragma once
11
12#include "Point.h"
13#include "constants.h"
14#include "DataPatch.h"
15#include <complex>
16#include <list>
17#include <set>
18#include <queue>
19#include <vector>
20
21using namespace std;
22
23class ChangeDetector {
24 DataPatch<float> *data_patch;
25 DataPatch<unsigned char> *change_patch;
26 void calculate();
27
28 public:
29 int nr_lines;
30 int nr_pixels;
31 float no_data;
32
33 int change_type; // 0: ratio; 1: difference
34 float change_th;
35
36 int window_size; // default 3;
37 int iterations; // default 3
38 int max_change;
39
40 void basic_init();
41 ~ChangeDetector();
42 ChangeDetector(int nr_lines, int nr_pixels, float no_data, DataPatch<float> *data_patch,
43 int change_type, float change_th, int window, int iter);
44
45 unsigned char **get_change_data() { return change_patch->get_data_lines_ptr(); }
46 float **get_data() { return data_patch->get_data_lines_ptr(); }
47
48};
Definition DataPatch.h:28

Generated for ISCE3.0 by doxygen 1.13.2.