Class: OpenCV::Cv::Detail::BlocksGainCompensator

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

.blocks_gain_compensator(bl_width = 32, bl_height = 32) ⇒ Object .blocks_gain_compensator(bl_width, bl_height, nr_feeds) ⇒ Object

Overloads:

  • .blocks_gain_compensator(bl_width = 32, bl_height = 32) ⇒ Object

    Parameters:

    • bl_width (Fixnum) (defaults to: 32)
    • bl_height (Fixnum) (defaults to: 32)
  • .blocks_gain_compensator(bl_width, bl_height, nr_feeds) ⇒ Object

    Parameters:

    • bl_width (Fixnum)
    • bl_height (Fixnum)
    • nr_feeds (Fixnum)

Raises:

  • (ArgumentError)


13343
13344
13345
13346
13347
13348
13349
13350
13351
13352
13353
13354
13355
13356
13357
13358
13359
13360
13361
13362
13363
13364
13365
13366
13367
13368
13369
13370
13371
13372
13373
13374
13375
13376
13377
# File 'lib/ropencv/ropencv_types.rb', line 13343

def self.new(*args)
    if args.first.is_a?(FFI::Pointer) || args.first.is_a?(BlocksGainCompensatorStruct)
        raise ArgumentError, "too many arguments for creating #{self.name} from Pointer" unless args.size == 1
        return super(args.first)
    end
    # overloaded method wrapper for cv::detail::BlocksGainCompensator::BlocksGainCompensator(int bl_width = 32, int bl_height = 32)
    @@cv_detail_blocks_gain_compensator_blocks_gain_compensator_defaults0 ||= [32, 32]
    if(args.size >= 0 && args.size <= 2)
        targs = args.clone
        targs.size.upto(1) do |i|
            targs[i] = @@cv_detail_blocks_gain_compensator_blocks_gain_compensator_defaults0[i]
        end
        begin
                return Rbind::cv_detail_blocks_gain_compensator_blocks_gain_compensator(*targs)
        rescue TypeError => e
            @error = e
        end
    end

    # overloaded method wrapper for cv::detail::BlocksGainCompensator::BlocksGainCompensator(int bl_width, int bl_height, int nr_feeds)
    @@cv_detail_blocks_gain_compensator_blocks_gain_compensator__2_defaults1 ||= [nil, nil, nil]
    if(args.size >= 3 && args.size <= 3)
        targs = args.clone
        targs.size.upto(2) do |i|
            targs[i] = @@cv_detail_blocks_gain_compensator_blocks_gain_compensator__2_defaults1[i]
        end
        begin
                return Rbind::cv_detail_blocks_gain_compensator_blocks_gain_compensator__2(*targs)
        rescue TypeError => e
            @error = e
        end
    end

    raise ArgumentError, "no constructor for #{self}(#{args.inspect})"
end

.nullObject

returns a null pointer to the object



13331
13332
13333
# File 'lib/ropencv/ropencv_types.rb', line 13331

def self.null
    new(BlocksGainCompensatorStruct.new)
end

Instance Method Details

#apply(index, corner, image, mask) ⇒ Void

Note:

method wrapper for void cv::detail::BlocksGainCompensator::apply(int index, const cv::Point corner, cv::Mat& image, const cv::Mat mask)

methods

Parameters:

Returns:

  • (Void)


13458
13459
13460
13461
# File 'lib/ropencv/ropencv_types.rb', line 13458

def apply(index, corner, image, mask)
    __validate_pointer__
    Rbind::cv_detail_blocks_gain_compensator_apply( self, index, corner, image, mask)
end

#cast_to_blocks_compensator(parse_ownership) ⇒ Cv::Detail::BlocksCompensator Also known as: castToBlocksCompensator

Note:

method wrapper for cv::detail::BlocksCompensator* cv::detail::BlocksGainCompensator::castToBlocksCompensator(bool parse_ownership)

Parameters:

  • parse_ownership (Bool)

Returns:



13484
13485
13486
13487
13488
13489
13490
13491
13492
# File 'lib/ropencv/ropencv_types.rb', line 13484

def cast_to_blocks_compensator(parse_ownership)
    __validate_pointer__
    result = Rbind::cv_detail_blocks_gain_compensator_cast_to_blocks_compensator( 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_exposure_compensator(parse_ownership) ⇒ Cv::Detail::ExposureCompensator Also known as: castToExposureCompensator

Note:

method wrapper for cv::detail::ExposureCompensator* cv::detail::BlocksGainCompensator::castToExposureCompensator(bool parse_ownership)

Parameters:

  • parse_ownership (Bool)

Returns:



13604
13605
13606
13607
13608
13609
13610
13611
13612
# File 'lib/ropencv/ropencv_types.rb', line 13604

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

#get_block_sizeCv::Size Also known as: getBlockSize

Note:

method wrapper for const cv::Size cv::detail::BlocksGainCompensator::getBlockSize()

Returns:



13573
13574
13575
13576
13577
13578
13579
13580
13581
# File 'lib/ropencv/ropencv_types.rb', line 13573

def get_block_size()
    __validate_pointer__
    result = Rbind::cv_detail_blocks_gain_compensator_get_block_size( 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_mat_gains(umv) ⇒ Void Also known as: getMatGains

Note:

method wrapper for void cv::detail::BlocksGainCompensator::getMatGains(std::vectorcv::Mat& umv)

Parameters:

Returns:

  • (Void)


13466
13467
13468
13469
# File 'lib/ropencv/ropencv_types.rb', line 13466

def get_mat_gains(umv)
    __validate_pointer__
    Rbind::cv_detail_blocks_gain_compensator_get_mat_gains( self, umv)
end

#get_nr_feedsFixnum Also known as: getNrFeeds

Note:

method wrapper for int cv::detail::BlocksGainCompensator::getNrFeeds()

Returns:

  • (Fixnum)


13506
13507
13508
13509
# File 'lib/ropencv/ropencv_types.rb', line 13506

def get_nr_feeds()
    __validate_pointer__
    Rbind::cv_detail_blocks_gain_compensator_get_nr_feeds( self)
end

#get_nr_gains_filtering_iterationsFixnum Also known as: getNrGainsFilteringIterations

Note:

method wrapper for int cv::detail::BlocksGainCompensator::getNrGainsFilteringIterations()

Returns:

  • (Fixnum)


13595
13596
13597
13598
# File 'lib/ropencv/ropencv_types.rb', line 13595

def get_nr_gains_filtering_iterations()
    __validate_pointer__
    Rbind::cv_detail_blocks_gain_compensator_get_nr_gains_filtering_iterations( self)
end

#get_similarity_thresholdDouble Also known as: getSimilarityThreshold

Note:

method wrapper for double cv::detail::BlocksGainCompensator::getSimilarityThreshold()

Returns:

  • (Double)


13523
13524
13525
13526
# File 'lib/ropencv/ropencv_types.rb', line 13523

def get_similarity_threshold()
    __validate_pointer__
    Rbind::cv_detail_blocks_gain_compensator_get_similarity_threshold( self)
end

#get_update_gainBool Also known as: getUpdateGain

Note:

method wrapper for bool cv::detail::BlocksGainCompensator::getUpdateGain()

Returns:

  • (Bool)


13626
13627
13628
13629
# File 'lib/ropencv/ropencv_types.rb', line 13626

def get_update_gain()
    __validate_pointer__
    Rbind::cv_detail_blocks_gain_compensator_get_update_gain( self)
end

#set_block_size(width, height) ⇒ Void #set_block_size(size) ⇒ Void

Note:

wrapper for overloaded method set_block_size

Overloads:

  • #set_block_size(width, height) ⇒ Void

    Parameters:

    • width (Fixnum)
    • height (Fixnum)

    Returns:

    • (Void)
  • #set_block_size(size) ⇒ Void

    Parameters:

    Returns:

    • (Void)

Raises:

  • (ArgumentError)


13538
13539
13540
13541
13542
13543
13544
13545
13546
13547
13548
13549
13550
13551
13552
13553
13554
13555
13556
13557
13558
13559
13560
13561
13562
13563
13564
13565
13566
13567
13568
13569
# File 'lib/ropencv/ropencv_types.rb', line 13538

def set_block_size(*args)
    __validate_pointer__
    # overloaded method wrapper for void cv::detail::BlocksGainCompensator::setBlockSize(int width, int height)
    @@cv_detail_blocks_gain_compensator_set_block_size_defaults0 ||= [nil, nil]
    if(args.size >= 2 && args.size <= 2)
        targs = args.clone
        targs.size.upto(1) do |i|
            targs[i] = @@cv_detail_blocks_gain_compensator_set_block_size_defaults0[i]
        end
        begin
                return Rbind::cv_detail_blocks_gain_compensator_set_block_size(self,*targs)
        rescue TypeError => e
            @error = e
        end
    end

    # overloaded method wrapper for void cv::detail::BlocksGainCompensator::setBlockSize(const cv::Size size)
    @@cv_detail_blocks_gain_compensator_set_block_size__2_defaults1 ||= [nil]
    if(args.size >= 1 && args.size <= 1)
        targs = args.clone
        targs.size.upto(0) do |i|
            targs[i] = @@cv_detail_blocks_gain_compensator_set_block_size__2_defaults1[i]
        end
        begin
                return Rbind::cv_detail_blocks_gain_compensator_set_block_size__2(self,*targs)
        rescue TypeError => e
            @error = e
        end
    end

    raise ArgumentError, "No overloaded signature fits to: #{args.map(&:class)}"
end

#set_mat_gains(umv) ⇒ Void Also known as: setMatGains

Note:

method wrapper for void cv::detail::BlocksGainCompensator::setMatGains(const std::vectorcv::Mat umv)

Parameters:

Returns:

  • (Void)


13475
13476
13477
13478
# File 'lib/ropencv/ropencv_types.rb', line 13475

def set_mat_gains(umv)
    __validate_pointer__
    Rbind::cv_detail_blocks_gain_compensator_set_mat_gains( self, umv)
end

#set_nr_feeds(nr_feeds) ⇒ Void Also known as: setNrFeeds

Note:

method wrapper for void cv::detail::BlocksGainCompensator::setNrFeeds(int nr_feeds)

Parameters:

  • nr_feeds (Fixnum)

Returns:

  • (Void)


13498
13499
13500
13501
# File 'lib/ropencv/ropencv_types.rb', line 13498

def set_nr_feeds(nr_feeds)
    __validate_pointer__
    Rbind::cv_detail_blocks_gain_compensator_set_nr_feeds( self, nr_feeds)
end

#set_nr_gains_filtering_iterations(nr_iterations) ⇒ Void Also known as: setNrGainsFilteringIterations

Note:

method wrapper for void cv::detail::BlocksGainCompensator::setNrGainsFilteringIterations(int nr_iterations)

Parameters:

  • nr_iterations (Fixnum)

Returns:

  • (Void)


13587
13588
13589
13590
# File 'lib/ropencv/ropencv_types.rb', line 13587

def set_nr_gains_filtering_iterations(nr_iterations)
    __validate_pointer__
    Rbind::cv_detail_blocks_gain_compensator_set_nr_gains_filtering_iterations( self, nr_iterations)
end

#set_similarity_threshold(similarity_threshold) ⇒ Void Also known as: setSimilarityThreshold

Note:

method wrapper for void cv::detail::BlocksGainCompensator::setSimilarityThreshold(double similarity_threshold)

Parameters:

  • similarity_threshold (Double)

Returns:

  • (Void)


13515
13516
13517
13518
# File 'lib/ropencv/ropencv_types.rb', line 13515

def set_similarity_threshold(similarity_threshold)
    __validate_pointer__
    Rbind::cv_detail_blocks_gain_compensator_set_similarity_threshold( self, similarity_threshold)
end

#set_update_gain(b) ⇒ Void Also known as: setUpdateGain

Note:

method wrapper for void cv::detail::BlocksGainCompensator::setUpdateGain(bool b)

Parameters:

  • b (Bool)

Returns:

  • (Void)


13618
13619
13620
13621
# File 'lib/ropencv/ropencv_types.rb', line 13618

def set_update_gain(b)
    __validate_pointer__
    Rbind::cv_detail_blocks_gain_compensator_set_update_gain( self, b)
end

#to_sObject

converts BlocksGainCompensator into a string by crawling through all its attributes



13443
13444
13445
# File 'lib/ropencv/ropencv_types.rb', line 13443

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