Class: OpenCV::Cv::Ptr::Cv_CalibrateCRF

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

Specializing collapse

Class Method Summary collapse

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(m, *args) ⇒ Object



31176
31177
31178
31179
# File 'lib/ropencv/ropencv_types.rb', line 31176

def method_missing(m,*args)
    raise "Ptr cv::Ptr is empty. Cannot call #{m} on it!" if empty
    get.method(m).call(*args)
end

Class Method Details

.ptrObject .ptrObject .ptrObject .ptrObject .ptrObject

Overloads:

Raises:

  • (ArgumentError)


30980
30981
30982
30983
30984
30985
30986
30987
30988
30989
30990
30991
30992
30993
30994
30995
30996
30997
30998
30999
31000
31001
31002
31003
31004
31005
31006
31007
31008
31009
31010
31011
31012
31013
31014
31015
31016
31017
31018
31019
31020
31021
31022
31023
31024
31025
31026
31027
31028
31029
31030
31031
31032
31033
31034
31035
31036
31037
31038
31039
31040
31041
31042
31043
31044
31045
31046
31047
31048
31049
31050
31051
31052
31053
31054
31055
31056
# File 'lib/ropencv/ropencv_types.rb', line 30980

def self.new(*args)
    if args.first.is_a?(FFI::Pointer) || args.first.is_a?(Ptr::Cv_CalibrateCRFStruct)
        raise ArgumentError, "too many arguments for creating #{self.name} from Pointer" unless args.size == 1
        return super(args.first)
    end
    # overloaded method wrapper for cv::Ptr<cv::CalibrateCRF>::Ptr<cv::CalibrateCRF>()
    @@cv_ptr_cv_calibratecrf_ptr_cv_calibratecrf_defaults0 ||= []
    if(args.size >= 0 && args.size <= 0)
        targs = args.clone
        targs.size.upto(-1) do |i|
            targs[i] = @@cv_ptr_cv_calibratecrf_ptr_cv_calibratecrf_defaults0[i]
        end
        begin
                return Rbind::cv_ptr_cv_calibratecrf_ptr_cv_calibratecrf(*targs)
        rescue TypeError => e
            @error = e
        end
    end

    # overloaded method wrapper for cv::Ptr<cv::CalibrateCRF>::Ptr<cv::CalibrateCRF>(cv::Ptr<cv::CalibrateCRF> other)
    @@cv_ptr_cv_calibratecrf_ptr_cv_calibratecrf_2_defaults1 ||= [nil]
    if(args.size >= 1 && args.size <= 1)
        targs = args.clone
        targs.size.upto(0) do |i|
            targs[i] = @@cv_ptr_cv_calibratecrf_ptr_cv_calibratecrf_2_defaults1[i]
        end
        begin
                return Rbind::cv_ptr_cv_calibratecrf_ptr_cv_calibratecrf_2(*targs)
        rescue TypeError => e
            @error = e
        end
    end

    # overloaded method wrapper for cv::Ptr<cv::CalibrateCRF>::Ptr<cv::CalibrateCRF>(cv::Ptr<cv::CalibrateCRF> owner, cv::CalibrateCRF* p)
    @@cv_ptr_cv_calibratecrf_ptr_cv_calibratecrf_3_defaults2 ||= [nil, nil]
    if(args.size >= 2 && args.size <= 2)
        targs = args.clone
        targs.size.upto(1) do |i|
            targs[i] = @@cv_ptr_cv_calibratecrf_ptr_cv_calibratecrf_3_defaults2[i]
        end
        begin
                return Rbind::cv_ptr_cv_calibratecrf_ptr_cv_calibratecrf_3(*targs)
        rescue TypeError => e
            @error = e
        end
    end

    # overloaded method wrapper for cv::Ptr<cv::CalibrateCRF>::Ptr<cv::CalibrateCRF>(cv::CalibrateCRF* p)
    @@cv_ptr_cv_calibratecrf_ptr_cv_calibratecrf_4_defaults3 ||= [nil]
    if(args.size >= 1 && args.size <= 1)
        targs = args.clone
        targs.size.upto(0) do |i|
            targs[i] = @@cv_ptr_cv_calibratecrf_ptr_cv_calibratecrf_4_defaults3[i]
        end
        begin
                return Rbind::cv_ptr_cv_calibratecrf_ptr_cv_calibratecrf_4(*targs)
        rescue TypeError => e
            @error = e
        end
    end

    # overloaded method wrapper for cv::Ptr<cv::CalibrateCRF>::Ptr<cv::CalibrateCRF>(cv::Ptr<cv::Algorithm> owner, cv::CalibrateCRF* p)
    @@cv_ptr_cv_calibratecrf_ptr_cv_calibratecrf_5_defaults4 ||= [nil, nil]
    if(args.size >= 2 && args.size <= 2)
        targs = args.clone
        targs.size.upto(1) do |i|
            targs[i] = @@cv_ptr_cv_calibratecrf_ptr_cv_calibratecrf_5_defaults4[i]
        end
        begin
                return Rbind::cv_ptr_cv_calibratecrf_ptr_cv_calibratecrf_5(*targs)
        rescue TypeError => e
            @error = e
        end
    end

    raise ArgumentError, "no constructor for #{self}(#{args.inspect})"
end

.nullObject

returns a null pointer to the object



30961
30962
30963
# File 'lib/ropencv/ropencv_types.rb', line 30961

def self.null
    new(Ptr::Cv_CalibrateCRFStruct.new)
end

Instance Method Details

#emptyBool

Note:

method wrapper for bool cv::Ptrcv::CalibrateCRF::empty()

Returns:

  • (Bool)


31168
31169
31170
31171
# File 'lib/ropencv/ropencv_types.rb', line 31168

def empty()
    __validate_pointer__
    Rbind::cv_ptr_cv_calibratecrf_empty( self)
end

#getCv::CalibrateCRF

Note:

method wrapper for cv::CalibrateCRF* cv::Ptrcv::CalibrateCRF::get()

Returns:



31156
31157
31158
31159
31160
31161
31162
31163
31164
# File 'lib/ropencv/ropencv_types.rb', line 31156

def get()
    __validate_pointer__
    result = Rbind::cv_ptr_cv_calibratecrf_get( self)
    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

#releaseVoid

Note:

method wrapper for void cv::Ptrcv::CalibrateCRF::release()

methods

Returns:

  • (Void)


31133
31134
31135
31136
# File 'lib/ropencv/ropencv_types.rb', line 31133

def release()
    __validate_pointer__
    Rbind::cv_ptr_cv_calibratecrf_release( self)
end

#reset(p) ⇒ Void

Note:

method wrapper for void cv::Ptrcv::CalibrateCRF::reset(cv::CalibrateCRF* p)

Parameters:

Returns:

  • (Void)


31141
31142
31143
31144
# File 'lib/ropencv/ropencv_types.rb', line 31141

def reset(p)
    __validate_pointer__
    Rbind::cv_ptr_cv_calibratecrf_reset( self, p)
end

#swap(other) ⇒ Void

Note:

method wrapper for void cv::Ptrcv::CalibrateCRF::swap(cv::Ptrcv::CalibrateCRF other)

Parameters:

Returns:

  • (Void)


31149
31150
31151
31152
# File 'lib/ropencv/ropencv_types.rb', line 31149

def swap(other)
    __validate_pointer__
    Rbind::cv_ptr_cv_calibratecrf_swap( self, other)
end

#to_sObject

converts Ptr::Cv_CalibrateCRF into a string by crawling through all its attributes



31122
31123
31124
# File 'lib/ropencv/ropencv_types.rb', line 31122

def to_s
    "#<cv::Ptr<cv::CalibrateCRF> >"
end