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
62458 62459 62460 62461 62462 62463 62464 62465 62466 62467 62468 62469 62470 62471 62472 62473 62474 62475 62476 62477 62478 |
# File 'lib/ropencv/ropencv_types.rb', line 62458 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
62454 62455 62456 |
# File 'lib/ropencv/ropencv_types.rb', line 62454 def self.null new(ParamsStruct.new) end |
Instance Method Details
#blob_color ⇒ Uchar Also known as: get_blobColor
method wrapper for uchar blobColor
62657 62658 62659 62660 |
# File 'lib/ropencv/ropencv_types.rb', line 62657 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
62666 62667 62668 62669 |
# File 'lib/ropencv/ropencv_types.rb', line 62666 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
62674 62675 62676 62677 |
# File 'lib/ropencv/ropencv_types.rb', line 62674 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
62683 62684 62685 62686 |
# File 'lib/ropencv/ropencv_types.rb', line 62683 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
62725 62726 62727 62728 |
# File 'lib/ropencv/ropencv_types.rb', line 62725 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
62734 62735 62736 62737 |
# File 'lib/ropencv/ropencv_types.rb', line 62734 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
62640 62641 62642 62643 |
# File 'lib/ropencv/ropencv_types.rb', line 62640 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
62649 62650 62651 62652 |
# File 'lib/ropencv/ropencv_types.rb', line 62649 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
62827 62828 62829 62830 |
# File 'lib/ropencv/ropencv_types.rb', line 62827 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
62836 62837 62838 62839 |
# File 'lib/ropencv/ropencv_types.rb', line 62836 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
62776 62777 62778 62779 |
# File 'lib/ropencv/ropencv_types.rb', line 62776 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
62785 62786 62787 62788 |
# File 'lib/ropencv/ropencv_types.rb', line 62785 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
62708 62709 62710 62711 |
# File 'lib/ropencv/ropencv_types.rb', line 62708 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
62717 62718 62719 62720 |
# File 'lib/ropencv/ropencv_types.rb', line 62717 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
62759 62760 62761 62762 |
# File 'lib/ropencv/ropencv_types.rb', line 62759 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
62768 62769 62770 62771 |
# File 'lib/ropencv/ropencv_types.rb', line 62768 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
62861 62862 62863 62864 |
# File 'lib/ropencv/ropencv_types.rb', line 62861 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
62870 62871 62872 62873 |
# File 'lib/ropencv/ropencv_types.rb', line 62870 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
62810 62811 62812 62813 |
# File 'lib/ropencv/ropencv_types.rb', line 62810 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
62819 62820 62821 62822 |
# File 'lib/ropencv/ropencv_types.rb', line 62819 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
62589 62590 62591 62592 |
# File 'lib/ropencv/ropencv_types.rb', line 62589 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
62598 62599 62600 62601 |
# File 'lib/ropencv/ropencv_types.rb', line 62598 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
62691 62692 62693 62694 |
# File 'lib/ropencv/ropencv_types.rb', line 62691 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
62700 62701 62702 62703 |
# File 'lib/ropencv/ropencv_types.rb', line 62700 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
62742 62743 62744 62745 |
# File 'lib/ropencv/ropencv_types.rb', line 62742 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
62751 62752 62753 62754 |
# File 'lib/ropencv/ropencv_types.rb', line 62751 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
62844 62845 62846 62847 |
# File 'lib/ropencv/ropencv_types.rb', line 62844 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
62853 62854 62855 62856 |
# File 'lib/ropencv/ropencv_types.rb', line 62853 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
62623 62624 62625 62626 |
# File 'lib/ropencv/ropencv_types.rb', line 62623 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
62632 62633 62634 62635 |
# File 'lib/ropencv/ropencv_types.rb', line 62632 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
62793 62794 62795 62796 |
# File 'lib/ropencv/ropencv_types.rb', line 62793 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
62802 62803 62804 62805 |
# File 'lib/ropencv/ropencv_types.rb', line 62802 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
62606 62607 62608 62609 |
# File 'lib/ropencv/ropencv_types.rb', line 62606 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
62615 62616 62617 62618 |
# File 'lib/ropencv/ropencv_types.rb', line 62615 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
62572 62573 62574 62575 |
# File 'lib/ropencv/ropencv_types.rb', line 62572 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
62581 62582 62583 62584 |
# File 'lib/ropencv/ropencv_types.rb', line 62581 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
62555 62556 62557 62558 |
# File 'lib/ropencv/ropencv_types.rb', line 62555 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
62564 62565 62566 62567 |
# File 'lib/ropencv/ropencv_types.rb', line 62564 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
62544 62545 62546 |
# File 'lib/ropencv/ropencv_types.rb', line 62544 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 |