pull/39/head
jaco 11 years ago
parent fc7a49c3bf
commit 91f8d822f5
  1. 2
      modules/saliency/CMakeLists.txt
  2. 75
      modules/saliency/doc/misc/Saliency.txt
  3. BIN
      modules/saliency/doc/pics/Saliency.png

@ -1,2 +1,2 @@
set(the_description "Saliency API")
ocv_define_module(saliency opencv_imgproc opencv_optim)
ocv_define_module(saliency)

@ -0,0 +1,75 @@
@startuml
class Algorithm {
}
class Saliency{
String className;
---
+static Ptr<Saliency> create( const String& saliencyType )
+bool computeSaliency( const Mat& image, Mat& saliencyMap );
+String getClassName() const;
}
class Saliency
note right: Saliency is the general interface for each specialized saliency category
class StaticSaliency{
+Params
---
+bool computeSaliency( const Mat& image, Mat& saliencyMap );
}
class MotionSaliency{
+Params
---
+bool computeSaliency( const Mat& image, Mat& saliencyMap );
}
class Objectness{
+Params
---
+bool computeSaliency( const Mat& image, Mat& saliencyMap );
}
class StaticSaliencySpectralResidual{
+Params
---
StaticSaliencySpectralResidual( const SaliencySpectralResidual::Params &parameters);
+bool computeSaliency( const Mat& image, Mat& saliencyMap );
}
class MotionSaliencyPBAS{
+Params
---
MotionSaliencyPBAS();
+bool computeSaliency( const Mat& image, Mat& saliencyMap );
}
class ObjectnessBING{
+Params
---
ObjectnessBING();
+bool computeSaliency( const Mat& image, Mat& saliencyMap );
}
Algorithm <|-- Saliency : virtual inheritance
Saliency <|-- StaticSaliency : virtual inheritance
Saliency <|-- MotionSaliency : virtual inheritance
Saliency <|-- Objectness : virtual inheritance
StaticSaliency <|-- StaticSaliencySpectralResidual
MotionSaliency <|-- MotionSaliencyPBAS
Objectness <|-- ObjectnessBING
note "Single instance of the Static Saliency" as N1
note "Single instance of the Motion Saliency" as N2
note "Single instance of the Objectness" as N3
StaticSaliencySpectralResidual .. N1
MotionSaliencyPBAS .. N2
ObjectnessBING .. N3
note "General interface for each specialized type of saliency algorithm" as N4
StaticSaliency .. N4
MotionSaliency .. N4
Objectness .. N4
@enduml

Binary file not shown.

After

Width:  |  Height:  |  Size: 54 KiB

Loading…
Cancel
Save