Class: OpenCV::Cv::Detail::SeamFinder
- Inherits:
-
Object
- Object
- OpenCV::Cv::Detail::SeamFinder
- Extended by:
- FFI::DataConverter
- Defined in:
- lib/ropencv/ropencv_types.rb
Constants collapse
- NO =
0
- VORONOI_SEAM =
1
- DP_SEAM =
2
Class Method Summary collapse
- .create_default(type) ⇒ Cv::Ptr::Cv_Detail_SeamFinder (also: createDefault)
- .new(*args) ⇒ Object
-
.null ⇒ Object
returns a null pointer to the object.
Instance Method Summary collapse
-
#find(src, corners, masks) ⇒ Void
methods.
-
#to_s ⇒ Object
converts SeamFinder into a string by crawling through all its attributes.
Class Method Details
.create_default(type) ⇒ Cv::Ptr::Cv_Detail_SeamFinder Also known as: createDefault
Note:
wrapper for static method const cv::Ptrcv::detail::SeamFinder cv::detail::SeamFinder::createDefault(int type)
15991 15992 15993 |
# File 'lib/ropencv/ropencv_types.rb', line 15991 def self.create_default(type) Rbind::cv_detail_seam_finder_create_default(type) end |
.new(*args) ⇒ Object
15893 15894 15895 15896 15897 15898 15899 15900 |
# File 'lib/ropencv/ropencv_types.rb', line 15893 def self.new(*args) if args.first.is_a?(FFI::Pointer) || args.first.is_a?(SeamFinderStruct) 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
15889 15890 15891 |
# File 'lib/ropencv/ropencv_types.rb', line 15889 def self.null new(SeamFinderStruct.new) end |
Instance Method Details
#find(src, corners, masks) ⇒ Void
15983 15984 15985 15986 |
# File 'lib/ropencv/ropencv_types.rb', line 15983 def find(src, corners, masks) __validate_pointer__ Rbind::cv_detail_seam_finder_find( self, src, corners, masks) end |
#to_s ⇒ Object
converts SeamFinder into a string by crawling through all its attributes
15966 15967 15968 |
# File 'lib/ropencv/ropencv_types.rb', line 15966 def to_s "#<cv::detail::SeamFinder >" end |