isce3 0.25.0
Loading...
Searching...
No Matches
CannyEdgeDetector.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 CannyEdgeDetector {
24 //DataPatch<float> *data_patch;
25 //DataPatch<float> *edge_patch;
26 float **edge;
27 void calculate(float **data);
28
29 public:
30 int nr_lines;
31 int nr_pixels;
32 float no_data;
33
34 float low_th;
35 float high_th;
36
37 int gw_size; // gaussian window size default 7;
38 double gw_sigma; // default 1
39
40 void basic_init();
41 ~CannyEdgeDetector();
42 CannyEdgeDetector(int nr_lines, int nr_pixels, float no_data, float **data,
43 float low, float high, int gw, double gw_sigma);
44
45 float **get_edge() { return edge; }
46// float **get_data() { return data_patch->get_data_lines_ptr(); }
47
48};

Generated for ISCE3.0 by doxygen 1.13.2.