Class: OpenCV::Cv::ShapeDistanceExtractor
- Inherits:
-
Object
- Object
- OpenCV::Cv::ShapeDistanceExtractor
- Extended by:
- FFI::DataConverter
- Defined in:
- lib/ropencv/ropencv_types.rb
Class Method Summary collapse
- .cast_from_algorithm(ptr, parse_ownership) ⇒ Cv::ShapeDistanceExtractor (also: castFromAlgorithm)
- .new(*args) ⇒ Object
-
.null ⇒ Object
returns a null pointer to the object.
Instance Method Summary collapse
- #cast_to_algorithm(parse_ownership) ⇒ Cv::Algorithm (also: #castToAlgorithm)
- #clear ⇒ Void
-
#compute_distance(_contour1, _contour2) ⇒ Float
(also: #computeDistance)
methods.
- #empty ⇒ Bool
- #get_default_name ⇒ Std::String (also: #getDefaultName)
- #read(fn) ⇒ Void
- #save(filename) ⇒ Void
-
#to_s ⇒ Object
converts ShapeDistanceExtractor into a string by crawling through all its attributes.
- #write(fs, name = Std::String.new()) ⇒ Void
Class Method Details
.cast_from_algorithm(ptr, parse_ownership) ⇒ Cv::ShapeDistanceExtractor Also known as: castFromAlgorithm
wrapper for static method cv::ShapeDistanceExtractor* cv::ShapeDistanceExtractor::castFromAlgorithm(cv::Algorithm* ptr, bool parse_ownership)
74728 74729 74730 |
# File 'lib/ropencv/ropencv_types.rb', line 74728 def self.cast_from_algorithm(ptr, parse_ownership) Rbind::cv_shape_distance_extractor_cast_from_algorithm(ptr, parse_ownership) end |
.new(*args) ⇒ Object
74618 74619 74620 74621 74622 74623 74624 74625 |
# File 'lib/ropencv/ropencv_types.rb', line 74618 def self.new(*args) if args.first.is_a?(FFI::Pointer) || args.first.is_a?(ShapeDistanceExtractorStruct) raise ArgumentError, "too many arguments for creating #{self.name} from Pointer" unless args.size == 1 return super(args.first) end raise ArgumentError, "no constructor for #{self}(#{args.inspect})" end |
.null ⇒ Object
returns a null pointer to the object
74614 74615 74616 |
# File 'lib/ropencv/ropencv_types.rb', line 74614 def self.null new(ShapeDistanceExtractorStruct.new) end |
Instance Method Details
#cast_to_algorithm(parse_ownership) ⇒ Cv::Algorithm Also known as: castToAlgorithm
method wrapper for cv::Algorithm* cv::ShapeDistanceExtractor::castToAlgorithm(bool parse_ownership)
74713 74714 74715 74716 74717 74718 74719 74720 74721 |
# File 'lib/ropencv/ropencv_types.rb', line 74713 def cast_to_algorithm(parse_ownership) __validate_pointer__ result = Rbind::cv_shape_distance_extractor_cast_to_algorithm( self, parse_ownership) if result.respond_to?(:__owner__?) && !result.__owner__? # store owner insight the pointer to not get garbage collected result.instance_variable_get(:@__obj_ptr__).instance_variable_set(:@__owner__,self) end result end |
#clear ⇒ Void
method wrapper for void cv::ShapeDistanceExtractor::clear()
74735 74736 74737 74738 |
# File 'lib/ropencv/ropencv_types.rb', line 74735 def clear() __validate_pointer__ Rbind::cv_shape_distance_extractor_clear( self) end |
#compute_distance(_contour1, _contour2) ⇒ Float Also known as: computeDistance
method wrapper for float cv::ShapeDistanceExtractor::computeDistance(const cv::Mat contour1, const cv::Mat contour2)
methods
74704 74705 74706 74707 |
# File 'lib/ropencv/ropencv_types.rb', line 74704 def compute_distance(_contour1, _contour2) __validate_pointer__ Rbind::cv_shape_distance_extractor_compute_distance( self, _contour1, _contour2) end |
#empty ⇒ Bool
method wrapper for bool cv::ShapeDistanceExtractor::empty()
74759 74760 74761 74762 |
# File 'lib/ropencv/ropencv_types.rb', line 74759 def empty() __validate_pointer__ Rbind::cv_shape_distance_extractor_empty( self) end |
#get_default_name ⇒ Std::String Also known as: getDefaultName
method wrapper for const std::string cv::ShapeDistanceExtractor::getDefaultName()
74774 74775 74776 74777 74778 74779 74780 74781 74782 |
# File 'lib/ropencv/ropencv_types.rb', line 74774 def get_default_name() __validate_pointer__ result = Rbind::cv_shape_distance_extractor_get_default_name( self) if result.respond_to?(:__owner__?) && !result.__owner__? # store owner insight the pointer to not get garbage collected result.instance_variable_get(:@__obj_ptr__).instance_variable_set(:@__owner__,self) end result end |
#read(fn) ⇒ Void
method wrapper for void cv::ShapeDistanceExtractor::read(const cv::FileNode fn)
74752 74753 74754 74755 |
# File 'lib/ropencv/ropencv_types.rb', line 74752 def read(fn) __validate_pointer__ Rbind::cv_shape_distance_extractor_read( self, fn) end |
#save(filename) ⇒ Void
method wrapper for void cv::ShapeDistanceExtractor::save(const std::string filename)
74767 74768 74769 74770 |
# File 'lib/ropencv/ropencv_types.rb', line 74767 def save(filename) __validate_pointer__ Rbind::cv_shape_distance_extractor_save( self, filename) end |
#to_s ⇒ Object
converts ShapeDistanceExtractor into a string by crawling through all its attributes
74691 74692 74693 |
# File 'lib/ropencv/ropencv_types.rb', line 74691 def to_s "#<cv::ShapeDistanceExtractor >" end |
#write(fs, name = Std::String.new()) ⇒ Void
method wrapper for void cv::ShapeDistanceExtractor::write(const cv::Ptrcv::FileStorage fs, const std::string name = String())
74744 74745 74746 74747 |
# File 'lib/ropencv/ropencv_types.rb', line 74744 def write(fs, name = Std::String.new()) __validate_pointer__ Rbind::cv_shape_distance_extractor_write( self, fs, name) end |