Class: OpenCV::Cv::SimpleBlobDetector::Params
- Inherits:
-
Object
- Object
- OpenCV::Cv::SimpleBlobDetector::Params
- Extended by:
- FFI::DataConverter
- Defined in:
- lib/ropencv/ropencv_types.rb
Class Method Summary collapse
- .new(*args) ⇒ Object
-
.null ⇒ Object
returns a null pointer to the object.
Instance Method Summary collapse
- #blob_color ⇒ Uchar (also: #get_blobColor)
- #blob_color=(value) ⇒ Void (also: #set_blobColor)
- #filter_by_area ⇒ Bool (also: #get_filterByArea)
- #filter_by_area=(value) ⇒ Void (also: #set_filterByArea)
- #filter_by_circularity ⇒ Bool (also: #get_filterByCircularity)
- #filter_by_circularity=(value) ⇒ Void (also: #set_filterByCircularity)
- #filter_by_color ⇒ Bool (also: #get_filterByColor)
- #filter_by_color=(value) ⇒ Void (also: #set_filterByColor)
- #filter_by_convexity ⇒ Bool (also: #get_filterByConvexity)
- #filter_by_convexity=(value) ⇒ Void (also: #set_filterByConvexity)
- #filter_by_inertia ⇒ Bool (also: #get_filterByInertia)
- #filter_by_inertia=(value) ⇒ Void (also: #set_filterByInertia)
- #max_area ⇒ Float (also: #get_maxArea)
- #max_area=(value) ⇒ Void (also: #set_maxArea)
- #max_circularity ⇒ Float (also: #get_maxCircularity)
- #max_circularity=(value) ⇒ Void (also: #set_maxCircularity)
- #max_convexity ⇒ Float (also: #get_maxConvexity)
- #max_convexity=(value) ⇒ Void (also: #set_maxConvexity)
- #max_inertia_ratio ⇒ Float (also: #get_maxInertiaRatio)
- #max_inertia_ratio=(value) ⇒ Void (also: #set_maxInertiaRatio)
- #max_threshold ⇒ Float (also: #get_maxThreshold)
- #max_threshold=(value) ⇒ Void (also: #set_maxThreshold)
- #min_area ⇒ Float (also: #get_minArea)
- #min_area=(value) ⇒ Void (also: #set_minArea)
- #min_circularity ⇒ Float (also: #get_minCircularity)
- #min_circularity=(value) ⇒ Void (also: #set_minCircularity)
- #min_convexity ⇒ Float (also: #get_minConvexity)
- #min_convexity=(value) ⇒ Void (also: #set_minConvexity)
- #min_dist_between_blobs ⇒ Float (also: #get_minDistBetweenBlobs)
- #min_dist_between_blobs=(value) ⇒ Void (also: #set_minDistBetweenBlobs)
- #min_inertia_ratio ⇒ Float (also: #get_minInertiaRatio)
- #min_inertia_ratio=(value) ⇒ Void (also: #set_minInertiaRatio)
- #min_repeatability ⇒ Size_T (also: #get_minRepeatability)
- #min_repeatability=(value) ⇒ Void (also: #set_minRepeatability)
- #min_threshold ⇒ Float (also: #get_minThreshold)
- #min_threshold=(value) ⇒ Void (also: #set_minThreshold)
-
#threshold_step ⇒ Float
(also: #get_thresholdStep)
methods.
- #threshold_step=(value) ⇒ Void (also: #set_thresholdStep)
-
#to_s ⇒ Object
converts Params into a string by crawling through all its attributes.
Class Method Details
.new(*args) ⇒ Object
23587 23588 23589 23590 23591 23592 23593 23594 23595 23596 23597 23598 23599 23600 23601 23602 23603 23604 23605 23606 23607 |
# File 'lib/ropencv/ropencv_types.rb', line 23587 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 # overloaded method wrapper for cv::SimpleBlobDetector::Params::Params() @@cv_simple_blob_detector_params_params_defaults0 ||= [] if(args.size >= 0 && args.size <= 0) targs = args.clone targs.size.upto(-1) do |i| targs[i] = @@cv_simple_blob_detector_params_params_defaults0[i] end begin return Rbind::cv_simple_blob_detector_params_params(*targs) rescue TypeError => e @error = e end end raise ArgumentError, "no constructor for #{self}(#{args.inspect})" end |
.null ⇒ Object
returns a null pointer to the object
23583 23584 23585 |
# File 'lib/ropencv/ropencv_types.rb', line 23583 def self.null new(ParamsStruct.new) end |
Instance Method Details
#blob_color ⇒ Uchar Also known as: get_blobColor
method wrapper for uchar blobColor
23786 23787 23788 23789 |
# File 'lib/ropencv/ropencv_types.rb', line 23786 def blob_color() __validate_pointer__ Rbind::cv_simple_blob_detector_params_get_blob_color( self) end |
#blob_color=(value) ⇒ Void Also known as: set_blobColor
method wrapper for uchar blobColor
23795 23796 23797 23798 |
# File 'lib/ropencv/ropencv_types.rb', line 23795 def blob_color=(value) __validate_pointer__ Rbind::cv_simple_blob_detector_params_set_blob_color( self, value) end |
#filter_by_area ⇒ Bool Also known as: get_filterByArea
method wrapper for bool filterByArea
23803 23804 23805 23806 |
# File 'lib/ropencv/ropencv_types.rb', line 23803 def filter_by_area() __validate_pointer__ Rbind::cv_simple_blob_detector_params_get_filter_by_area( self) end |
#filter_by_area=(value) ⇒ Void Also known as: set_filterByArea
method wrapper for bool filterByArea
23812 23813 23814 23815 |
# File 'lib/ropencv/ropencv_types.rb', line 23812 def filter_by_area=(value) __validate_pointer__ Rbind::cv_simple_blob_detector_params_set_filter_by_area( self, value) end |
#filter_by_circularity ⇒ Bool Also known as: get_filterByCircularity
method wrapper for bool filterByCircularity
23854 23855 23856 23857 |
# File 'lib/ropencv/ropencv_types.rb', line 23854 def filter_by_circularity() __validate_pointer__ Rbind::cv_simple_blob_detector_params_get_filter_by_circularity( self) end |
#filter_by_circularity=(value) ⇒ Void Also known as: set_filterByCircularity
method wrapper for bool filterByCircularity
23863 23864 23865 23866 |
# File 'lib/ropencv/ropencv_types.rb', line 23863 def filter_by_circularity=(value) __validate_pointer__ Rbind::cv_simple_blob_detector_params_set_filter_by_circularity( self, value) end |
#filter_by_color ⇒ Bool Also known as: get_filterByColor
method wrapper for bool filterByColor
23769 23770 23771 23772 |
# File 'lib/ropencv/ropencv_types.rb', line 23769 def filter_by_color() __validate_pointer__ Rbind::cv_simple_blob_detector_params_get_filter_by_color( self) end |
#filter_by_color=(value) ⇒ Void Also known as: set_filterByColor
method wrapper for bool filterByColor
23778 23779 23780 23781 |
# File 'lib/ropencv/ropencv_types.rb', line 23778 def filter_by_color=(value) __validate_pointer__ Rbind::cv_simple_blob_detector_params_set_filter_by_color( self, value) end |
#filter_by_convexity ⇒ Bool Also known as: get_filterByConvexity
method wrapper for bool filterByConvexity
23956 23957 23958 23959 |
# File 'lib/ropencv/ropencv_types.rb', line 23956 def filter_by_convexity() __validate_pointer__ Rbind::cv_simple_blob_detector_params_get_filter_by_convexity( self) end |
#filter_by_convexity=(value) ⇒ Void Also known as: set_filterByConvexity
method wrapper for bool filterByConvexity
23965 23966 23967 23968 |
# File 'lib/ropencv/ropencv_types.rb', line 23965 def filter_by_convexity=(value) __validate_pointer__ Rbind::cv_simple_blob_detector_params_set_filter_by_convexity( self, value) end |
#filter_by_inertia ⇒ Bool Also known as: get_filterByInertia
method wrapper for bool filterByInertia
23905 23906 23907 23908 |
# File 'lib/ropencv/ropencv_types.rb', line 23905 def filter_by_inertia() __validate_pointer__ Rbind::cv_simple_blob_detector_params_get_filter_by_inertia( self) end |
#filter_by_inertia=(value) ⇒ Void Also known as: set_filterByInertia
method wrapper for bool filterByInertia
23914 23915 23916 23917 |
# File 'lib/ropencv/ropencv_types.rb', line 23914 def filter_by_inertia=(value) __validate_pointer__ Rbind::cv_simple_blob_detector_params_set_filter_by_inertia( self, value) end |
#max_area ⇒ Float Also known as: get_maxArea
method wrapper for float maxArea
23837 23838 23839 23840 |
# File 'lib/ropencv/ropencv_types.rb', line 23837 def max_area() __validate_pointer__ Rbind::cv_simple_blob_detector_params_get_max_area( self) end |
#max_area=(value) ⇒ Void Also known as: set_maxArea
method wrapper for float maxArea
23846 23847 23848 23849 |
# File 'lib/ropencv/ropencv_types.rb', line 23846 def max_area=(value) __validate_pointer__ Rbind::cv_simple_blob_detector_params_set_max_area( self, value) end |
#max_circularity ⇒ Float Also known as: get_maxCircularity
method wrapper for float maxCircularity
23888 23889 23890 23891 |
# File 'lib/ropencv/ropencv_types.rb', line 23888 def max_circularity() __validate_pointer__ Rbind::cv_simple_blob_detector_params_get_max_circularity( self) end |
#max_circularity=(value) ⇒ Void Also known as: set_maxCircularity
method wrapper for float maxCircularity
23897 23898 23899 23900 |
# File 'lib/ropencv/ropencv_types.rb', line 23897 def max_circularity=(value) __validate_pointer__ Rbind::cv_simple_blob_detector_params_set_max_circularity( self, value) end |
#max_convexity ⇒ Float Also known as: get_maxConvexity
method wrapper for float maxConvexity
23990 23991 23992 23993 |
# File 'lib/ropencv/ropencv_types.rb', line 23990 def max_convexity() __validate_pointer__ Rbind::cv_simple_blob_detector_params_get_max_convexity( self) end |
#max_convexity=(value) ⇒ Void Also known as: set_maxConvexity
method wrapper for float maxConvexity
23999 24000 24001 24002 |
# File 'lib/ropencv/ropencv_types.rb', line 23999 def max_convexity=(value) __validate_pointer__ Rbind::cv_simple_blob_detector_params_set_max_convexity( self, value) end |
#max_inertia_ratio ⇒ Float Also known as: get_maxInertiaRatio
method wrapper for float maxInertiaRatio
23939 23940 23941 23942 |
# File 'lib/ropencv/ropencv_types.rb', line 23939 def max_inertia_ratio() __validate_pointer__ Rbind::cv_simple_blob_detector_params_get_max_inertia_ratio( self) end |
#max_inertia_ratio=(value) ⇒ Void Also known as: set_maxInertiaRatio
method wrapper for float maxInertiaRatio
23948 23949 23950 23951 |
# File 'lib/ropencv/ropencv_types.rb', line 23948 def max_inertia_ratio=(value) __validate_pointer__ Rbind::cv_simple_blob_detector_params_set_max_inertia_ratio( self, value) end |
#max_threshold ⇒ Float Also known as: get_maxThreshold
method wrapper for float maxThreshold
23718 23719 23720 23721 |
# File 'lib/ropencv/ropencv_types.rb', line 23718 def max_threshold() __validate_pointer__ Rbind::cv_simple_blob_detector_params_get_max_threshold( self) end |
#max_threshold=(value) ⇒ Void Also known as: set_maxThreshold
method wrapper for float maxThreshold
23727 23728 23729 23730 |
# File 'lib/ropencv/ropencv_types.rb', line 23727 def max_threshold=(value) __validate_pointer__ Rbind::cv_simple_blob_detector_params_set_max_threshold( self, value) end |
#min_area ⇒ Float Also known as: get_minArea
method wrapper for float minArea
23820 23821 23822 23823 |
# File 'lib/ropencv/ropencv_types.rb', line 23820 def min_area() __validate_pointer__ Rbind::cv_simple_blob_detector_params_get_min_area( self) end |
#min_area=(value) ⇒ Void Also known as: set_minArea
method wrapper for float minArea
23829 23830 23831 23832 |
# File 'lib/ropencv/ropencv_types.rb', line 23829 def min_area=(value) __validate_pointer__ Rbind::cv_simple_blob_detector_params_set_min_area( self, value) end |
#min_circularity ⇒ Float Also known as: get_minCircularity
method wrapper for float minCircularity
23871 23872 23873 23874 |
# File 'lib/ropencv/ropencv_types.rb', line 23871 def min_circularity() __validate_pointer__ Rbind::cv_simple_blob_detector_params_get_min_circularity( self) end |
#min_circularity=(value) ⇒ Void Also known as: set_minCircularity
method wrapper for float minCircularity
23880 23881 23882 23883 |
# File 'lib/ropencv/ropencv_types.rb', line 23880 def min_circularity=(value) __validate_pointer__ Rbind::cv_simple_blob_detector_params_set_min_circularity( self, value) end |
#min_convexity ⇒ Float Also known as: get_minConvexity
method wrapper for float minConvexity
23973 23974 23975 23976 |
# File 'lib/ropencv/ropencv_types.rb', line 23973 def min_convexity() __validate_pointer__ Rbind::cv_simple_blob_detector_params_get_min_convexity( self) end |
#min_convexity=(value) ⇒ Void Also known as: set_minConvexity
method wrapper for float minConvexity
23982 23983 23984 23985 |
# File 'lib/ropencv/ropencv_types.rb', line 23982 def min_convexity=(value) __validate_pointer__ Rbind::cv_simple_blob_detector_params_set_min_convexity( self, value) end |
#min_dist_between_blobs ⇒ Float Also known as: get_minDistBetweenBlobs
method wrapper for float minDistBetweenBlobs
23752 23753 23754 23755 |
# File 'lib/ropencv/ropencv_types.rb', line 23752 def min_dist_between_blobs() __validate_pointer__ Rbind::cv_simple_blob_detector_params_get_min_dist_between_blobs( self) end |
#min_dist_between_blobs=(value) ⇒ Void Also known as: set_minDistBetweenBlobs
method wrapper for float minDistBetweenBlobs
23761 23762 23763 23764 |
# File 'lib/ropencv/ropencv_types.rb', line 23761 def min_dist_between_blobs=(value) __validate_pointer__ Rbind::cv_simple_blob_detector_params_set_min_dist_between_blobs( self, value) end |
#min_inertia_ratio ⇒ Float Also known as: get_minInertiaRatio
method wrapper for float minInertiaRatio
23922 23923 23924 23925 |
# File 'lib/ropencv/ropencv_types.rb', line 23922 def min_inertia_ratio() __validate_pointer__ Rbind::cv_simple_blob_detector_params_get_min_inertia_ratio( self) end |
#min_inertia_ratio=(value) ⇒ Void Also known as: set_minInertiaRatio
method wrapper for float minInertiaRatio
23931 23932 23933 23934 |
# File 'lib/ropencv/ropencv_types.rb', line 23931 def min_inertia_ratio=(value) __validate_pointer__ Rbind::cv_simple_blob_detector_params_set_min_inertia_ratio( self, value) end |
#min_repeatability ⇒ Size_T Also known as: get_minRepeatability
method wrapper for size_t minRepeatability
23735 23736 23737 23738 |
# File 'lib/ropencv/ropencv_types.rb', line 23735 def min_repeatability() __validate_pointer__ Rbind::cv_simple_blob_detector_params_get_min_repeatability( self) end |
#min_repeatability=(value) ⇒ Void Also known as: set_minRepeatability
method wrapper for size_t minRepeatability
23744 23745 23746 23747 |
# File 'lib/ropencv/ropencv_types.rb', line 23744 def min_repeatability=(value) __validate_pointer__ Rbind::cv_simple_blob_detector_params_set_min_repeatability( self, value) end |
#min_threshold ⇒ Float Also known as: get_minThreshold
method wrapper for float minThreshold
23701 23702 23703 23704 |
# File 'lib/ropencv/ropencv_types.rb', line 23701 def min_threshold() __validate_pointer__ Rbind::cv_simple_blob_detector_params_get_min_threshold( self) end |
#min_threshold=(value) ⇒ Void Also known as: set_minThreshold
method wrapper for float minThreshold
23710 23711 23712 23713 |
# File 'lib/ropencv/ropencv_types.rb', line 23710 def min_threshold=(value) __validate_pointer__ Rbind::cv_simple_blob_detector_params_set_min_threshold( self, value) end |
#threshold_step ⇒ Float Also known as: get_thresholdStep
method wrapper for float thresholdStep
methods
23684 23685 23686 23687 |
# File 'lib/ropencv/ropencv_types.rb', line 23684 def threshold_step() __validate_pointer__ Rbind::cv_simple_blob_detector_params_get_threshold_step( self) end |
#threshold_step=(value) ⇒ Void Also known as: set_thresholdStep
method wrapper for float thresholdStep
23693 23694 23695 23696 |
# File 'lib/ropencv/ropencv_types.rb', line 23693 def threshold_step=(value) __validate_pointer__ Rbind::cv_simple_blob_detector_params_set_threshold_step( self, value) end |
#to_s ⇒ Object
converts Params into a string by crawling through all its attributes
23673 23674 23675 |
# File 'lib/ropencv/ropencv_types.rb', line 23673 def to_s "#<cv::SimpleBlobDetector::Params threshold_step=#{self.threshold_step} min_threshold=#{self.min_threshold} max_threshold=#{self.max_threshold} min_repeatability=#{self.min_repeatability} min_dist_between_blobs=#{self.min_dist_between_blobs} filter_by_color=#{self.filter_by_color} blob_color=#{self.blob_color} filter_by_area=#{self.filter_by_area} min_area=#{self.min_area} max_area=#{self.max_area} filter_by_circularity=#{self.filter_by_circularity} min_circularity=#{self.min_circularity} max_circularity=#{self.max_circularity} filter_by_inertia=#{self.filter_by_inertia} min_inertia_ratio=#{self.min_inertia_ratio} max_inertia_ratio=#{self.max_inertia_ratio} filter_by_convexity=#{self.filter_by_convexity} min_convexity=#{self.min_convexity} max_convexity=#{self.max_convexity}>" end |