Class: OpenCV::Cv::SimpleBlobDetector::Params
- Inherits:
-
Object
- Object
- OpenCV::Cv::SimpleBlobDetector::Params
- Extended by:
- FFI::DataConverter
- Defined in:
- lib/ruby/ropencv/ropencv_types.rb
Instance Attribute Summary collapse
- #__obj_ptr__ ⇒ Object readonly private
Class Method Summary collapse
-
.from_native(ptr, context) ⇒ Object
private
can be overwritten by the user.
- .new(*args) ⇒ Object
- .rbind_from_native(ptr, context) ⇒ Object private
- .rbind_to_native(obj, context) ⇒ Object private
-
.to_native(obj, context) ⇒ Object
private
can be overwritten by the user.
Instance Method Summary collapse
-
#__owner__? ⇒ Boolean
private
returns true if the underlying pointer is owner of the real object.
-
#blob_color ⇒ Object
wrapper for uchar blobColor.
-
#blob_color=(value) ⇒ Object
wrapper for uchar blobColor.
-
#filter_by_area ⇒ Object
wrapper for bool filterByArea.
-
#filter_by_area=(value) ⇒ Object
wrapper for bool filterByArea.
-
#filter_by_circularity ⇒ Object
wrapper for bool filterByCircularity.
-
#filter_by_circularity=(value) ⇒ Object
wrapper for bool filterByCircularity.
-
#filter_by_color ⇒ Object
wrapper for bool filterByColor.
-
#filter_by_color=(value) ⇒ Object
wrapper for bool filterByColor.
-
#filter_by_convexity ⇒ Object
wrapper for bool filterByConvexity.
-
#filter_by_convexity=(value) ⇒ Object
wrapper for bool filterByConvexity.
-
#filter_by_inertia ⇒ Object
wrapper for bool filterByInertia.
-
#filter_by_inertia=(value) ⇒ Object
wrapper for bool filterByInertia.
-
#initialize(ptr) ⇒ Params
constructor
private
A new instance of Params.
-
#max_area ⇒ Object
wrapper for float maxArea.
-
#max_area=(value) ⇒ Object
wrapper for float maxArea.
-
#max_circularity ⇒ Object
wrapper for float maxCircularity.
-
#max_circularity=(value) ⇒ Object
wrapper for float maxCircularity.
-
#max_convexity ⇒ Object
wrapper for float maxConvexity.
-
#max_convexity=(value) ⇒ Object
wrapper for float maxConvexity.
-
#max_inertia_ratio ⇒ Object
wrapper for float maxInertiaRatio.
-
#max_inertia_ratio=(value) ⇒ Object
wrapper for float maxInertiaRatio.
-
#max_threshold ⇒ Object
wrapper for float maxThreshold.
-
#max_threshold=(value) ⇒ Object
wrapper for float maxThreshold.
-
#min_area ⇒ Object
wrapper for float minArea.
-
#min_area=(value) ⇒ Object
wrapper for float minArea.
-
#min_circularity ⇒ Object
wrapper for float minCircularity.
-
#min_circularity=(value) ⇒ Object
wrapper for float minCircularity.
-
#min_convexity ⇒ Object
wrapper for float minConvexity.
-
#min_convexity=(value) ⇒ Object
wrapper for float minConvexity.
-
#min_dist_between_blobs ⇒ Object
wrapper for float minDistBetweenBlobs.
-
#min_dist_between_blobs=(value) ⇒ Object
wrapper for float minDistBetweenBlobs.
-
#min_inertia_ratio ⇒ Object
wrapper for float minInertiaRatio.
-
#min_inertia_ratio=(value) ⇒ Object
wrapper for float minInertiaRatio.
-
#min_repeatability ⇒ Object
wrapper for size_t minRepeatability.
-
#min_repeatability=(value) ⇒ Object
wrapper for size_t minRepeatability.
-
#min_threshold ⇒ Object
wrapper for float minThreshold.
-
#min_threshold=(value) ⇒ Object
wrapper for float minThreshold.
-
#threshold_step ⇒ Object
methods wrapper for float thresholdStep.
-
#threshold_step=(value) ⇒ Object
wrapper for float thresholdStep.
Constructor Details
#initialize(ptr) ⇒ Params
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of Params.
10687 10688 10689 10690 10691 10692 10693 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 10687 def initialize(ptr) @__obj_ptr__ = if ptr.is_a? ParamsStruct ptr else ParamsStruct.new(FFI::AutoPointer.new(ptr,ParamsStruct.method(:release))) end end |
Instance Attribute Details
#__obj_ptr__ ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
10684 10685 10686 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 10684 def __obj_ptr__ @__obj_ptr__ end |
Class Method Details
.from_native(ptr, context) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
can be overwritten by the user
10679 10680 10681 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 10679 def self.from_native(ptr,context) rbind_from_native(ptr,context) end |
.new(*args) ⇒ Object
10636 10637 10638 10639 10640 10641 10642 10643 10644 10645 10646 10647 10648 10649 10650 10651 10652 10653 10654 10655 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 10636 def self.new(*args) if args.first.is_a?(FFI::Pointer) || args.first.is_a?(ParamsStruct) raise ArgumentError, "too many arguments for creating #{self.name} from Pointer" unless args.size == 1 return super(args.first) end # wrapper for cv::SimpleBlobDetector::Params::Params() @@cv_simple_blob_detector_params_params_defaults0 ||= [] if(args.size >= 0 && args.size <= 0) args.size.upto(-1) do |i| args[i] = @@cv_simple_blob_detector_params_params_defaults0[i] end begin return Rbind::cv_simple_blob_detector_params_params(*args) rescue TypeError => e @error = e end end raise ArgumentError, "no constructor for #{self}(#{args.inspect})" end |
.rbind_from_native(ptr, context) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
10667 10668 10669 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 10667 def self.rbind_from_native(ptr,context) Params.new(ptr) end |
.rbind_to_native(obj, context) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
10658 10659 10660 10661 10662 10663 10664 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 10658 def self.rbind_to_native(obj,context) if obj.is_a? Params obj.__obj_ptr__ else raise TypeError, "expected kind of #{name}, was #{obj.class}" end end |
.to_native(obj, context) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
can be overwritten by the user
10673 10674 10675 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 10673 def self.to_native(obj,context) rbind_to_native(obj,context) end |
Instance Method Details
#__owner__? ⇒ Boolean
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
returns true if the underlying pointer is owner of the real object
10698 10699 10700 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 10698 def __owner__? @__obj_ptr__[:bowner] end |
#blob_color ⇒ Object
wrapper for uchar blobColor
10772 10773 10774 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 10772 def blob_color() Rbind::cv_simple_blob_detector_params_get_blob_color( self) end |
#blob_color=(value) ⇒ Object
wrapper for uchar blobColor
10777 10778 10779 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 10777 def blob_color=(value) Rbind::cv_simple_blob_detector_params_set_blob_color( self, value) end |
#filter_by_area ⇒ Object
wrapper for bool filterByArea
10782 10783 10784 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 10782 def filter_by_area() Rbind::cv_simple_blob_detector_params_get_filter_by_area( self) end |
#filter_by_area=(value) ⇒ Object
wrapper for bool filterByArea
10787 10788 10789 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 10787 def filter_by_area=(value) Rbind::cv_simple_blob_detector_params_set_filter_by_area( self, value) end |
#filter_by_circularity ⇒ Object
wrapper for bool filterByCircularity
10812 10813 10814 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 10812 def filter_by_circularity() Rbind::cv_simple_blob_detector_params_get_filter_by_circularity( self) end |
#filter_by_circularity=(value) ⇒ Object
wrapper for bool filterByCircularity
10817 10818 10819 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 10817 def filter_by_circularity=(value) Rbind::cv_simple_blob_detector_params_set_filter_by_circularity( self, value) end |
#filter_by_color ⇒ Object
wrapper for bool filterByColor
10762 10763 10764 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 10762 def filter_by_color() Rbind::cv_simple_blob_detector_params_get_filter_by_color( self) end |
#filter_by_color=(value) ⇒ Object
wrapper for bool filterByColor
10767 10768 10769 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 10767 def filter_by_color=(value) Rbind::cv_simple_blob_detector_params_set_filter_by_color( self, value) end |
#filter_by_convexity ⇒ Object
wrapper for bool filterByConvexity
10872 10873 10874 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 10872 def filter_by_convexity() Rbind::cv_simple_blob_detector_params_get_filter_by_convexity( self) end |
#filter_by_convexity=(value) ⇒ Object
wrapper for bool filterByConvexity
10877 10878 10879 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 10877 def filter_by_convexity=(value) Rbind::cv_simple_blob_detector_params_set_filter_by_convexity( self, value) end |
#filter_by_inertia ⇒ Object
wrapper for bool filterByInertia
10842 10843 10844 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 10842 def filter_by_inertia() Rbind::cv_simple_blob_detector_params_get_filter_by_inertia( self) end |
#filter_by_inertia=(value) ⇒ Object
wrapper for bool filterByInertia
10847 10848 10849 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 10847 def filter_by_inertia=(value) Rbind::cv_simple_blob_detector_params_set_filter_by_inertia( self, value) end |
#max_area ⇒ Object
wrapper for float maxArea
10802 10803 10804 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 10802 def max_area() Rbind::cv_simple_blob_detector_params_get_max_area( self) end |
#max_area=(value) ⇒ Object
wrapper for float maxArea
10807 10808 10809 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 10807 def max_area=(value) Rbind::cv_simple_blob_detector_params_set_max_area( self, value) end |
#max_circularity ⇒ Object
wrapper for float maxCircularity
10832 10833 10834 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 10832 def max_circularity() Rbind::cv_simple_blob_detector_params_get_max_circularity( self) end |
#max_circularity=(value) ⇒ Object
wrapper for float maxCircularity
10837 10838 10839 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 10837 def max_circularity=(value) Rbind::cv_simple_blob_detector_params_set_max_circularity( self, value) end |
#max_convexity ⇒ Object
wrapper for float maxConvexity
10892 10893 10894 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 10892 def max_convexity() Rbind::cv_simple_blob_detector_params_get_max_convexity( self) end |
#max_convexity=(value) ⇒ Object
wrapper for float maxConvexity
10897 10898 10899 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 10897 def max_convexity=(value) Rbind::cv_simple_blob_detector_params_set_max_convexity( self, value) end |
#max_inertia_ratio ⇒ Object
wrapper for float maxInertiaRatio
10862 10863 10864 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 10862 def max_inertia_ratio() Rbind::cv_simple_blob_detector_params_get_max_inertia_ratio( self) end |
#max_inertia_ratio=(value) ⇒ Object
wrapper for float maxInertiaRatio
10867 10868 10869 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 10867 def max_inertia_ratio=(value) Rbind::cv_simple_blob_detector_params_set_max_inertia_ratio( self, value) end |
#max_threshold ⇒ Object
wrapper for float maxThreshold
10732 10733 10734 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 10732 def max_threshold() Rbind::cv_simple_blob_detector_params_get_max_threshold( self) end |
#max_threshold=(value) ⇒ Object
wrapper for float maxThreshold
10737 10738 10739 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 10737 def max_threshold=(value) Rbind::cv_simple_blob_detector_params_set_max_threshold( self, value) end |
#min_area ⇒ Object
wrapper for float minArea
10792 10793 10794 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 10792 def min_area() Rbind::cv_simple_blob_detector_params_get_min_area( self) end |
#min_area=(value) ⇒ Object
wrapper for float minArea
10797 10798 10799 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 10797 def min_area=(value) Rbind::cv_simple_blob_detector_params_set_min_area( self, value) end |
#min_circularity ⇒ Object
wrapper for float minCircularity
10822 10823 10824 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 10822 def min_circularity() Rbind::cv_simple_blob_detector_params_get_min_circularity( self) end |
#min_circularity=(value) ⇒ Object
wrapper for float minCircularity
10827 10828 10829 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 10827 def min_circularity=(value) Rbind::cv_simple_blob_detector_params_set_min_circularity( self, value) end |
#min_convexity ⇒ Object
wrapper for float minConvexity
10882 10883 10884 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 10882 def min_convexity() Rbind::cv_simple_blob_detector_params_get_min_convexity( self) end |
#min_convexity=(value) ⇒ Object
wrapper for float minConvexity
10887 10888 10889 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 10887 def min_convexity=(value) Rbind::cv_simple_blob_detector_params_set_min_convexity( self, value) end |
#min_dist_between_blobs ⇒ Object
wrapper for float minDistBetweenBlobs
10752 10753 10754 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 10752 def min_dist_between_blobs() Rbind::cv_simple_blob_detector_params_get_min_dist_between_blobs( self) end |
#min_dist_between_blobs=(value) ⇒ Object
wrapper for float minDistBetweenBlobs
10757 10758 10759 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 10757 def min_dist_between_blobs=(value) Rbind::cv_simple_blob_detector_params_set_min_dist_between_blobs( self, value) end |
#min_inertia_ratio ⇒ Object
wrapper for float minInertiaRatio
10852 10853 10854 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 10852 def min_inertia_ratio() Rbind::cv_simple_blob_detector_params_get_min_inertia_ratio( self) end |
#min_inertia_ratio=(value) ⇒ Object
wrapper for float minInertiaRatio
10857 10858 10859 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 10857 def min_inertia_ratio=(value) Rbind::cv_simple_blob_detector_params_set_min_inertia_ratio( self, value) end |
#min_repeatability ⇒ Object
wrapper for size_t minRepeatability
10742 10743 10744 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 10742 def min_repeatability() Rbind::cv_simple_blob_detector_params_get_min_repeatability( self) end |
#min_repeatability=(value) ⇒ Object
wrapper for size_t minRepeatability
10747 10748 10749 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 10747 def min_repeatability=(value) Rbind::cv_simple_blob_detector_params_set_min_repeatability( self, value) end |
#min_threshold ⇒ Object
wrapper for float minThreshold
10722 10723 10724 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 10722 def min_threshold() Rbind::cv_simple_blob_detector_params_get_min_threshold( self) end |
#min_threshold=(value) ⇒ Object
wrapper for float minThreshold
10727 10728 10729 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 10727 def min_threshold=(value) Rbind::cv_simple_blob_detector_params_set_min_threshold( self, value) end |
#threshold_step ⇒ Object
methods wrapper for float thresholdStep
10712 10713 10714 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 10712 def threshold_step() Rbind::cv_simple_blob_detector_params_get_threshold_step( self) end |
#threshold_step=(value) ⇒ Object
wrapper for float thresholdStep
10717 10718 10719 |
# File 'lib/ruby/ropencv/ropencv_types.rb', line 10717 def threshold_step=(value) Rbind::cv_simple_blob_detector_params_set_threshold_step( self, value) end |