ssimsort 0.2.5 → 0.2.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1588385dc2e091ea714f126e5f332a7c830a9384
4
- data.tar.gz: e473d2149bb6b093de87b6a7913c3e1887c87e99
3
+ metadata.gz: acbe707196e0cf341ebe53998ccf1f69b85b2828
4
+ data.tar.gz: 98be1a217c7dc0b0c22f84f6f798242ed8a761e8
5
5
  SHA512:
6
- metadata.gz: 44f19ea5b13b8ff7ec86fda853ce1fcce0dbd308330f7e475dada68d50c570d2de2ac1bf17436d911e550bcbb5dad5425ee1a7e6853862a583e79fe97f66a80d
7
- data.tar.gz: a75adba5f4b1c377f853867529351374d452f10d13a03b8e5542f4373835436f2b86aac6dd593a5379b074e6fdd02e64e11638868dbab5781737e944c75c201c
6
+ metadata.gz: f13e95a89d1cc9bf705dfdb36299e42489f504535c849f66e3556da2a47fb723e439d1761e519ff7b86dc10e1dad4b6f34ee03aa83ae7d950050a9c653a40442
7
+ data.tar.gz: f713cdf446d84c9d4b2798c442bcc3fe6490275c1d044c7ec83e1cec7a9aa9a7009f2908f8c86d396d1814f362d0f03ac89a49c64d5a75525b8637a9d80777fa
data/bin/ssimsort CHANGED
@@ -4,9 +4,9 @@ root = File.expand_path("../..", __FILE__)
4
4
  require "#{root}/lib/ssimsort.rb"
5
5
 
6
6
  case ARGV[0]
7
- when "-m" then SsimSort.ssim_dir_mean(ARGV[1]) #Mean
7
+ when "-m" then p SsimSort.ssim_dir_mean(ARGV[1]) #Mean
8
8
  when "-c" then p SsimSort.ssim(ARGV[1],ARGV[2]) #Compare
9
- when "-dc" then p SsimSort.ssim_dir(ARGV[1]) #Directory Compare
9
+ when "-dc" then SsimSort.ssim_dir(ARGV[1]) #Directory Compare
10
10
  when "-s" then SsimSort.sort(ARGV[1],ARGV[2],*ARGV[3]) #Sort
11
11
  when "-sc" then SsimSort.sort_comp(ARGV[1],ARGV[2],ARGV[3]) #Sort by comparison to another image
12
12
  else puts "SSIMSORT:\n-s <input_dir>,<output_dir>,[<tolerance>]\n-sc <base_file>,<input_dir>,<output_dir>\n-c <file_1>,<file_2>\n-dc <input_dir>\n"
data/lib/ssimsort.rb CHANGED
@@ -36,8 +36,7 @@ module SsimSort
36
36
  end
37
37
 
38
38
 
39
- def SsimSort.ssim_dir(input_path)
40
-
39
+ def SsimSort.ssim_dir(input_path)
41
40
  files = Dir.entries(input_path).map {|file| File.absolute_path("#{input_path}/#{file}")}
42
41
  files.shift(2) #Remove . and ..
43
42
  files.select!{|f| @formats=~ f}
data/ssimsort.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'ssimsort'
3
- s.version = '0.2.5'
3
+ s.version = '0.2.6'
4
4
  s.date = '2013-11-27'
5
5
  s.summary = "SsimSort"
6
6
  s.description = "Sort images easily by their similarity"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ssimsort
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.5
4
+ version: 0.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Galaad Gauthier