lib/sqed/boundary_finder.rb in sqed-0.1.7 vs lib/sqed/boundary_finder.rb in sqed-0.1.8
- old
+ new
@@ -93,12 +93,12 @@
else
140
end
end
- # @return
- # the column (x position) in the middle of the single green vertical line dividing the stage
+ # @return [Array]
+ # the x or y position returned as a start, mid, and end coordinate that represent the width of the colored line that completely divides the image, e.g. [9, 15, 16]
#
# @param image
# the image to sample
#
# @param sample_subdivision_size
@@ -176,10 +176,10 @@
black_threshold = 65535*0.15 #tune for black
(pixel.red < black_threshold) && (pixel.blue < black_threshold) && (pixel.green < black_threshold)
end
# return [Array]
- # the median position of all (pixel) positions that have a count greater than the cutoff
+ # the start, mid, endpoint position of all (pixel) positions that have a count greater than the cutoff
def self.frequency_stats(frequency_hash, sample_cutoff = 0)
return nil if sample_cutoff.nil? || sample_cutoff < 1
hit_ranges = []