imagecore 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (71) hide show
  1. data/.gitignore +24 -0
  2. data/Gemfile +4 -0
  3. data/Rakefile +2 -0
  4. data/ext/imagecore/analyze_image.cxx +58 -0
  5. data/ext/imagecore/analyze_image.h +6 -0
  6. data/ext/imagecore/extconf.rb +9 -0
  7. data/ext/imagecore/imagecore.cxx +34 -0
  8. data/ext/opencv/core/___.c +3 -0
  9. data/ext/opencv/core/alloc.cpp +697 -0
  10. data/ext/opencv/core/array.cpp +3206 -0
  11. data/ext/opencv/core/datastructs.cpp +4064 -0
  12. data/ext/opencv/core/extconf.rb +22 -0
  13. data/ext/opencv/core/matrix.cpp +3777 -0
  14. data/ext/opencv/core/precomp.hpp +216 -0
  15. data/ext/opencv/core/system.cpp +832 -0
  16. data/ext/opencv/core/tables.cpp +3512 -0
  17. data/ext/opencv/highgui/___.c +3 -0
  18. data/ext/opencv/highgui/bitstrm.cpp +582 -0
  19. data/ext/opencv/highgui/bitstrm.hpp +182 -0
  20. data/ext/opencv/highgui/extconf.rb +28 -0
  21. data/ext/opencv/highgui/grfmt_base.cpp +128 -0
  22. data/ext/opencv/highgui/grfmt_base.hpp +113 -0
  23. data/ext/opencv/highgui/grfmt_bmp.cpp +564 -0
  24. data/ext/opencv/highgui/grfmt_bmp.hpp +99 -0
  25. data/ext/opencv/highgui/grfmt_exr.hpp +113 -0
  26. data/ext/opencv/highgui/grfmt_imageio.hpp +56 -0
  27. data/ext/opencv/highgui/grfmt_jpeg.cpp +622 -0
  28. data/ext/opencv/highgui/grfmt_jpeg.hpp +90 -0
  29. data/ext/opencv/highgui/grfmt_jpeg2000.cpp +529 -0
  30. data/ext/opencv/highgui/grfmt_jpeg2000.hpp +95 -0
  31. data/ext/opencv/highgui/grfmt_png.cpp +406 -0
  32. data/ext/opencv/highgui/grfmt_png.hpp +101 -0
  33. data/ext/opencv/highgui/grfmt_pxm.cpp +513 -0
  34. data/ext/opencv/highgui/grfmt_pxm.hpp +92 -0
  35. data/ext/opencv/highgui/grfmt_sunras.cpp +425 -0
  36. data/ext/opencv/highgui/grfmt_sunras.hpp +105 -0
  37. data/ext/opencv/highgui/grfmt_tiff.cpp +718 -0
  38. data/ext/opencv/highgui/grfmt_tiff.hpp +136 -0
  39. data/ext/opencv/highgui/grfmts.hpp +56 -0
  40. data/ext/opencv/highgui/loadsave.cpp +535 -0
  41. data/ext/opencv/highgui/precomp.hpp +223 -0
  42. data/ext/opencv/highgui/utils.cpp +689 -0
  43. data/ext/opencv/highgui/utils.hpp +128 -0
  44. data/ext/opencv/imgproc/___.c +3 -0
  45. data/ext/opencv/imgproc/_geom.h +72 -0
  46. data/ext/opencv/imgproc/color.cpp +3179 -0
  47. data/ext/opencv/imgproc/contours.cpp +1780 -0
  48. data/ext/opencv/imgproc/extconf.rb +11 -0
  49. data/ext/opencv/imgproc/filter.cpp +3063 -0
  50. data/ext/opencv/imgproc/precomp.hpp +159 -0
  51. data/ext/opencv/imgproc/shapedescr.cpp +1306 -0
  52. data/ext/opencv/imgproc/smooth.cpp +1566 -0
  53. data/ext/opencv/imgproc/tables.cpp +214 -0
  54. data/ext/opencv/imgproc/thresh.cpp +636 -0
  55. data/ext/opencv/imgproc/utils.cpp +242 -0
  56. data/ext/opencv/include/opencv2/core/core.hpp +4344 -0
  57. data/ext/opencv/include/opencv2/core/core_c.h +1885 -0
  58. data/ext/opencv/include/opencv2/core/internal.hpp +710 -0
  59. data/ext/opencv/include/opencv2/core/mat.hpp +2557 -0
  60. data/ext/opencv/include/opencv2/core/operations.hpp +3623 -0
  61. data/ext/opencv/include/opencv2/core/types_c.h +1875 -0
  62. data/ext/opencv/include/opencv2/core/version.hpp +58 -0
  63. data/ext/opencv/include/opencv2/highgui/highgui.hpp +198 -0
  64. data/ext/opencv/include/opencv2/highgui/highgui_c.h +506 -0
  65. data/ext/opencv/include/opencv2/imgproc/imgproc.hpp +1139 -0
  66. data/ext/opencv/include/opencv2/imgproc/imgproc_c.h +783 -0
  67. data/ext/opencv/include/opencv2/imgproc/types_c.h +538 -0
  68. data/imagecore.gemspec +20 -0
  69. data/lib/imagecore.rb +16 -0
  70. data/lib/imagecore/version.rb +3 -0
  71. metadata +119 -0
@@ -0,0 +1,20 @@
1
+ # -*- encoding: utf-8 -*-
2
+ require File.expand_path('../lib/imagecore/version', __FILE__)
3
+
4
+ Gem::Specification.new do |gem|
5
+ gem.authors = ["oleg dashevskii"]
6
+ gem.email = ["olegdashevskii@gmail.com"]
7
+ gem.description = %q{Determine the core of an image file, stripping any borders}
8
+ gem.summary = %q{Get image file core}
9
+ gem.homepage = ""
10
+
11
+ gem.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
12
+ gem.files = `git ls-files`.split("\n")
13
+ gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
14
+ gem.name = "imagecore"
15
+ gem.require_paths = ["lib"]
16
+ gem.version = ImageCore::VERSION
17
+
18
+ gem.extensions = %w(ext/opencv/core/extconf.rb ext/opencv/imgproc/extconf.rb
19
+ ext/opencv/highgui/extconf.rb ext/imagecore/extconf.rb)
20
+ end
@@ -0,0 +1,16 @@
1
+ require "imagecore/version"
2
+
3
+ dir = File.dirname(__FILE__)
4
+
5
+ require dir + '../../ext/opencv/core/opencv_core'
6
+ require dir + '../../ext/opencv/highgui/opencv_highgui'
7
+ require dir + '../../ext/opencv/imgproc/opencv_imgproc'
8
+ require dir + '../../ext/imagecore/imagecore'
9
+
10
+ module ImageCore
11
+ def analyze(filename, threshold = 150)
12
+ ImageCore::Ext::analyze(filename, threshold)
13
+ end
14
+
15
+ module_function :analyze
16
+ end
@@ -0,0 +1,3 @@
1
+ module ImageCore
2
+ VERSION = "0.0.1"
3
+ end
metadata ADDED
@@ -0,0 +1,119 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: imagecore
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - oleg dashevskii
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2011-11-29 00:00:00.000000000 Z
13
+ dependencies: []
14
+ description: Determine the core of an image file, stripping any borders
15
+ email:
16
+ - olegdashevskii@gmail.com
17
+ executables: []
18
+ extensions:
19
+ - ext/opencv/core/extconf.rb
20
+ - ext/opencv/imgproc/extconf.rb
21
+ - ext/opencv/highgui/extconf.rb
22
+ - ext/imagecore/extconf.rb
23
+ extra_rdoc_files: []
24
+ files:
25
+ - .gitignore
26
+ - Gemfile
27
+ - Rakefile
28
+ - ext/imagecore/analyze_image.cxx
29
+ - ext/imagecore/analyze_image.h
30
+ - ext/imagecore/extconf.rb
31
+ - ext/imagecore/imagecore.cxx
32
+ - ext/opencv/core/___.c
33
+ - ext/opencv/core/alloc.cpp
34
+ - ext/opencv/core/array.cpp
35
+ - ext/opencv/core/datastructs.cpp
36
+ - ext/opencv/core/extconf.rb
37
+ - ext/opencv/core/matrix.cpp
38
+ - ext/opencv/core/precomp.hpp
39
+ - ext/opencv/core/system.cpp
40
+ - ext/opencv/core/tables.cpp
41
+ - ext/opencv/highgui/___.c
42
+ - ext/opencv/highgui/bitstrm.cpp
43
+ - ext/opencv/highgui/bitstrm.hpp
44
+ - ext/opencv/highgui/extconf.rb
45
+ - ext/opencv/highgui/grfmt_base.cpp
46
+ - ext/opencv/highgui/grfmt_base.hpp
47
+ - ext/opencv/highgui/grfmt_bmp.cpp
48
+ - ext/opencv/highgui/grfmt_bmp.hpp
49
+ - ext/opencv/highgui/grfmt_exr.hpp
50
+ - ext/opencv/highgui/grfmt_imageio.hpp
51
+ - ext/opencv/highgui/grfmt_jpeg.cpp
52
+ - ext/opencv/highgui/grfmt_jpeg.hpp
53
+ - ext/opencv/highgui/grfmt_jpeg2000.cpp
54
+ - ext/opencv/highgui/grfmt_jpeg2000.hpp
55
+ - ext/opencv/highgui/grfmt_png.cpp
56
+ - ext/opencv/highgui/grfmt_png.hpp
57
+ - ext/opencv/highgui/grfmt_pxm.cpp
58
+ - ext/opencv/highgui/grfmt_pxm.hpp
59
+ - ext/opencv/highgui/grfmt_sunras.cpp
60
+ - ext/opencv/highgui/grfmt_sunras.hpp
61
+ - ext/opencv/highgui/grfmt_tiff.cpp
62
+ - ext/opencv/highgui/grfmt_tiff.hpp
63
+ - ext/opencv/highgui/grfmts.hpp
64
+ - ext/opencv/highgui/loadsave.cpp
65
+ - ext/opencv/highgui/precomp.hpp
66
+ - ext/opencv/highgui/utils.cpp
67
+ - ext/opencv/highgui/utils.hpp
68
+ - ext/opencv/imgproc/___.c
69
+ - ext/opencv/imgproc/_geom.h
70
+ - ext/opencv/imgproc/color.cpp
71
+ - ext/opencv/imgproc/contours.cpp
72
+ - ext/opencv/imgproc/extconf.rb
73
+ - ext/opencv/imgproc/filter.cpp
74
+ - ext/opencv/imgproc/precomp.hpp
75
+ - ext/opencv/imgproc/shapedescr.cpp
76
+ - ext/opencv/imgproc/smooth.cpp
77
+ - ext/opencv/imgproc/tables.cpp
78
+ - ext/opencv/imgproc/thresh.cpp
79
+ - ext/opencv/imgproc/utils.cpp
80
+ - ext/opencv/include/opencv2/core/core.hpp
81
+ - ext/opencv/include/opencv2/core/core_c.h
82
+ - ext/opencv/include/opencv2/core/internal.hpp
83
+ - ext/opencv/include/opencv2/core/mat.hpp
84
+ - ext/opencv/include/opencv2/core/operations.hpp
85
+ - ext/opencv/include/opencv2/core/types_c.h
86
+ - ext/opencv/include/opencv2/core/version.hpp
87
+ - ext/opencv/include/opencv2/highgui/highgui.hpp
88
+ - ext/opencv/include/opencv2/highgui/highgui_c.h
89
+ - ext/opencv/include/opencv2/imgproc/imgproc.hpp
90
+ - ext/opencv/include/opencv2/imgproc/imgproc_c.h
91
+ - ext/opencv/include/opencv2/imgproc/types_c.h
92
+ - imagecore.gemspec
93
+ - lib/imagecore.rb
94
+ - lib/imagecore/version.rb
95
+ homepage: ''
96
+ licenses: []
97
+ post_install_message:
98
+ rdoc_options: []
99
+ require_paths:
100
+ - lib
101
+ required_ruby_version: !ruby/object:Gem::Requirement
102
+ none: false
103
+ requirements:
104
+ - - ! '>='
105
+ - !ruby/object:Gem::Version
106
+ version: '0'
107
+ required_rubygems_version: !ruby/object:Gem::Requirement
108
+ none: false
109
+ requirements:
110
+ - - ! '>='
111
+ - !ruby/object:Gem::Version
112
+ version: '0'
113
+ requirements: []
114
+ rubyforge_project:
115
+ rubygems_version: 1.8.10
116
+ signing_key:
117
+ specification_version: 3
118
+ summary: Get image file core
119
+ test_files: []