Zhang-Suen thinning algorithm: Difference between revisions

Content added Content deleted
Line 685: Line 685:
# Nigel_Galloway: October 18th., 2013.
# Nigel_Galloway: October 18th., 2013.
require 'csv'
require 'csv'
s2 = CSV.read("smallRC.csv", converters: :numeric)
s2 = CSV.read("image.csv", converters: :numeric)
@r = 1
@r = 1
s1 = Array.new(s2.length){Array.new(s2[0].length,0)}
s1 = Array.new(s2.length){Array.new(s2[0].length,0)}