ssimsort 0.2.6 → 0.2.7

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: acbe707196e0cf341ebe53998ccf1f69b85b2828
4
- data.tar.gz: 98be1a217c7dc0b0c22f84f6f798242ed8a761e8
3
+ metadata.gz: dcad7ba5c086d1626d2fa720937e8ddf033c5d49
4
+ data.tar.gz: 365cfc383c4fff532628177c35e608f678d60248
5
5
  SHA512:
6
- metadata.gz: f13e95a89d1cc9bf705dfdb36299e42489f504535c849f66e3556da2a47fb723e439d1761e519ff7b86dc10e1dad4b6f34ee03aa83ae7d950050a9c653a40442
7
- data.tar.gz: f713cdf446d84c9d4b2798c442bcc3fe6490275c1d044c7ec83e1cec7a9aa9a7009f2908f8c86d396d1814f362d0f03ac89a49c64d5a75525b8637a9d80777fa
6
+ metadata.gz: 6d40dbea8a95a412619032af4337f5516b1ca4565a08f305ec5786c55fd498949642c1ac7f6da43ba5d54830658e6dd80bb97cedfef3191b533eb7eda86f6d0a
7
+ data.tar.gz: 1116332b5b005ec853621750e135ff8342282fef1a2d69b509bceb3568ce9d89dcf328823be9fd6763b961d547f15a2266a87e0496bbfd4142d2427f27ff097d
data/README.md CHANGED
@@ -12,7 +12,30 @@ gem install ssimsort
12
12
  *Use ssim as an executable* :
13
13
 
14
14
  ~~~
15
- $ ssim <INPUT>, <OUTPUT>, <TOLERANCE>
15
+ #(Sort) Compares all images from the input folder and creates new folders
16
+ #containing every images within the tolerance range
17
+
18
+ $ ssimsort -s <INPUT>, <OUTPUT>, <TOLERANCE>
19
+
20
+ #(Sort-Compare) Compares all images from the input folder with the base_image
21
+ #and sort them by their similarity ratio (ssim)
22
+
23
+ $ ssimsort -sc <BASE_IMAGE>, <INPUT>, <OUTPUT>
24
+
25
+ #(Compare) Compares two images and displays their similarity ratio (ssim)
26
+
27
+ $ ssimsort -c <FILE_1>,<FILE_2>
28
+
29
+ #(Directory comparison) Compares all the images from a folder
30
+
31
+ $ ssimsort -dc <INPUT_DIR>
32
+
33
+ #(Mean) Calculates the average similarity ratio (A low mean means that the
34
+ #folder content is very heterogeneous)
35
+
36
+ $ ssimsort -m <INPUT_DIR>
37
+
16
38
 
17
- #Tolerance is a number between 0.0 and 1.0 that defines how similar the images you want to sort will be, 1.0 being the exact same image.
18
39
  ~~~
40
+
41
+ *(Tolerance is a number between 0.0 and 1.0 that defines how similar the images you want to sort will be, 1.0 being the exact same image.)*
@@ -26,7 +26,7 @@ module SsimSort
26
26
 
27
27
 
28
28
  def SsimSort.ssim(file1,file2)
29
- cA,cB = 0, 0
29
+ cA,cB = 0.01, 0.03
30
30
  x,y = get_lum(ImageList.new(file1)), get_lum(ImageList.new(file2))
31
31
  var_x, var_y = x.variance, y.variance
32
32
  moy_x, moy_y = x.mean, y.mean
@@ -0,0 +1,2 @@
1
+ gem 'rmagick', :require => 'RMagick'
2
+
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'ssimsort'
3
- s.version = '0.2.6'
4
- s.date = '2013-11-27'
3
+ s.version = '0.2.7'
4
+ s.date = '2013-12-02'
5
5
  s.summary = "SsimSort"
6
6
  s.description = "Sort images easily by their similarity"
7
7
  s.authors = ["Galaad Gauthier"]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ssimsort
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.6
4
+ version: 0.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Galaad Gauthier
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-11-27 00:00:00.000000000 Z
11
+ date: 2013-12-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rmagick
@@ -47,6 +47,7 @@ extra_rdoc_files: []
47
47
  files:
48
48
  - lib/ssimsort.rb
49
49
  - lib/array.rb
50
+ - ssimsort.gemfile
50
51
  - bin/ssimsort
51
52
  - ssimsort.gemspec
52
53
  - README.md
@@ -70,7 +71,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
70
71
  version: '0'
71
72
  requirements: []
72
73
  rubyforge_project:
73
- rubygems_version: 2.0.5
74
+ rubygems_version: 2.0.14
74
75
  signing_key:
75
76
  specification_version: 4
76
77
  summary: SsimSort