Class: OpenCV::Cv::Detail::VoronoiSeamFinder

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

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.new(*args) ⇒ Object

Raises:

  • (ArgumentError)


16355
16356
16357
16358
16359
16360
16361
16362
# File 'lib/ropencv/ropencv_types.rb', line 16355

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



16351
16352
16353
# File 'lib/ropencv/ropencv_types.rb', line 16351

def self.null
    new(VoronoiSeamFinderStruct.new)
end

Instance Method Details

#cast_to_pairwise_seam_finder(parse_ownership) ⇒ Cv::Detail::PairwiseSeamFinder Also known as: castToPairwiseSeamFinder

Note:

method wrapper for cv::detail::PairwiseSeamFinder* cv::detail::VoronoiSeamFinder::castToPairwiseSeamFinder(bool parse_ownership)

Parameters:

  • parse_ownership (Bool)

Returns:



16450
16451
16452
16453
16454
16455
16456
16457
16458
# File 'lib/ropencv/ropencv_types.rb', line 16450

def cast_to_pairwise_seam_finder(parse_ownership)
    __validate_pointer__
    result = Rbind::cv_detail_voronoi_seam_finder_cast_to_pairwise_seam_finder( 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_seam_finder(parse_ownership) ⇒ Cv::Detail::SeamFinder Also known as: castToSeamFinder

Note:

method wrapper for cv::detail::SeamFinder* cv::detail::VoronoiSeamFinder::castToSeamFinder(bool parse_ownership)

Parameters:

  • parse_ownership (Bool)

Returns:



16464
16465
16466
16467
16468
16469
16470
16471
16472
# File 'lib/ropencv/ropencv_types.rb', line 16464

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

#find(src, corners, masks) ⇒ Void

Note:

method wrapper for void cv::detail::VoronoiSeamFinder::find(const std::vectorcv::UMat src, const std::vectorcv::Point corners, std::vectorcv::UMat& masks)

methods

Parameters:

Returns:

  • (Void)


16442
16443
16444
16445
# File 'lib/ropencv/ropencv_types.rb', line 16442

def find(src, corners, masks)
    __validate_pointer__
    Rbind::cv_detail_voronoi_seam_finder_find( self, src, corners, masks)
end

#to_sObject

converts VoronoiSeamFinder into a string by crawling through all its attributes



16428
16429
16430
# File 'lib/ropencv/ropencv_types.rb', line 16428

def to_s
    "#<cv::detail::VoronoiSeamFinder >"
end