Sha256: a978abff7bc296ab8887b6123e5ef83cfb9f64710e4254aafc61208f523b0359

Contents?: true

Size: 479 Bytes

Versions: 3

Compression:

Stored size: 479 Bytes

Contents

require 'test/unit'
require 'lib/camellia'
include Camellia
class TestHistogram < Test::Unit::TestCase
  def test_histogram
    source=CamImage.new
    # load picture alfa156.bmp
    source.load_bmp("resources/alfa156.bmp")
    # convert to YUV
    yuv=CamImage.new
    yuv=source.to_yuv
    # compute the histogram
    result=CamImage.new
    yuv.histogram_2_channels(2,3,result)
    # save the result
    result.save_pgm("output/alfa156_histo.pgm")
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
camellia-2.7.0-i386-mswin32 test/test_histogram.rb
camellia-2.5.10-i486-linux test/test_histogram.rb
camellia-2.7.0-x86-linux test/test_histogram.rb