Class: OpenCV::Cv::DISOpticalFlow

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

Constants collapse

PRESET_ULTRAFAST =
0
PRESET_FAST =
1
PRESET_MEDIUM =
2

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.create(preset = DISOpticalFlow::PRESET_FAST) ⇒ Cv::Ptr::Cv_DISOpticalFlow

Note:

wrapper for static method const cv::Ptrcv::DISOpticalFlow cv::DISOpticalFlow::create(int preset = DISOpticalFlow::PRESET_FAST)

Parameters:

  • preset (Fixnum) (defaults to: DISOpticalFlow::PRESET_FAST)

Returns:



42949
42950
42951
# File 'lib/ropencv/ropencv_types.rb', line 42949

def self.create(preset = DISOpticalFlow::PRESET_FAST)
    Rbind::cv_dis_optical_flow_create(preset)
end

.new(*args) ⇒ Object

Raises:

  • (ArgumentError)


42691
42692
42693
42694
42695
42696
42697
42698
# File 'lib/ropencv/ropencv_types.rb', line 42691

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



42687
42688
42689
# File 'lib/ropencv/ropencv_types.rb', line 42687

def self.null
    new(DISOpticalFlowStruct.new)
end

Instance Method Details

#calc(_i0, _i1, flow) ⇒ Void

Note:

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

Parameters:

Returns:

  • (Void)


42972
42973
42974
42975
# File 'lib/ropencv/ropencv_types.rb', line 42972

def calc(_i0, _i1, flow)
    __validate_pointer__
    Rbind::cv_dis_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::DISOpticalFlow::castToAlgorithm(bool parse_ownership)

Parameters:

  • parse_ownership (Bool)

Returns:



42988
42989
42990
42991
42992
42993
42994
42995
42996
# File 'lib/ropencv/ropencv_types.rb', line 42988

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

#cast_to_dense_optical_flow(parse_ownership) ⇒ Cv::DenseOpticalFlow Also known as: castToDenseOpticalFlow

Note:

method wrapper for cv::DenseOpticalFlow* cv::DISOpticalFlow::castToDenseOpticalFlow(bool parse_ownership)

Parameters:

  • parse_ownership (Bool)

Returns:



42956
42957
42958
42959
42960
42961
42962
42963
42964
# File 'lib/ropencv/ropencv_types.rb', line 42956

def cast_to_dense_optical_flow(parse_ownership)
    __validate_pointer__
    result = Rbind::cv_dis_optical_flow_cast_to_dense_optical_flow( 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::DISOpticalFlow::clear()

Returns:

  • (Void)


43001
43002
43003
43004
# File 'lib/ropencv/ropencv_types.rb', line 43001

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

#collect_garbageVoid Also known as: collectGarbage

Note:

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

Returns:

  • (Void)


42979
42980
42981
42982
# File 'lib/ropencv/ropencv_types.rb', line 42979

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

#emptyBool

Note:

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

Returns:

  • (Bool)


43025
43026
43027
43028
# File 'lib/ropencv/ropencv_types.rb', line 43025

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

#get_default_nameStd::String Also known as: getDefaultName

Note:

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

Returns:



43040
43041
43042
43043
43044
43045
43046
43047
43048
# File 'lib/ropencv/ropencv_types.rb', line 43040

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

#get_finest_scaleFixnum Also known as: getFinestScale

Note:

method wrapper for int cv::DISOpticalFlow::getFinestScale()

methods

Returns:

  • (Fixnum)


42778
42779
42780
42781
# File 'lib/ropencv/ropencv_types.rb', line 42778

def get_finest_scale()
    __validate_pointer__
    Rbind::cv_dis_optical_flow_get_finest_scale( self)
end

#get_gradient_descent_iterationsFixnum Also known as: getGradientDescentIterations

Note:

method wrapper for int cv::DISOpticalFlow::getGradientDescentIterations()

Returns:

  • (Fixnum)


42829
42830
42831
42832
# File 'lib/ropencv/ropencv_types.rb', line 42829

def get_gradient_descent_iterations()
    __validate_pointer__
    Rbind::cv_dis_optical_flow_get_gradient_descent_iterations( self)
end

#get_patch_sizeFixnum Also known as: getPatchSize

Note:

method wrapper for int cv::DISOpticalFlow::getPatchSize()

Returns:

  • (Fixnum)


42795
42796
42797
42798
# File 'lib/ropencv/ropencv_types.rb', line 42795

def get_patch_size()
    __validate_pointer__
    Rbind::cv_dis_optical_flow_get_patch_size( self)
end

#get_patch_strideFixnum Also known as: getPatchStride

Note:

method wrapper for int cv::DISOpticalFlow::getPatchStride()

Returns:

  • (Fixnum)


42812
42813
42814
42815
# File 'lib/ropencv/ropencv_types.rb', line 42812

def get_patch_stride()
    __validate_pointer__
    Rbind::cv_dis_optical_flow_get_patch_stride( self)
end

#get_use_mean_normalizationBool Also known as: getUseMeanNormalization

Note:

method wrapper for bool cv::DISOpticalFlow::getUseMeanNormalization()

Returns:

  • (Bool)


42914
42915
42916
42917
# File 'lib/ropencv/ropencv_types.rb', line 42914

def get_use_mean_normalization()
    __validate_pointer__
    Rbind::cv_dis_optical_flow_get_use_mean_normalization( self)
end

#get_use_spatial_propagationBool Also known as: getUseSpatialPropagation

Note:

method wrapper for bool cv::DISOpticalFlow::getUseSpatialPropagation()

Returns:

  • (Bool)


42931
42932
42933
42934
# File 'lib/ropencv/ropencv_types.rb', line 42931

def get_use_spatial_propagation()
    __validate_pointer__
    Rbind::cv_dis_optical_flow_get_use_spatial_propagation( self)
end

#get_variational_refinement_alphaFloat Also known as: getVariationalRefinementAlpha

Note:

method wrapper for float cv::DISOpticalFlow::getVariationalRefinementAlpha()

Returns:

  • (Float)


42863
42864
42865
42866
# File 'lib/ropencv/ropencv_types.rb', line 42863

def get_variational_refinement_alpha()
    __validate_pointer__
    Rbind::cv_dis_optical_flow_get_variational_refinement_alpha( self)
end

#get_variational_refinement_deltaFloat Also known as: getVariationalRefinementDelta

Note:

method wrapper for float cv::DISOpticalFlow::getVariationalRefinementDelta()

Returns:

  • (Float)


42880
42881
42882
42883
# File 'lib/ropencv/ropencv_types.rb', line 42880

def get_variational_refinement_delta()
    __validate_pointer__
    Rbind::cv_dis_optical_flow_get_variational_refinement_delta( self)
end

#get_variational_refinement_gammaFloat Also known as: getVariationalRefinementGamma

Note:

method wrapper for float cv::DISOpticalFlow::getVariationalRefinementGamma()

Returns:

  • (Float)


42897
42898
42899
42900
# File 'lib/ropencv/ropencv_types.rb', line 42897

def get_variational_refinement_gamma()
    __validate_pointer__
    Rbind::cv_dis_optical_flow_get_variational_refinement_gamma( self)
end

#get_variational_refinement_iterationsFixnum Also known as: getVariationalRefinementIterations

Note:

method wrapper for int cv::DISOpticalFlow::getVariationalRefinementIterations()

Returns:

  • (Fixnum)


42846
42847
42848
42849
# File 'lib/ropencv/ropencv_types.rb', line 42846

def get_variational_refinement_iterations()
    __validate_pointer__
    Rbind::cv_dis_optical_flow_get_variational_refinement_iterations( self)
end

#read(fn) ⇒ Void

Note:

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

Parameters:

Returns:

  • (Void)


43018
43019
43020
43021
# File 'lib/ropencv/ropencv_types.rb', line 43018

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

#save(filename) ⇒ Void

Note:

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

Parameters:

Returns:

  • (Void)


43033
43034
43035
43036
# File 'lib/ropencv/ropencv_types.rb', line 43033

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

#set_finest_scale(val) ⇒ Void Also known as: setFinestScale

Note:

method wrapper for void cv::DISOpticalFlow::setFinestScale(int val)

Parameters:

  • val (Fixnum)

Returns:

  • (Void)


42787
42788
42789
42790
# File 'lib/ropencv/ropencv_types.rb', line 42787

def set_finest_scale(val)
    __validate_pointer__
    Rbind::cv_dis_optical_flow_set_finest_scale( self, val)
end

#set_gradient_descent_iterations(val) ⇒ Void Also known as: setGradientDescentIterations

Note:

method wrapper for void cv::DISOpticalFlow::setGradientDescentIterations(int val)

Parameters:

  • val (Fixnum)

Returns:

  • (Void)


42838
42839
42840
42841
# File 'lib/ropencv/ropencv_types.rb', line 42838

def set_gradient_descent_iterations(val)
    __validate_pointer__
    Rbind::cv_dis_optical_flow_set_gradient_descent_iterations( self, val)
end

#set_patch_size(val) ⇒ Void Also known as: setPatchSize

Note:

method wrapper for void cv::DISOpticalFlow::setPatchSize(int val)

Parameters:

  • val (Fixnum)

Returns:

  • (Void)


42804
42805
42806
42807
# File 'lib/ropencv/ropencv_types.rb', line 42804

def set_patch_size(val)
    __validate_pointer__
    Rbind::cv_dis_optical_flow_set_patch_size( self, val)
end

#set_patch_stride(val) ⇒ Void Also known as: setPatchStride

Note:

method wrapper for void cv::DISOpticalFlow::setPatchStride(int val)

Parameters:

  • val (Fixnum)

Returns:

  • (Void)


42821
42822
42823
42824
# File 'lib/ropencv/ropencv_types.rb', line 42821

def set_patch_stride(val)
    __validate_pointer__
    Rbind::cv_dis_optical_flow_set_patch_stride( self, val)
end

#set_use_mean_normalization(val) ⇒ Void Also known as: setUseMeanNormalization

Note:

method wrapper for void cv::DISOpticalFlow::setUseMeanNormalization(bool val)

Parameters:

  • val (Bool)

Returns:

  • (Void)


42923
42924
42925
42926
# File 'lib/ropencv/ropencv_types.rb', line 42923

def set_use_mean_normalization(val)
    __validate_pointer__
    Rbind::cv_dis_optical_flow_set_use_mean_normalization( self, val)
end

#set_use_spatial_propagation(val) ⇒ Void Also known as: setUseSpatialPropagation

Note:

method wrapper for void cv::DISOpticalFlow::setUseSpatialPropagation(bool val)

Parameters:

  • val (Bool)

Returns:

  • (Void)


42940
42941
42942
42943
# File 'lib/ropencv/ropencv_types.rb', line 42940

def set_use_spatial_propagation(val)
    __validate_pointer__
    Rbind::cv_dis_optical_flow_set_use_spatial_propagation( self, val)
end

#set_variational_refinement_alpha(val) ⇒ Void Also known as: setVariationalRefinementAlpha

Note:

method wrapper for void cv::DISOpticalFlow::setVariationalRefinementAlpha(float val)

Parameters:

  • val (Float)

Returns:

  • (Void)


42872
42873
42874
42875
# File 'lib/ropencv/ropencv_types.rb', line 42872

def set_variational_refinement_alpha(val)
    __validate_pointer__
    Rbind::cv_dis_optical_flow_set_variational_refinement_alpha( self, val)
end

#set_variational_refinement_delta(val) ⇒ Void Also known as: setVariationalRefinementDelta

Note:

method wrapper for void cv::DISOpticalFlow::setVariationalRefinementDelta(float val)

Parameters:

  • val (Float)

Returns:

  • (Void)


42889
42890
42891
42892
# File 'lib/ropencv/ropencv_types.rb', line 42889

def set_variational_refinement_delta(val)
    __validate_pointer__
    Rbind::cv_dis_optical_flow_set_variational_refinement_delta( self, val)
end

#set_variational_refinement_gamma(val) ⇒ Void Also known as: setVariationalRefinementGamma

Note:

method wrapper for void cv::DISOpticalFlow::setVariationalRefinementGamma(float val)

Parameters:

  • val (Float)

Returns:

  • (Void)


42906
42907
42908
42909
# File 'lib/ropencv/ropencv_types.rb', line 42906

def set_variational_refinement_gamma(val)
    __validate_pointer__
    Rbind::cv_dis_optical_flow_set_variational_refinement_gamma( self, val)
end

#set_variational_refinement_iterations(val) ⇒ Void Also known as: setVariationalRefinementIterations

Note:

method wrapper for void cv::DISOpticalFlow::setVariationalRefinementIterations(int val)

Parameters:

  • val (Fixnum)

Returns:

  • (Void)


42855
42856
42857
42858
# File 'lib/ropencv/ropencv_types.rb', line 42855

def set_variational_refinement_iterations(val)
    __validate_pointer__
    Rbind::cv_dis_optical_flow_set_variational_refinement_iterations( self, val)
end

#to_sObject

converts DISOpticalFlow into a string by crawling through all its attributes



42764
42765
42766
# File 'lib/ropencv/ropencv_types.rb', line 42764

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

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

Note:

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

Parameters:

Returns:

  • (Void)


43010
43011
43012
43013
# File 'lib/ropencv/ropencv_types.rb', line 43010

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