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 +4 -4
- data/bin/ssimsort +2 -2
- data/lib/ssimsort.rb +1 -2
- data/ssimsort.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: acbe707196e0cf341ebe53998ccf1f69b85b2828
|
4
|
+
data.tar.gz: 98be1a217c7dc0b0c22f84f6f798242ed8a761e8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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
|
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