Class: OpenCV::Cv::Detail::CameraParams

Inherits:
Object
  • Object
show all
Extended by:
FFI::DataConverter
Defined in:
lib/ropencv/ropencv_types.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.new(*args) ⇒ Object

Raises:

  • (ArgumentError)


11294
11295
11296
11297
11298
11299
11300
11301
# File 'lib/ropencv/ropencv_types.rb', line 11294

def self.new(*args)
    if args.first.is_a?(FFI::Pointer) || args.first.is_a?(CameraParamsStruct)
        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

.nullObject

returns a null pointer to the object



11290
11291
11292
# File 'lib/ropencv/ropencv_types.rb', line 11290

def self.null
    new(CameraParamsStruct.new)
end

Instance Method Details

#to_sObject

converts CameraParams into a string by crawling through all its attributes



11367
11368
11369
# File 'lib/ropencv/ropencv_types.rb', line 11367

def to_s
    "#<cv::detail::CameraParams >"
end