Class: OpenCV::Cv::Detail::PairwiseSeamFinder
- Inherits:
-
Object
- Object
- OpenCV::Cv::Detail::PairwiseSeamFinder
- Extended by:
- FFI::DataConverter
- Defined in:
- lib/ropencv/ropencv_types.rb
Class Method Summary collapse
- .cast_from_seam_finder(ptr, parse_ownership) ⇒ Cv::Detail::PairwiseSeamFinder (also: castFromSeamFinder)
- .new(*args) ⇒ Object
-
.null ⇒ Object
returns a null pointer to the object.
Instance Method Summary collapse
- #cast_to_seam_finder(parse_ownership) ⇒ Cv::Detail::SeamFinder (also: #castToSeamFinder)
-
#find(src, corners, masks) ⇒ Void
methods.
-
#to_s ⇒ Object
converts PairwiseSeamFinder into a string by crawling through all its attributes.
Class Method Details
.cast_from_seam_finder(ptr, parse_ownership) ⇒ Cv::Detail::PairwiseSeamFinder Also known as: castFromSeamFinder
Note:
wrapper for static method cv::detail::PairwiseSeamFinder* cv::detail::PairwiseSeamFinder::castFromSeamFinder(cv::detail::SeamFinder* ptr, bool parse_ownership)
16304 16305 16306 |
# File 'lib/ropencv/ropencv_types.rb', line 16304 def self.cast_from_seam_finder(ptr, parse_ownership) Rbind::cv_detail_pairwise_seam_finder_cast_from_seam_finder(ptr, parse_ownership) end |
.new(*args) ⇒ Object
16194 16195 16196 16197 16198 16199 16200 16201 |
# File 'lib/ropencv/ropencv_types.rb', line 16194 def self.new(*args) if args.first.is_a?(FFI::Pointer) || args.first.is_a?(PairwiseSeamFinderStruct) 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
16190 16191 16192 |
# File 'lib/ropencv/ropencv_types.rb', line 16190 def self.null new(PairwiseSeamFinderStruct.new) end |
Instance Method Details
#cast_to_seam_finder(parse_ownership) ⇒ Cv::Detail::SeamFinder Also known as: castToSeamFinder
Note:
method wrapper for cv::detail::SeamFinder* cv::detail::PairwiseSeamFinder::castToSeamFinder(bool parse_ownership)
16289 16290 16291 16292 16293 16294 16295 16296 16297 |
# File 'lib/ropencv/ropencv_types.rb', line 16289 def cast_to_seam_finder(parse_ownership) __validate_pointer__ result = Rbind::cv_detail_pairwise_seam_finder_cast_to_seam_finder( 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 |
#find(src, corners, masks) ⇒ Void
16281 16282 16283 16284 |
# File 'lib/ropencv/ropencv_types.rb', line 16281 def find(src, corners, masks) __validate_pointer__ Rbind::cv_detail_pairwise_seam_finder_find( self, src, corners, masks) end |
#to_s ⇒ Object
converts PairwiseSeamFinder into a string by crawling through all its attributes
16267 16268 16269 |
# File 'lib/ropencv/ropencv_types.rb', line 16267 def to_s "#<cv::detail::PairwiseSeamFinder >" end |