Method: CVFFI::MatchResults#results_each_with_index

Defined in:
lib/opencv-ffi-wrappers/matcher.rb

#results_each_with_index(include_masked = false, &blk) ⇒ Object

the “private” each yelds a MatchResult to the block



166
167
168
169
170
171
172
# File 'lib/opencv-ffi-wrappers/matcher.rb', line 166

def results_each_with_index( include_masked = false, &blk )
  @results.each_with_index { |r,i|
    if !include_masked and !masked?(i)
      blk.yield( r,i )
    end
  }
end