Class: OpenCV::Cv::ThinPlateSplineShapeTransformer
- Inherits:
-
Object
- Object
- OpenCV::Cv::ThinPlateSplineShapeTransformer
- Extended by:
- FFI::DataConverter
- Defined in:
- lib/ropencv/ropencv_types.rb
Class Method Summary collapse
- .new(*args) ⇒ Object
-
.null ⇒ Object
returns a null pointer to the object.
Instance Method Summary collapse
- #apply_transformation(input, output = Cv::Mat.new()) ⇒ Float (also: #applyTransformation)
- #cast_to_algorithm(parse_ownership) ⇒ Cv::Algorithm (also: #castToAlgorithm)
- #cast_to_shape_transformer(parse_ownership) ⇒ Cv::ShapeTransformer (also: #castToShapeTransformer)
- #clear ⇒ Void
- #empty ⇒ Bool
- #estimate_transformation(transforming_shape, target_shape, matches) ⇒ Void (also: #estimateTransformation)
- #get_default_name ⇒ Std::String (also: #getDefaultName)
- #get_regularization_parameter ⇒ Double (also: #getRegularizationParameter)
- #read(fn) ⇒ Void
- #save(filename) ⇒ Void
-
#set_regularization_parameter(beta) ⇒ Void
(also: #setRegularizationParameter)
methods.
-
#to_s ⇒ Object
converts ThinPlateSplineShapeTransformer into a string by crawling through all its attributes.
- #warp_image(transforming_image, output, flags = INTER_LINEAR, border_mode = BORDER_CONSTANT, border_value = Cv::Scalar.new()) ⇒ Void (also: #warpImage)
- #write(fs, name = Std::String.new()) ⇒ Void
Class Method Details
.new(*args) ⇒ Object
73326 73327 73328 73329 73330 73331 73332 73333 |
# File 'lib/ropencv/ropencv_types.rb', line 73326 def self.new(*args) if args.first.is_a?(FFI::Pointer) || args.first.is_a?(ThinPlateSplineShapeTransformerStruct) 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
73322 73323 73324 |
# File 'lib/ropencv/ropencv_types.rb', line 73322 def self.null new(ThinPlateSplineShapeTransformerStruct.new) end |
Instance Method Details
#apply_transformation(input, output = Cv::Mat.new()) ⇒ Float Also known as: applyTransformation
method wrapper for float cv::ThinPlateSplineShapeTransformer::applyTransformation(const cv::Mat input, const cv::Mat output = Mat()/O)
73454 73455 73456 73457 |
# File 'lib/ropencv/ropencv_types.rb', line 73454 def apply_transformation(input, output = Cv::Mat.new()) __validate_pointer__ Rbind::cv_thin_plate_spline_shape_transformer_apply_transformation( self, input, output) end |
#cast_to_algorithm(parse_ownership) ⇒ Cv::Algorithm Also known as: castToAlgorithm
method wrapper for cv::Algorithm* cv::ThinPlateSplineShapeTransformer::castToAlgorithm(bool parse_ownership)
73476 73477 73478 73479 73480 73481 73482 73483 73484 |
# File 'lib/ropencv/ropencv_types.rb', line 73476 def cast_to_algorithm(parse_ownership) __validate_pointer__ result = Rbind::cv_thin_plate_spline_shape_transformer_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_shape_transformer(parse_ownership) ⇒ Cv::ShapeTransformer Also known as: castToShapeTransformer
method wrapper for cv::ShapeTransformer* cv::ThinPlateSplineShapeTransformer::castToShapeTransformer(bool parse_ownership)
73428 73429 73430 73431 73432 73433 73434 73435 73436 |
# File 'lib/ropencv/ropencv_types.rb', line 73428 def cast_to_shape_transformer(parse_ownership) __validate_pointer__ result = Rbind::cv_thin_plate_spline_shape_transformer_cast_to_shape_transformer( 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::ThinPlateSplineShapeTransformer::clear()
73489 73490 73491 73492 |
# File 'lib/ropencv/ropencv_types.rb', line 73489 def clear() __validate_pointer__ Rbind::cv_thin_plate_spline_shape_transformer_clear( self) end |
#empty ⇒ Bool
method wrapper for bool cv::ThinPlateSplineShapeTransformer::empty()
73513 73514 73515 73516 |
# File 'lib/ropencv/ropencv_types.rb', line 73513 def empty() __validate_pointer__ Rbind::cv_thin_plate_spline_shape_transformer_empty( self) end |
#estimate_transformation(transforming_shape, target_shape, matches) ⇒ Void Also known as: estimateTransformation
method wrapper for void cv::ThinPlateSplineShapeTransformer::estimateTransformation(const cv::Mat transformingShape, const cv::Mat targetShape, const std::vectorcv::DMatch matches)
73444 73445 73446 73447 |
# File 'lib/ropencv/ropencv_types.rb', line 73444 def estimate_transformation(transforming_shape, target_shape, matches) __validate_pointer__ Rbind::cv_thin_plate_spline_shape_transformer_estimate_transformation( self, transforming_shape, target_shape, matches) end |
#get_default_name ⇒ Std::String Also known as: getDefaultName
method wrapper for const std::string cv::ThinPlateSplineShapeTransformer::getDefaultName()
73528 73529 73530 73531 73532 73533 73534 73535 73536 |
# File 'lib/ropencv/ropencv_types.rb', line 73528 def get_default_name() __validate_pointer__ result = Rbind::cv_thin_plate_spline_shape_transformer_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_regularization_parameter ⇒ Double Also known as: getRegularizationParameter
method wrapper for double cv::ThinPlateSplineShapeTransformer::getRegularizationParameter()
73419 73420 73421 73422 |
# File 'lib/ropencv/ropencv_types.rb', line 73419 def get_regularization_parameter() __validate_pointer__ Rbind::cv_thin_plate_spline_shape_transformer_get_regularization_parameter( self) end |
#read(fn) ⇒ Void
method wrapper for void cv::ThinPlateSplineShapeTransformer::read(const cv::FileNode fn)
73506 73507 73508 73509 |
# File 'lib/ropencv/ropencv_types.rb', line 73506 def read(fn) __validate_pointer__ Rbind::cv_thin_plate_spline_shape_transformer_read( self, fn) end |
#save(filename) ⇒ Void
method wrapper for void cv::ThinPlateSplineShapeTransformer::save(const std::string filename)
73521 73522 73523 73524 |
# File 'lib/ropencv/ropencv_types.rb', line 73521 def save(filename) __validate_pointer__ Rbind::cv_thin_plate_spline_shape_transformer_save( self, filename) end |
#set_regularization_parameter(beta) ⇒ Void Also known as: setRegularizationParameter
method wrapper for void cv::ThinPlateSplineShapeTransformer::setRegularizationParameter(double beta)
methods
73411 73412 73413 73414 |
# File 'lib/ropencv/ropencv_types.rb', line 73411 def set_regularization_parameter(beta) __validate_pointer__ Rbind::cv_thin_plate_spline_shape_transformer_set_regularization_parameter( self, beta) end |
#to_s ⇒ Object
converts ThinPlateSplineShapeTransformer into a string by crawling through all its attributes
73399 73400 73401 |
# File 'lib/ropencv/ropencv_types.rb', line 73399 def to_s "#<cv::ThinPlateSplineShapeTransformer >" end |
#warp_image(transforming_image, output, flags = INTER_LINEAR, border_mode = BORDER_CONSTANT, border_value = Cv::Scalar.new()) ⇒ Void Also known as: warpImage
method wrapper for void cv::ThinPlateSplineShapeTransformer::warpImage(const cv::Mat transformingImage, cv::Mat& output, int flags = INTER_LINEAR, int borderMode = BORDER_CONSTANT, const cv::Scalar borderValue = Scalar())
73467 73468 73469 73470 |
# File 'lib/ropencv/ropencv_types.rb', line 73467 def warp_image(transforming_image, output, flags = INTER_LINEAR, border_mode = BORDER_CONSTANT, border_value = Cv::Scalar.new()) __validate_pointer__ Rbind::cv_thin_plate_spline_shape_transformer_warp_image( self, transforming_image, output, flags, border_mode, border_value) end |
#write(fs, name = Std::String.new()) ⇒ Void
method wrapper for void cv::ThinPlateSplineShapeTransformer::write(const cv::Ptrcv::FileStorage fs, const std::string name = String())
73498 73499 73500 73501 |
# File 'lib/ropencv/ropencv_types.rb', line 73498 def write(fs, name = Std::String.new()) __validate_pointer__ Rbind::cv_thin_plate_spline_shape_transformer_write( self, fs, name) end |