ShipFastOp.h
1 
23 #ifndef RACK_SHIPFASTOP_H_
24 #define RACK_SHIPFASTOP_H_
25 
26 #include "andre/DetectorOp.h"
27 
28 /*
29 #include "drain/image/SlidingWindowMedianOp.h"
30 
31 #include "drain/image/FastAverageOp.h"
32 #include "drain/image/HighPassOp.h"
33 #include "drain/image/SegmentAreaOp.h"
34 #include "drain/image/RunLengthOp.h"
35 #include "drain/image/BasicOps.h"
36 
37 
38 #include "drain/image/DistanceTransformOp.h"
39 #include "drain/image/FuzzyOp.h"
40 */
41 // temp
42 //#include "drain/radar/Andre.h"
43 
44 
45 using namespace drain::image;
46 
47 
48 namespace rack {
49 
51 
54 class ShipFastOp: public DetectorOp {
55 public:
56 
57 
58  //AnoRackShipFastOp(const std::string & p = "1,255,f,128,0") :
59  // DetectorOp("SegmentArea","Computes sizes of segments with intensity within [min,max] and marks them in dst image. Mapping (d|i|b:128|f:128:1) - direct, inverse,bilinearly scaled, fuzzy, inverse size.",
60  // "min,max,mapping,mSlope,mPos",p) {
61  ShipFastOp(const std::string &p ="") : DetectorOp("ShipFastOp","Detects ships.") {
62  //"scale=5.0,bias=0.0[prob]") {
63  parameters.link("windowWidth", windowWidth = 2000);
64  parameters.link("windowHeight", windowHeight = 1);
65  parameters.link("sensitivity", sensitivity = 0.5f);
66  };
67 
68  int windowWidth;
69  int windowHeight;
70  float sensitivity;
71  //float scale;
72  //float bias;
73 
74 protected:
75 
76  virtual
77  void filterImage(const Image &src, Image &dst) const;
78 
79 };
80 
81 
82 } // rack::
83 
84 #endif /* POLARTOCARTESIANOP_H_ */
Class for multi-channel digital images. Supports dynamic typing with base types (char,...
Definition: Image.h:184
Base class for anomaly detectors.
Definition: DetectorOp.h:49
Detects ships.
Definition: ShipFastOp.h:54
Namespace for images and image processing tools.
Definition: AccumulationArray.cpp:45
Definition: DataSelector.cpp:44