Class: OpenCV::Cv::Detail::NoSeamFinder

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)


16042
16043
16044
16045
16046
16047
16048
16049
# File 'lib/ropencv/ropencv_types.rb', line 16042

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



16038
16039
16040
# File 'lib/ropencv/ropencv_types.rb', line 16038

def self.null
    new(NoSeamFinderStruct.new)
end

Instance Method Details

#cast_to_seam_finder(parse_ownership) ⇒ Cv::Detail::SeamFinder Also known as: castToSeamFinder

Note:

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



16137
16138
16139
16140
16141
16142
16143
16144
16145
# File 'lib/ropencv/ropencv_types.rb', line 16137

def cast_to_seam_finder(parse_ownership)
    __validate_pointer__
    result = Rbind::cv_detail_no_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(_arg1, _arg2, _arg3) ⇒ Void

Note:

method wrapper for void cv::detail::NoSeamFinder::find(const std::vectorcv::UMat arg1, const std::vectorcv::Point arg2, std::vectorcv::UMat& arg3)

methods



16129
16130
16131
16132
# File 'lib/ropencv/ropencv_types.rb', line 16129

def find(_arg1, _arg2, _arg3)
    __validate_pointer__
    Rbind::cv_detail_no_seam_finder_find( self, _arg1, _arg2, _arg3)
end

#to_sObject

converts NoSeamFinder into a string by crawling through all its attributes



16115
16116
16117
# File 'lib/ropencv/ropencv_types.rb', line 16115

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