Class: OpenCV::Cv::DenseOpticalFlow
- Inherits:
-
Object
- Object
- OpenCV::Cv::DenseOpticalFlow
- Extended by:
- FFI::DataConverter
- Defined in:
- lib/ropencv/ropencv_types.rb
Class Method Summary collapse
- .cast_from_algorithm(ptr, parse_ownership) ⇒ Cv::DenseOpticalFlow (also: castFromAlgorithm)
- .new(*args) ⇒ Object
-
.null ⇒ Object
returns a null pointer to the object.
Instance Method Summary collapse
-
#calc(_i0, _i1, flow) ⇒ Void
methods.
- #cast_to_algorithm(parse_ownership) ⇒ Cv::Algorithm (also: #castToAlgorithm)
- #clear ⇒ Void
- #collect_garbage ⇒ Void (also: #collectGarbage)
- #empty ⇒ Bool
- #get_default_name ⇒ Std::String (also: #getDefaultName)
- #read(fn) ⇒ Void
- #save(filename) ⇒ Void
-
#to_s ⇒ Object
converts DenseOpticalFlow into a string by crawling through all its attributes.
- #write(fs, name = Std::String.new()) ⇒ Void
Class Method Details
.cast_from_algorithm(ptr, parse_ownership) ⇒ Cv::DenseOpticalFlow Also known as: castFromAlgorithm
wrapper for static method cv::DenseOpticalFlow* cv::DenseOpticalFlow::castFromAlgorithm(cv::Algorithm* ptr, bool parse_ownership)
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
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 |
.null ⇒ Object
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
method wrapper for void cv::DenseOpticalFlow::calc(const cv::Mat I0, const cv::Mat I1, cv::Mat& flow)
methods
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
method wrapper for cv::Algorithm* cv::DenseOpticalFlow::castToAlgorithm(bool parse_ownership)
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 |
#clear ⇒ Void
method wrapper for void cv::DenseOpticalFlow::clear()
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_garbage ⇒ Void Also known as: collectGarbage
method wrapper for void cv::DenseOpticalFlow::collectGarbage()
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 |
#empty ⇒ Bool
method wrapper for bool cv::DenseOpticalFlow::empty()
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_name ⇒ Std::String Also known as: getDefaultName
method wrapper for const std::string cv::DenseOpticalFlow::getDefaultName()
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
method wrapper for void cv::DenseOpticalFlow::read(const cv::FileNode fn)
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
method wrapper for void cv::DenseOpticalFlow::save(const std::string filename)
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_s ⇒ Object
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
method wrapper for void cv::DenseOpticalFlow::write(const cv::Ptrcv::FileStorage fs, const std::string name = String())
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 |