Class: OpenCV::Cv::DISOpticalFlow
- Inherits:
-
Object
- Object
- OpenCV::Cv::DISOpticalFlow
- 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
- .create(preset = DISOpticalFlow::PRESET_FAST) ⇒ Cv::Ptr::Cv_DISOpticalFlow
- .new(*args) ⇒ Object
-
.null ⇒ Object
returns a null pointer to the object.
Instance Method Summary collapse
- #calc(_i0, _i1, flow) ⇒ Void
- #cast_to_algorithm(parse_ownership) ⇒ Cv::Algorithm (also: #castToAlgorithm)
- #cast_to_dense_optical_flow(parse_ownership) ⇒ Cv::DenseOpticalFlow (also: #castToDenseOpticalFlow)
- #clear ⇒ Void
- #collect_garbage ⇒ Void (also: #collectGarbage)
- #empty ⇒ Bool
- #get_default_name ⇒ Std::String (also: #getDefaultName)
-
#get_finest_scale ⇒ Fixnum
(also: #getFinestScale)
methods.
- #get_gradient_descent_iterations ⇒ Fixnum (also: #getGradientDescentIterations)
- #get_patch_size ⇒ Fixnum (also: #getPatchSize)
- #get_patch_stride ⇒ Fixnum (also: #getPatchStride)
- #get_use_mean_normalization ⇒ Bool (also: #getUseMeanNormalization)
- #get_use_spatial_propagation ⇒ Bool (also: #getUseSpatialPropagation)
- #get_variational_refinement_alpha ⇒ Float (also: #getVariationalRefinementAlpha)
- #get_variational_refinement_delta ⇒ Float (also: #getVariationalRefinementDelta)
- #get_variational_refinement_gamma ⇒ Float (also: #getVariationalRefinementGamma)
- #get_variational_refinement_iterations ⇒ Fixnum (also: #getVariationalRefinementIterations)
- #read(fn) ⇒ Void
- #save(filename) ⇒ Void
- #set_finest_scale(val) ⇒ Void (also: #setFinestScale)
- #set_gradient_descent_iterations(val) ⇒ Void (also: #setGradientDescentIterations)
- #set_patch_size(val) ⇒ Void (also: #setPatchSize)
- #set_patch_stride(val) ⇒ Void (also: #setPatchStride)
- #set_use_mean_normalization(val) ⇒ Void (also: #setUseMeanNormalization)
- #set_use_spatial_propagation(val) ⇒ Void (also: #setUseSpatialPropagation)
- #set_variational_refinement_alpha(val) ⇒ Void (also: #setVariationalRefinementAlpha)
- #set_variational_refinement_delta(val) ⇒ Void (also: #setVariationalRefinementDelta)
- #set_variational_refinement_gamma(val) ⇒ Void (also: #setVariationalRefinementGamma)
- #set_variational_refinement_iterations(val) ⇒ Void (also: #setVariationalRefinementIterations)
-
#to_s ⇒ Object
converts DISOpticalFlow into a string by crawling through all its attributes.
- #write(fs, name = Std::String.new()) ⇒ Void
Class Method Details
.create(preset = DISOpticalFlow::PRESET_FAST) ⇒ Cv::Ptr::Cv_DISOpticalFlow
wrapper for static method const cv::Ptrcv::DISOpticalFlow cv::DISOpticalFlow::create(int preset = DISOpticalFlow::PRESET_FAST)
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
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 |
.null ⇒ Object
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
method wrapper for void cv::DISOpticalFlow::calc(const cv::Mat I0, const cv::Mat I1, cv::Mat& flow)
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
method wrapper for cv::Algorithm* cv::DISOpticalFlow::castToAlgorithm(bool parse_ownership)
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
method wrapper for cv::DenseOpticalFlow* cv::DISOpticalFlow::castToDenseOpticalFlow(bool parse_ownership)
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 |
#clear ⇒ Void
method wrapper for void cv::DISOpticalFlow::clear()
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_garbage ⇒ Void Also known as: collectGarbage
method wrapper for void cv::DISOpticalFlow::collectGarbage()
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 |
#empty ⇒ Bool
method wrapper for bool cv::DISOpticalFlow::empty()
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_name ⇒ Std::String Also known as: getDefaultName
method wrapper for const std::string cv::DISOpticalFlow::getDefaultName()
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_scale ⇒ Fixnum Also known as: getFinestScale
method wrapper for int cv::DISOpticalFlow::getFinestScale()
methods
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_iterations ⇒ Fixnum Also known as: getGradientDescentIterations
method wrapper for int cv::DISOpticalFlow::getGradientDescentIterations()
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_size ⇒ Fixnum Also known as: getPatchSize
method wrapper for int cv::DISOpticalFlow::getPatchSize()
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_stride ⇒ Fixnum Also known as: getPatchStride
method wrapper for int cv::DISOpticalFlow::getPatchStride()
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_normalization ⇒ Bool Also known as: getUseMeanNormalization
method wrapper for bool cv::DISOpticalFlow::getUseMeanNormalization()
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_propagation ⇒ Bool Also known as: getUseSpatialPropagation
method wrapper for bool cv::DISOpticalFlow::getUseSpatialPropagation()
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_alpha ⇒ Float Also known as: getVariationalRefinementAlpha
method wrapper for float cv::DISOpticalFlow::getVariationalRefinementAlpha()
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_delta ⇒ Float Also known as: getVariationalRefinementDelta
method wrapper for float cv::DISOpticalFlow::getVariationalRefinementDelta()
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_gamma ⇒ Float Also known as: getVariationalRefinementGamma
method wrapper for float cv::DISOpticalFlow::getVariationalRefinementGamma()
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_iterations ⇒ Fixnum Also known as: getVariationalRefinementIterations
method wrapper for int cv::DISOpticalFlow::getVariationalRefinementIterations()
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
method wrapper for void cv::DISOpticalFlow::read(const cv::FileNode fn)
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
method wrapper for void cv::DISOpticalFlow::save(const std::string filename)
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
method wrapper for void cv::DISOpticalFlow::setFinestScale(int val)
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
method wrapper for void cv::DISOpticalFlow::setGradientDescentIterations(int val)
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
method wrapper for void cv::DISOpticalFlow::setPatchSize(int val)
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
method wrapper for void cv::DISOpticalFlow::setPatchStride(int val)
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
method wrapper for void cv::DISOpticalFlow::setUseMeanNormalization(bool val)
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
method wrapper for void cv::DISOpticalFlow::setUseSpatialPropagation(bool val)
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
method wrapper for void cv::DISOpticalFlow::setVariationalRefinementAlpha(float val)
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
method wrapper for void cv::DISOpticalFlow::setVariationalRefinementDelta(float val)
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
method wrapper for void cv::DISOpticalFlow::setVariationalRefinementGamma(float val)
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
method wrapper for void cv::DISOpticalFlow::setVariationalRefinementIterations(int val)
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_s ⇒ Object
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
method wrapper for void cv::DISOpticalFlow::write(const cv::Ptrcv::FileStorage fs, const std::string name = String())
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 |