Class: OpenCV::Cv::DenseOpticalFlow

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

.cast_from_algorithm(ptr, parse_ownership) ⇒ Cv::DenseOpticalFlow Also known as: castFromAlgorithm

Note:

wrapper for static method cv::DenseOpticalFlow* cv::DenseOpticalFlow::castFromAlgorithm(cv::Algorithm* ptr, bool parse_ownership)

Parameters:

Returns:



40876
40877
40878
# File 'lib/ropencv/ropencv_types.rb', line 40876

def self.cast_from_algorithm(ptr, parse_ownership)
    Rbind::cv_dense_optical_flow_cast_from_algorithm(ptr, parse_ownership)
end

.new(*args) ⇒ Object

Raises:

  • (ArgumentError)


40758
40759
40760
40761
40762
40763
40764
40765
# File 'lib/ropencv/ropencv_types.rb', line 40758

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



40754
40755
40756
# File 'lib/ropencv/ropencv_types.rb', line 40754

def self.null
    new(DenseOpticalFlowStruct.new)
end

Instance Method Details

#calc(_i0, _i1, flow) ⇒ Void

Note:

method wrapper for void cv::DenseOpticalFlow::calc(const cv::Mat I0, const cv::Mat I1, cv::Mat& flow)

methods

Parameters:

Returns:

  • (Void)


40845
40846
40847
40848
# File 'lib/ropencv/ropencv_types.rb', line 40845

def calc(_i0, _i1, flow)
    __validate_pointer__
    Rbind::cv_dense_optical_flow_calc( self, _i0, _i1, flow)
end

#cast_to_algorithm(parse_ownership) ⇒ Cv::Algorithm Also known as: castToAlgorithm

Note:

method wrapper for cv::Algorithm* cv::DenseOpticalFlow::castToAlgorithm(bool parse_ownership)

Parameters:

  • parse_ownership (Bool)

Returns:



40861
40862
40863
40864
40865
40866
40867
40868
40869
# File 'lib/ropencv/ropencv_types.rb', line 40861

def cast_to_algorithm(parse_ownership)
    __validate_pointer__
    result = Rbind::cv_dense_optical_flow_cast_to_algorithm( self, parse_ownership)
    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

#clearVoid

Note:

method wrapper for void cv::DenseOpticalFlow::clear()

Returns:

  • (Void)


40883
40884
40885
40886
# File 'lib/ropencv/ropencv_types.rb', line 40883

def clear()
    __validate_pointer__
    Rbind::cv_dense_optical_flow_clear( self)
end

#collect_garbageVoid Also known as: collectGarbage

Note:

method wrapper for void cv::DenseOpticalFlow::collectGarbage()

Returns:

  • (Void)


40852
40853
40854
40855
# File 'lib/ropencv/ropencv_types.rb', line 40852

def collect_garbage()
    __validate_pointer__
    Rbind::cv_dense_optical_flow_collect_garbage( self)
end

#emptyBool

Note:

method wrapper for bool cv::DenseOpticalFlow::empty()

Returns:

  • (Bool)


40907
40908
40909
40910
# File 'lib/ropencv/ropencv_types.rb', line 40907

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

#get_default_nameStd::String Also known as: getDefaultName

Note:

method wrapper for const std::string cv::DenseOpticalFlow::getDefaultName()

Returns:



40922
40923
40924
40925
40926
40927
40928
40929
40930
# File 'lib/ropencv/ropencv_types.rb', line 40922

def get_default_name()
    __validate_pointer__
    result = Rbind::cv_dense_optical_flow_get_default_name( 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

#read(fn) ⇒ Void

Note:

method wrapper for void cv::DenseOpticalFlow::read(const cv::FileNode fn)

Parameters:

Returns:

  • (Void)


40900
40901
40902
40903
# File 'lib/ropencv/ropencv_types.rb', line 40900

def read(fn)
    __validate_pointer__
    Rbind::cv_dense_optical_flow_read( self, fn)
end

#save(filename) ⇒ Void

Note:

method wrapper for void cv::DenseOpticalFlow::save(const std::string filename)

Parameters:

Returns:

  • (Void)


40915
40916
40917
40918
# File 'lib/ropencv/ropencv_types.rb', line 40915

def save(filename)
    __validate_pointer__
    Rbind::cv_dense_optical_flow_save( self, filename)
end

#to_sObject

converts DenseOpticalFlow into a string by crawling through all its attributes



40831
40832
40833
# File 'lib/ropencv/ropencv_types.rb', line 40831

def to_s
    "#<cv::DenseOpticalFlow >"
end

#write(fs, name = Std::String.new()) ⇒ Void

Note:

method wrapper for void cv::DenseOpticalFlow::write(const cv::Ptrcv::FileStorage fs, const std::string name = String())

Parameters:

Returns:

  • (Void)


40892
40893
40894
40895
# File 'lib/ropencv/ropencv_types.rb', line 40892

def write(fs, name = Std::String.new())
    __validate_pointer__
    Rbind::cv_dense_optical_flow_write( self, fs, name)
end