Class: OpenCV::CvSlice
- Inherits:
-
Object
- Object
- OpenCV::CvSlice
- 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
-
#to_s ⇒ Object
converts CvSlice into a string by crawling through all its attributes.
Class Method Details
.new(*args) ⇒ Object
41125 41126 41127 41128 41129 41130 41131 41132 |
# File 'lib/ropencv/ropencv_types.rb', line 41125 def self.new(*args) if args.first.is_a?(FFI::Pointer) || args.first.is_a?(CvSliceStruct) 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
41121 41122 41123 |
# File 'lib/ropencv/ropencv_types.rb', line 41121 def self.null new(CvSliceStruct.new) end |
Instance Method Details
#to_s ⇒ Object
converts CvSlice into a string by crawling through all its attributes
41198 41199 41200 |
# File 'lib/ropencv/ropencv_types.rb', line 41198 def to_s "#<CvSlice >" end |