imagecore 0.0.1 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.markdown +3 -0
- data/ext/extconf_common.rb +11 -0
- data/ext/imagecore/extconf.rb +1 -7
- data/ext/opencv/core/extconf.rb +1 -19
- data/ext/opencv/highgui/extconf.rb +1 -8
- data/ext/opencv/imgproc/extconf.rb +1 -8
- data/imagecore.gemspec +1 -1
- data/lib/imagecore/version.rb +1 -1
- metadata +4 -2
data/README.markdown
ADDED
@@ -0,0 +1,11 @@
|
|
1
|
+
require 'mkmf'
|
2
|
+
|
3
|
+
# not valid for C++ code
|
4
|
+
if $warnflags
|
5
|
+
$warnflags = ($warnflags.split - %w(-Wdeclaration-after-statement -Wimplicit-function-declaration)) * ' '
|
6
|
+
end
|
7
|
+
|
8
|
+
# OpenCV includes
|
9
|
+
inc = File.expand_path('../opencv/include', __FILE__)
|
10
|
+
|
11
|
+
$INCFLAGS << " -I #{inc}"
|
data/ext/imagecore/extconf.rb
CHANGED
@@ -1,9 +1,3 @@
|
|
1
|
-
require '
|
2
|
-
|
3
|
-
# not valid for C++ code
|
4
|
-
$warnflags = ($warnflags.split - %w(-Wdeclaration-after-statement -Wimplicit-function-declaration)) * ' '
|
5
|
-
|
6
|
-
# OpenCV includes
|
7
|
-
$INCFLAGS << ' -I ../opencv/include'
|
1
|
+
require File.expand_path('../../extconf_common', __FILE__)
|
8
2
|
|
9
3
|
create_makefile("imagecore")
|
data/ext/opencv/core/extconf.rb
CHANGED
@@ -1,22 +1,4 @@
|
|
1
|
-
require '
|
1
|
+
require File.expand_path('../../../extconf_common', __FILE__)
|
2
2
|
|
3
|
-
# not valid for C++ code
|
4
|
-
$warnflags = ($warnflags.split - %w(-Wdeclaration-after-statement -Wimplicit-function-declaration)) * ' '
|
5
|
-
|
6
|
-
# OpenCV includes
|
7
|
-
$INCFLAGS << ' -I ../include'
|
8
|
-
|
9
|
-
# Find stuff
|
10
|
-
#if have_library('jpeg')
|
11
|
-
#$defs.push '-DHAVE_JPEG'
|
12
|
-
#end
|
13
|
-
|
14
|
-
#if have_library('tiff')
|
15
|
-
#$defs.push '-DHAVE_TIFF'
|
16
|
-
#end
|
17
|
-
|
18
|
-
# Sources
|
19
|
-
|
20
|
-
#dir_config("imagecore")
|
21
3
|
create_header('cvconfig.h')
|
22
4
|
create_makefile("opencv_core")
|
@@ -1,10 +1,4 @@
|
|
1
|
-
require '
|
2
|
-
|
3
|
-
# not valid for C++ code
|
4
|
-
$warnflags = ($warnflags.split - %w(-Wdeclaration-after-statement -Wimplicit-function-declaration)) * ' '
|
5
|
-
|
6
|
-
# OpenCV includes
|
7
|
-
$INCFLAGS << ' -I ../include'
|
1
|
+
require File.expand_path('../../../extconf_common', __FILE__)
|
8
2
|
|
9
3
|
# Find stuff
|
10
4
|
if have_library('jpeg')
|
@@ -24,5 +18,4 @@ if have_library('jasper')
|
|
24
18
|
end
|
25
19
|
|
26
20
|
create_header('cvconfig.h')
|
27
|
-
|
28
21
|
create_makefile("opencv_highgui")
|
@@ -1,11 +1,4 @@
|
|
1
|
-
require '
|
2
|
-
|
3
|
-
# not valid for C++ code
|
4
|
-
$warnflags = ($warnflags.to_s.split - %w(-Wdeclaration-after-statement -Wimplicit-function-declaration)) * ' '
|
5
|
-
|
6
|
-
# OpenCV includes
|
7
|
-
$INCFLAGS << ' -I ../include'
|
1
|
+
require File.expand_path('../../../extconf_common', __FILE__)
|
8
2
|
|
9
3
|
create_header('cvconfig.h')
|
10
|
-
|
11
4
|
create_makefile("opencv_imgproc")
|
data/imagecore.gemspec
CHANGED
@@ -6,7 +6,7 @@ Gem::Specification.new do |gem|
|
|
6
6
|
gem.email = ["olegdashevskii@gmail.com"]
|
7
7
|
gem.description = %q{Determine the core of an image file, stripping any borders}
|
8
8
|
gem.summary = %q{Get image file core}
|
9
|
-
gem.homepage = ""
|
9
|
+
gem.homepage = "https://github.com/be9/imagecore"
|
10
10
|
|
11
11
|
gem.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
12
12
|
gem.files = `git ls-files`.split("\n")
|
data/lib/imagecore/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: imagecore
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -24,7 +24,9 @@ extra_rdoc_files: []
|
|
24
24
|
files:
|
25
25
|
- .gitignore
|
26
26
|
- Gemfile
|
27
|
+
- README.markdown
|
27
28
|
- Rakefile
|
29
|
+
- ext/extconf_common.rb
|
28
30
|
- ext/imagecore/analyze_image.cxx
|
29
31
|
- ext/imagecore/analyze_image.h
|
30
32
|
- ext/imagecore/extconf.rb
|
@@ -92,7 +94,7 @@ files:
|
|
92
94
|
- imagecore.gemspec
|
93
95
|
- lib/imagecore.rb
|
94
96
|
- lib/imagecore/version.rb
|
95
|
-
homepage:
|
97
|
+
homepage: https://github.com/be9/imagecore
|
96
98
|
licenses: []
|
97
99
|
post_install_message:
|
98
100
|
rdoc_options: []
|