lib/sqed/boundary_finder.rb in sqed-0.0.4 vs lib/sqed/boundary_finder.rb in sqed-0.1.0

- old
+ new

@@ -50,12 +50,12 @@ samples_to_take = (image.send(scan) / sample_subdivision_size).to_i - 1 (0..samples_to_take).each do |s| # Create a sample image a single pixel tall if scan == :rows - j = image.crop(0, s * sample_subdivision_size, image.columns, 1) + j = image.crop(0, s * sample_subdivision_size, image.columns, 1, true) elsif scan == :columns - j = image.crop(s * sample_subdivision_size, 0, 1, image.rows) + j = image.crop(s * sample_subdivision_size, 0, 1, image.rows, true) else raise end j.each_pixel do |pixel, c, r|