Class: OpenCV::Cv::Flann::SearchParams

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)


11688
11689
11690
11691
11692
11693
11694
11695
# File 'lib/ropencv/ropencv_types.rb', line 11688

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



11684
11685
11686
# File 'lib/ropencv/ropencv_types.rb', line 11684

def self.null
    new(SearchParamsStruct.new)
end

Instance Method Details

#to_sObject

converts SearchParams into a string by crawling through all its attributes



11761
11762
11763
# File 'lib/ropencv/ropencv_types.rb', line 11761

def to_s
    "#<cv::flann::SearchParams >"
end