Class: OpenCV::Cv::VariationalRefinement
- Inherits:
-
Object
- Object
- OpenCV::Cv::VariationalRefinement
- Extended by:
- FFI::DataConverter
- Defined in:
- lib/ropencv/ropencv_types.rb
Class Method Summary collapse
- .create ⇒ Cv::Ptr::Cv_VariationalRefinement
- .new(*args) ⇒ Object
-
.null ⇒ Object
returns a null pointer to the object.
Instance Method Summary collapse
- #calc(_i0, _i1, flow) ⇒ Void
-
#calcuv(_i0, _i1, flow_u, flow_v) ⇒ Void
(also: #calcUV)
methods.
- #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_alpha ⇒ Float (also: #getAlpha)
- #get_default_name ⇒ Std::String (also: #getDefaultName)
- #get_delta ⇒ Float (also: #getDelta)
- #get_fixed_point_iterations ⇒ Fixnum (also: #getFixedPointIterations)
- #get_gamma ⇒ Float (also: #getGamma)
- #get_omega ⇒ Float (also: #getOmega)
- #get_sor_iterations ⇒ Fixnum (also: #getSorIterations)
- #read(fn) ⇒ Void
- #save(filename) ⇒ Void
- #set_alpha(val) ⇒ Void (also: #setAlpha)
- #set_delta(val) ⇒ Void (also: #setDelta)
- #set_fixed_point_iterations(val) ⇒ Void (also: #setFixedPointIterations)
- #set_gamma(val) ⇒ Void (also: #setGamma)
- #set_omega(val) ⇒ Void (also: #setOmega)
- #set_sor_iterations(val) ⇒ Void (also: #setSorIterations)
-
#to_s ⇒ Object
converts VariationalRefinement into a string by crawling through all its attributes.
- #write(fs, name = Std::String.new()) ⇒ Void
Class Method Details
.create ⇒ Cv::Ptr::Cv_VariationalRefinement
wrapper for static method const cv::Ptrcv::VariationalRefinement cv::VariationalRefinement::create()
42285 42286 42287 |
# File 'lib/ropencv/ropencv_types.rb', line 42285 def self.create() Rbind::cv_variational_refinement_create() end |
.new(*args) ⇒ Object
42087 42088 42089 42090 42091 42092 42093 42094 |
# File 'lib/ropencv/ropencv_types.rb', line 42087 def self.new(*args) if args.first.is_a?(FFI::Pointer) || args.first.is_a?(VariationalRefinementStruct) 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
42083 42084 42085 |
# File 'lib/ropencv/ropencv_types.rb', line 42083 def self.null new(VariationalRefinementStruct.new) end |
Instance Method Details
#calc(_i0, _i1, flow) ⇒ Void
method wrapper for void cv::VariationalRefinement::calc(const cv::Mat I0, const cv::Mat I1, cv::Mat& flow)
42308 42309 42310 42311 |
# File 'lib/ropencv/ropencv_types.rb', line 42308 def calc(_i0, _i1, flow) __validate_pointer__ Rbind::cv_variational_refinement_calc( self, _i0, _i1, flow) end |
#calcuv(_i0, _i1, flow_u, flow_v) ⇒ Void Also known as: calcUV
method wrapper for void cv::VariationalRefinement::calcUV(const cv::Mat I0, const cv::Mat I1, cv::Mat& flow_u, cv::Mat& flow_v)
methods
42175 42176 42177 42178 |
# File 'lib/ropencv/ropencv_types.rb', line 42175 def calcuv(_i0, _i1, flow_u, flow_v) __validate_pointer__ Rbind::cv_variational_refinement_calcuv( self, _i0, _i1, flow_u, flow_v) end |
#cast_to_algorithm(parse_ownership) ⇒ Cv::Algorithm Also known as: castToAlgorithm
method wrapper for cv::Algorithm* cv::VariationalRefinement::castToAlgorithm(bool parse_ownership)
42324 42325 42326 42327 42328 42329 42330 42331 42332 |
# File 'lib/ropencv/ropencv_types.rb', line 42324 def cast_to_algorithm(parse_ownership) __validate_pointer__ result = Rbind::cv_variational_refinement_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::VariationalRefinement::castToDenseOpticalFlow(bool parse_ownership)
42292 42293 42294 42295 42296 42297 42298 42299 42300 |
# File 'lib/ropencv/ropencv_types.rb', line 42292 def cast_to_dense_optical_flow(parse_ownership) __validate_pointer__ result = Rbind::cv_variational_refinement_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::VariationalRefinement::clear()
42337 42338 42339 42340 |
# File 'lib/ropencv/ropencv_types.rb', line 42337 def clear() __validate_pointer__ Rbind::cv_variational_refinement_clear( self) end |
#collect_garbage ⇒ Void Also known as: collectGarbage
method wrapper for void cv::VariationalRefinement::collectGarbage()
42315 42316 42317 42318 |
# File 'lib/ropencv/ropencv_types.rb', line 42315 def collect_garbage() __validate_pointer__ Rbind::cv_variational_refinement_collect_garbage( self) end |
#empty ⇒ Bool
method wrapper for bool cv::VariationalRefinement::empty()
42361 42362 42363 42364 |
# File 'lib/ropencv/ropencv_types.rb', line 42361 def empty() __validate_pointer__ Rbind::cv_variational_refinement_empty( self) end |
#get_alpha ⇒ Float Also known as: getAlpha
method wrapper for float cv::VariationalRefinement::getAlpha()
42234 42235 42236 42237 |
# File 'lib/ropencv/ropencv_types.rb', line 42234 def get_alpha() __validate_pointer__ Rbind::cv_variational_refinement_get_alpha( self) end |
#get_default_name ⇒ Std::String Also known as: getDefaultName
method wrapper for const std::string cv::VariationalRefinement::getDefaultName()
42376 42377 42378 42379 42380 42381 42382 42383 42384 |
# File 'lib/ropencv/ropencv_types.rb', line 42376 def get_default_name() __validate_pointer__ result = Rbind::cv_variational_refinement_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_delta ⇒ Float Also known as: getDelta
method wrapper for float cv::VariationalRefinement::getDelta()
42251 42252 42253 42254 |
# File 'lib/ropencv/ropencv_types.rb', line 42251 def get_delta() __validate_pointer__ Rbind::cv_variational_refinement_get_delta( self) end |
#get_fixed_point_iterations ⇒ Fixnum Also known as: getFixedPointIterations
method wrapper for int cv::VariationalRefinement::getFixedPointIterations()
42183 42184 42185 42186 |
# File 'lib/ropencv/ropencv_types.rb', line 42183 def get_fixed_point_iterations() __validate_pointer__ Rbind::cv_variational_refinement_get_fixed_point_iterations( self) end |
#get_gamma ⇒ Float Also known as: getGamma
method wrapper for float cv::VariationalRefinement::getGamma()
42268 42269 42270 42271 |
# File 'lib/ropencv/ropencv_types.rb', line 42268 def get_gamma() __validate_pointer__ Rbind::cv_variational_refinement_get_gamma( self) end |
#get_omega ⇒ Float Also known as: getOmega
method wrapper for float cv::VariationalRefinement::getOmega()
42217 42218 42219 42220 |
# File 'lib/ropencv/ropencv_types.rb', line 42217 def get_omega() __validate_pointer__ Rbind::cv_variational_refinement_get_omega( self) end |
#get_sor_iterations ⇒ Fixnum Also known as: getSorIterations
method wrapper for int cv::VariationalRefinement::getSorIterations()
42200 42201 42202 42203 |
# File 'lib/ropencv/ropencv_types.rb', line 42200 def get_sor_iterations() __validate_pointer__ Rbind::cv_variational_refinement_get_sor_iterations( self) end |
#read(fn) ⇒ Void
method wrapper for void cv::VariationalRefinement::read(const cv::FileNode fn)
42354 42355 42356 42357 |
# File 'lib/ropencv/ropencv_types.rb', line 42354 def read(fn) __validate_pointer__ Rbind::cv_variational_refinement_read( self, fn) end |
#save(filename) ⇒ Void
method wrapper for void cv::VariationalRefinement::save(const std::string filename)
42369 42370 42371 42372 |
# File 'lib/ropencv/ropencv_types.rb', line 42369 def save(filename) __validate_pointer__ Rbind::cv_variational_refinement_save( self, filename) end |
#set_alpha(val) ⇒ Void Also known as: setAlpha
method wrapper for void cv::VariationalRefinement::setAlpha(float val)
42243 42244 42245 42246 |
# File 'lib/ropencv/ropencv_types.rb', line 42243 def set_alpha(val) __validate_pointer__ Rbind::cv_variational_refinement_set_alpha( self, val) end |
#set_delta(val) ⇒ Void Also known as: setDelta
method wrapper for void cv::VariationalRefinement::setDelta(float val)
42260 42261 42262 42263 |
# File 'lib/ropencv/ropencv_types.rb', line 42260 def set_delta(val) __validate_pointer__ Rbind::cv_variational_refinement_set_delta( self, val) end |
#set_fixed_point_iterations(val) ⇒ Void Also known as: setFixedPointIterations
method wrapper for void cv::VariationalRefinement::setFixedPointIterations(int val)
42192 42193 42194 42195 |
# File 'lib/ropencv/ropencv_types.rb', line 42192 def set_fixed_point_iterations(val) __validate_pointer__ Rbind::cv_variational_refinement_set_fixed_point_iterations( self, val) end |
#set_gamma(val) ⇒ Void Also known as: setGamma
method wrapper for void cv::VariationalRefinement::setGamma(float val)
42277 42278 42279 42280 |
# File 'lib/ropencv/ropencv_types.rb', line 42277 def set_gamma(val) __validate_pointer__ Rbind::cv_variational_refinement_set_gamma( self, val) end |
#set_omega(val) ⇒ Void Also known as: setOmega
method wrapper for void cv::VariationalRefinement::setOmega(float val)
42226 42227 42228 42229 |
# File 'lib/ropencv/ropencv_types.rb', line 42226 def set_omega(val) __validate_pointer__ Rbind::cv_variational_refinement_set_omega( self, val) end |
#set_sor_iterations(val) ⇒ Void Also known as: setSorIterations
method wrapper for void cv::VariationalRefinement::setSorIterations(int val)
42209 42210 42211 42212 |
# File 'lib/ropencv/ropencv_types.rb', line 42209 def set_sor_iterations(val) __validate_pointer__ Rbind::cv_variational_refinement_set_sor_iterations( self, val) end |
#to_s ⇒ Object
converts VariationalRefinement into a string by crawling through all its attributes
42160 42161 42162 |
# File 'lib/ropencv/ropencv_types.rb', line 42160 def to_s "#<cv::VariationalRefinement >" end |
#write(fs, name = Std::String.new()) ⇒ Void
method wrapper for void cv::VariationalRefinement::write(const cv::Ptrcv::FileStorage fs, const std::string name = String())
42346 42347 42348 42349 |
# File 'lib/ropencv/ropencv_types.rb', line 42346 def write(fs, name = Std::String.new()) __validate_pointer__ Rbind::cv_variational_refinement_write( self, fs, name) end |