Sha256: 570ade385e3a6bca7cd74e5fee9bc9365f168b503e4209c779b2bb485dfff793
Contents?: true
Size: 764 Bytes
Versions: 3
Compression:
Stored size: 764 Bytes
Contents
require 'test/unit' require 'lib/camellia' include Camellia class TestFixedFilters < Test::Unit::TestCase def test_fixed_filters source=CamImage.new result=CamImage.new # load picture chess.pgm source.load_pgm("resources/chess.pgm") # gaussian filtering 3x3 source.fixed_filter(result,CAM_GAUSSIAN_3x3); # save the result result.save_pgm("output/ruby_chess_gaussian_3x3.pgm"); # gaussian filtering 5x5 source.fixed_filter(result,CAM_GAUSSIAN_5x5); # save the result result.save_pgm("output/ruby_chess_gaussian_5x5.pgm"); # gaussian filtering 7x7 source.fixed_filter(result,CAM_GAUSSIAN_7x7); # save the result result.save_pgm("output/ruby_chess_gaussian_7x7.pgm"); end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
camellia-2.7.0-i386-mswin32 | test/test_fixed_filters.rb |
camellia-2.5.10-i486-linux | test/test_fixed_filters.rb |
camellia-2.7.0-x86-linux | test/test_fixed_filters.rb |