camellia 2.7.0-x86-linux

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.
Files changed (136) hide show
  1. data/CamelliaLib-2.7.0.tar.gz +0 -0
  2. data/README +59 -0
  3. data/doc/README +58 -0
  4. data/doc/camellia.dox +205 -0
  5. data/doc/html/annotated.html +52 -0
  6. data/doc/html/camellia_8h-source.html +1618 -0
  7. data/doc/html/camellia_8h.html +4583 -0
  8. data/doc/html/doxygen.css +358 -0
  9. data/doc/html/doxygen.png +0 -0
  10. data/doc/html/files.html +29 -0
  11. data/doc/html/ftv2blank.png +0 -0
  12. data/doc/html/ftv2doc.png +0 -0
  13. data/doc/html/ftv2folderclosed.png +0 -0
  14. data/doc/html/ftv2folderopen.png +0 -0
  15. data/doc/html/ftv2lastnode.png +0 -0
  16. data/doc/html/ftv2link.png +0 -0
  17. data/doc/html/ftv2mlastnode.png +0 -0
  18. data/doc/html/ftv2mnode.png +0 -0
  19. data/doc/html/ftv2node.png +0 -0
  20. data/doc/html/ftv2plastnode.png +0 -0
  21. data/doc/html/ftv2pnode.png +0 -0
  22. data/doc/html/ftv2vertline.png +0 -0
  23. data/doc/html/functions.html +108 -0
  24. data/doc/html/functions_0x62.html +78 -0
  25. data/doc/html/functions_0x63.html +112 -0
  26. data/doc/html/functions_0x64.html +113 -0
  27. data/doc/html/functions_0x65.html +102 -0
  28. data/doc/html/functions_0x66.html +82 -0
  29. data/doc/html/functions_0x67.html +76 -0
  30. data/doc/html/functions_0x68.html +88 -0
  31. data/doc/html/functions_0x69.html +90 -0
  32. data/doc/html/functions_0x6b.html +70 -0
  33. data/doc/html/functions_0x6c.html +88 -0
  34. data/doc/html/functions_0x6d.html +93 -0
  35. data/doc/html/functions_0x6e.html +79 -0
  36. data/doc/html/functions_0x6f.html +74 -0
  37. data/doc/html/functions_0x70.html +72 -0
  38. data/doc/html/functions_0x72.html +73 -0
  39. data/doc/html/functions_0x73.html +130 -0
  40. data/doc/html/functions_0x74.html +82 -0
  41. data/doc/html/functions_0x76.html +74 -0
  42. data/doc/html/functions_0x77.html +75 -0
  43. data/doc/html/functions_0x78.html +72 -0
  44. data/doc/html/functions_0x79.html +77 -0
  45. data/doc/html/functions_0x7e.html +76 -0
  46. data/doc/html/functions_func.html +93 -0
  47. data/doc/html/functions_func_0x62.html +64 -0
  48. data/doc/html/functions_func_0x63.html +83 -0
  49. data/doc/html/functions_func_0x64.html +99 -0
  50. data/doc/html/functions_func_0x65.html +95 -0
  51. data/doc/html/functions_func_0x66.html +74 -0
  52. data/doc/html/functions_func_0x67.html +72 -0
  53. data/doc/html/functions_func_0x68.html +76 -0
  54. data/doc/html/functions_func_0x69.html +70 -0
  55. data/doc/html/functions_func_0x6c.html +76 -0
  56. data/doc/html/functions_func_0x6d.html +78 -0
  57. data/doc/html/functions_func_0x6f.html +65 -0
  58. data/doc/html/functions_func_0x70.html +64 -0
  59. data/doc/html/functions_func_0x72.html +65 -0
  60. data/doc/html/functions_func_0x73.html +113 -0
  61. data/doc/html/functions_func_0x74.html +74 -0
  62. data/doc/html/functions_func_0x76.html +64 -0
  63. data/doc/html/functions_func_0x77.html +64 -0
  64. data/doc/html/functions_func_0x7e.html +72 -0
  65. data/doc/html/functions_vars.html +290 -0
  66. data/doc/html/globals.html +368 -0
  67. data/doc/html/globals_defs.html +41 -0
  68. data/doc/html/globals_func.html +364 -0
  69. data/doc/html/index.html +11 -0
  70. data/doc/html/main.html +22 -0
  71. data/doc/html/pages.html +24 -0
  72. data/doc/html/structCamAffineTransform.html +37 -0
  73. data/doc/html/structCamArithmParams.html +60 -0
  74. data/doc/html/structCamBasin.html +62 -0
  75. data/doc/html/structCamBitmapFont.html +37 -0
  76. data/doc/html/structCamBlobInfo.html +90 -0
  77. data/doc/html/structCamBlobs.html +51 -0
  78. data/doc/html/structCamImage.html +853 -0
  79. data/doc/html/structCamKeypoint.html +79 -0
  80. data/doc/html/structCamKeypoints.html +99 -0
  81. data/doc/html/structCamKeypointsKdTree.html +42 -0
  82. data/doc/html/structCamKeypointsMatches.html +54 -0
  83. data/doc/html/structCamLabelingResults.html +46 -0
  84. data/doc/html/structCamLinearFilterKernel.html +63 -0
  85. data/doc/html/structCamMeasuresResults.html +54 -0
  86. data/doc/html/structCamMorphoMathsKernel.html +81 -0
  87. data/doc/html/structCamPoint.html +46 -0
  88. data/doc/html/structCamRLEImage.html +183 -0
  89. data/doc/html/structCamROI.html +80 -0
  90. data/doc/html/structCamRun.html +56 -0
  91. data/doc/html/structCamSepFilterKernel.html +67 -0
  92. data/doc/html/structCamTable.html +46 -0
  93. data/doc/html/structCamTableOfBasins.html +37 -0
  94. data/doc/html/structCamVolbergFwdParams.html +46 -0
  95. data/doc/html/structCamWarpingParams.html +70 -0
  96. data/doc/html/tab_b.gif +0 -0
  97. data/doc/html/tab_l.gif +0 -0
  98. data/doc/html/tab_r.gif +0 -0
  99. data/doc/html/tabs.css +102 -0
  100. data/doc/html/todo.html +29 -0
  101. data/doc/html/tree.html +106 -0
  102. data/doc/rtf/refman.rtf +7866 -0
  103. data/ext/Makefile +149 -0
  104. data/ext/README +12 -0
  105. data/ext/camellia_ruby.i +493 -0
  106. data/ext/camellia_ruby_wrap.cxx +21103 -0
  107. data/ext/extconf.rb +12 -0
  108. data/ext/install.rb +11 -0
  109. data/ext/swig_ruby.dsp +159 -0
  110. data/ext/swig_ruby.vcproj +290 -0
  111. data/ext/test.rb +31 -0
  112. data/inc/SHLWAPI.H +661 -0
  113. data/inc/cam_capture.h +202 -0
  114. data/inc/camellia.h +2651 -0
  115. data/inc/camellia_internals.h +205 -0
  116. data/inc/config.h +62 -0
  117. data/inc/config.h.in +61 -0
  118. data/inc/stamp-h1 +1 -0
  119. data/lib/camellia-fox.rb +39 -0
  120. data/test/test_arithm.rb +13 -0
  121. data/test/test_capture.rb +15 -0
  122. data/test/test_color_labeling.rb +45 -0
  123. data/test/test_copy.rb +13 -0
  124. data/test/test_draw.rb +15 -0
  125. data/test/test_fixed_filters.rb +23 -0
  126. data/test/test_fox.rb +106 -0
  127. data/test/test_fox2.rb +108 -0
  128. data/test/test_histogram.rb +18 -0
  129. data/test/test_hough.rb +29 -0
  130. data/test/test_keypoints.rb +106 -0
  131. data/test/test_labeling.rb +30 -0
  132. data/test/test_mask.rb +34 -0
  133. data/test/test_warping.rb +46 -0
  134. data/test/test_watershed.rb +35 -0
  135. data/test/ts_camellia.rb +12 -0
  136. metadata +204 -0
@@ -0,0 +1,34 @@
1
+ require 'test/unit'
2
+ require 'lib/camellia'
3
+ include Camellia
4
+ class TestMask < Test::Unit::TestCase
5
+ def test_mask
6
+ source=CamImage.new
7
+ # load picture chess.pgm
8
+ source.load_pgm("resources/chess.pgm")
9
+ mask=CamImage.new(source.width,source.height)
10
+ # draw a filled circle in mask
11
+ mask.set!(0)
12
+ mask.draw_circle(mask.width/2,mask.height/2,50,255)
13
+ n=mask.fill_color(mask.width/2,mask.height/2,255)
14
+ assert_equal(n,7837) # number of pixels filled with color
15
+ # encode the mask and associate it to the source image
16
+ encoded_mask=mask.encode
17
+ source.mask=encoded_mask
18
+ encoded_mask.inverse!
19
+ dest=CamImage.new
20
+ source.copy(dest) # copies only the mask! not like dup or clone!
21
+ # and then compute a sobel inside
22
+ encoded_mask.inverse!
23
+ b=source.sobel_v_abs(dest) # sobel only on the mask
24
+ dest.save_pgm("output/ruby_chess_sobel_mask.pgm")
25
+ # checking types
26
+ assert_equal(source.class,Camellia::CamImage)
27
+ assert_equal(encoded_mask.class,Camellia::CamRLEImage)
28
+
29
+ # use a non compressed mask
30
+ source.mask=mask
31
+ source.set!(0)
32
+ source.save_pgm("output/ruby_chess_hole.pgm");
33
+ end
34
+ end
@@ -0,0 +1,46 @@
1
+ require 'test/unit'
2
+ require 'lib/camellia'
3
+ include Camellia
4
+
5
+ class TestWarping < Test::Unit::TestCase
6
+
7
+ def test_warping
8
+ source=CamImage.new
9
+ # load picture chess.pgm
10
+ source.load_pgm("resources/chess.pgm")
11
+ resampled = CamImage.new(source.width / 2, source.height / 2, source.depth)
12
+ warped = CamImage.new(source.width, source.height, source.depth)
13
+ rotated = CamImage.new(source.width, source.height, source.depth)
14
+
15
+ for i in 0..1 do
16
+ interpolation = (i == 1) ? CAM_BILINEAR_INTERPOLATION : CAM_NN_INTERPOLATION
17
+
18
+ p = []
19
+ p << CamPoint.new(0, 0)
20
+ p << CamPoint.new( (source.width << 16) - 1, 0)
21
+ p << CamPoint.new( (source.width << 16) - 1, (source.height << 16) - 1)
22
+ p << CamPoint.new(0, (source.height << 16) -1)
23
+ source.warping(resampled, interpolation, false, *p)
24
+
25
+ p = []
26
+ p << CamPoint.new( ((source.width << 16) - 1) * 1 / 3, 0)
27
+ p << CamPoint.new( ((source.width << 16) - 1) * 2 / 3, 0)
28
+ p << CamPoint.new( (source.width << 16) - 1, (source.height << 16) - 1)
29
+ p << CamPoint.new(0, (source.height << 16) -1)
30
+ source.warping(warped, interpolation, true, *p)
31
+
32
+ p = []
33
+ p << CamPoint.new( (source.width << 16) / 2, -(source.height << 16) / 2)
34
+ p << CamPoint.new( 3 * (source.width << 16) / 2, (source.height << 16) / 2)
35
+ p << CamPoint.new( (source.width << 16) / 2, 3 * (source.height << 16) / 2)
36
+ p << CamPoint.new( -(source.width << 16) / 2, (source.height << 16) / 2)
37
+ source.warping(rotated, interpolation, true, *p)
38
+
39
+ # save images
40
+ resampled.save_pgm("output/chess_resampled_" + ((i == 1)?"bilinear":"nn") + ".pgm")
41
+ warped.save_pgm("output/chess_warped_" + ((i == 1)?"bilinear":"nn") + ".pgm")
42
+ rotated.save_pgm("output/chess_rotated_" + ((i == 1)?"bilinear":"nn") + ".pgm")
43
+ end
44
+ end
45
+
46
+ end
@@ -0,0 +1,35 @@
1
+ require 'test/unit'
2
+ require 'lib/camellia'
3
+ include Camellia
4
+ class TestWatershed < Test::Unit::TestCase
5
+ def test_watershed
6
+ [["lsun",60],
7
+ ["lsun_32x64e20-bord",50],
8
+ ["lsun_48x80e20",40],
9
+ ["lsun_56x88e20",50]].each do |fn,dyn|
10
+ source=CamImage.new
11
+ watershed=CamImage.new
12
+ tob=CamTableOfBasins.new
13
+ s="resources/#{fn}.pgm"
14
+ puts "Watershed on #{s} :"
15
+ source.load_pgm(s)
16
+ source.hierarchical_watershed(watershed,tob)
17
+ tob.each { |basin|
18
+ tob.get_rid_of(basin) if basin.dynamics<dyn
19
+ }
20
+ tob.each_with_index { |basin,i|
21
+ if basin.surface!=0 or basin.dynamics==CAM_NOT_COMPUTED
22
+ print "Basin #{i} : Dynamics = #{basin.dynamics}, Minimum = #{basin.minimum}, Surface = #{basin.accsurface}, (x,y)=(#{basin.x},#{basin.y})"
23
+ j=i
24
+ while tob[j].dynamics!=CAM_NOT_COMPUTED
25
+ printf "->#{tob[j].flooded}"
26
+ j=tob[j].flooded
27
+ end
28
+ printf "\n"
29
+ end
30
+ }
31
+ watershed.hierarchical_watershed_regions!(tob)
32
+ watershed.save_pgm("output/#{fn}.pgm")
33
+ end
34
+ end
35
+ end
@@ -0,0 +1,12 @@
1
+ require 'test/unit'
2
+ require 'test/test_labeling.rb'
3
+ require 'test/test_mask.rb'
4
+ require 'test/test_color_labeling.rb'
5
+ require 'test/test_arithm.rb'
6
+ require 'test/test_histogram.rb'
7
+ require 'test/test_hough.rb'
8
+ require 'test/test_fixed_filters.rb'
9
+ require 'test/test_watershed.rb'
10
+ require 'test/test_draw.rb'
11
+ require 'test/test_warping.rb'
12
+ require 'test/test_keypoints.rb'
metadata ADDED
@@ -0,0 +1,204 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: camellia
3
+ version: !ruby/object:Gem::Version
4
+ version: 2.7.0
5
+ platform: x86-linux
6
+ authors:
7
+ - Bruno STEUX
8
+ autorequire: camellia
9
+ bindir: bin
10
+ cert_chain: []
11
+
12
+ date: 2008-01-07 00:00:00 +01:00
13
+ default_executable:
14
+ dependencies: []
15
+
16
+ description:
17
+ email: bruno.steux@ensmp.fr
18
+ executables: []
19
+
20
+ extensions:
21
+ - ext/extconf.rb
22
+ extra_rdoc_files:
23
+ - README
24
+ files:
25
+ - doc/camellia.dox
26
+ - doc/README
27
+ - doc/html
28
+ - doc/html/doxygen.png
29
+ - doc/html/tab_b.gif
30
+ - doc/html/tab_l.gif
31
+ - doc/html/tab_r.gif
32
+ - doc/html/tabs.css
33
+ - doc/html/doxygen.css
34
+ - doc/html/main.html
35
+ - doc/html/camellia_8h-source.html
36
+ - doc/html/camellia_8h.html
37
+ - doc/html/todo.html
38
+ - doc/html/annotated.html
39
+ - doc/html/functions.html
40
+ - doc/html/functions_0x62.html
41
+ - doc/html/functions_0x63.html
42
+ - doc/html/functions_0x64.html
43
+ - doc/html/functions_0x65.html
44
+ - doc/html/functions_0x66.html
45
+ - doc/html/functions_0x67.html
46
+ - doc/html/functions_0x68.html
47
+ - doc/html/functions_0x69.html
48
+ - doc/html/functions_0x6b.html
49
+ - doc/html/functions_0x6c.html
50
+ - doc/html/functions_0x6d.html
51
+ - doc/html/functions_0x6e.html
52
+ - doc/html/functions_0x6f.html
53
+ - doc/html/functions_0x70.html
54
+ - doc/html/functions_0x72.html
55
+ - doc/html/functions_0x73.html
56
+ - doc/html/functions_0x74.html
57
+ - doc/html/functions_0x76.html
58
+ - doc/html/functions_0x77.html
59
+ - doc/html/functions_0x78.html
60
+ - doc/html/functions_0x79.html
61
+ - doc/html/functions_0x7e.html
62
+ - doc/html/functions_func.html
63
+ - doc/html/functions_func_0x62.html
64
+ - doc/html/functions_func_0x63.html
65
+ - doc/html/functions_func_0x64.html
66
+ - doc/html/functions_func_0x65.html
67
+ - doc/html/functions_func_0x66.html
68
+ - doc/html/functions_func_0x67.html
69
+ - doc/html/functions_func_0x68.html
70
+ - doc/html/functions_func_0x69.html
71
+ - doc/html/functions_func_0x6c.html
72
+ - doc/html/functions_func_0x6d.html
73
+ - doc/html/functions_func_0x6f.html
74
+ - doc/html/functions_func_0x70.html
75
+ - doc/html/functions_func_0x72.html
76
+ - doc/html/functions_func_0x73.html
77
+ - doc/html/functions_func_0x74.html
78
+ - doc/html/functions_func_0x76.html
79
+ - doc/html/functions_func_0x77.html
80
+ - doc/html/functions_func_0x7e.html
81
+ - doc/html/functions_vars.html
82
+ - doc/html/structCamAffineTransform.html
83
+ - doc/html/structCamArithmParams.html
84
+ - doc/html/structCamBasin.html
85
+ - doc/html/structCamBitmapFont.html
86
+ - doc/html/structCamBlobInfo.html
87
+ - doc/html/structCamBlobs.html
88
+ - doc/html/structCamImage.html
89
+ - doc/html/structCamKeypoint.html
90
+ - doc/html/structCamKeypoints.html
91
+ - doc/html/structCamKeypointsKdTree.html
92
+ - doc/html/structCamKeypointsMatches.html
93
+ - doc/html/structCamLabelingResults.html
94
+ - doc/html/structCamLinearFilterKernel.html
95
+ - doc/html/structCamMeasuresResults.html
96
+ - doc/html/structCamMorphoMathsKernel.html
97
+ - doc/html/structCamPoint.html
98
+ - doc/html/structCamRLEImage.html
99
+ - doc/html/structCamROI.html
100
+ - doc/html/structCamRun.html
101
+ - doc/html/structCamSepFilterKernel.html
102
+ - doc/html/structCamTable.html
103
+ - doc/html/structCamTableOfBasins.html
104
+ - doc/html/structCamVolbergFwdParams.html
105
+ - doc/html/structCamWarpingParams.html
106
+ - doc/html/files.html
107
+ - doc/html/globals.html
108
+ - doc/html/globals_func.html
109
+ - doc/html/globals_defs.html
110
+ - doc/html/pages.html
111
+ - doc/html/index.html
112
+ - doc/html/tree.html
113
+ - doc/html/ftv2blank.png
114
+ - doc/html/ftv2doc.png
115
+ - doc/html/ftv2folderclosed.png
116
+ - doc/html/ftv2folderopen.png
117
+ - doc/html/ftv2lastnode.png
118
+ - doc/html/ftv2link.png
119
+ - doc/html/ftv2mlastnode.png
120
+ - doc/html/ftv2mnode.png
121
+ - doc/html/ftv2node.png
122
+ - doc/html/ftv2plastnode.png
123
+ - doc/html/ftv2pnode.png
124
+ - doc/html/ftv2vertline.png
125
+ - doc/rtf
126
+ - doc/rtf/refman.rtf
127
+ - lib/camellia-fox.rb
128
+ - test/test_fox2.rb
129
+ - test/ts_camellia.rb
130
+ - test/test_capture.rb
131
+ - test/test_arithm.rb
132
+ - test/test_watershed.rb
133
+ - test/test_fixed_filters.rb
134
+ - test/test_copy.rb
135
+ - test/test_hough.rb
136
+ - test/test_color_labeling.rb
137
+ - test/test_mask.rb
138
+ - test/test_fox.rb
139
+ - test/test_draw.rb
140
+ - test/test_histogram.rb
141
+ - test/test_labeling.rb
142
+ - test/test_keypoints.rb
143
+ - test/test_warping.rb
144
+ - ext/camellia_ruby.i
145
+ - ext/swig_ruby.dsp
146
+ - ext/test.rb
147
+ - ext/extconf.rb
148
+ - ext/install.rb
149
+ - ext/swig_ruby.vcproj
150
+ - ext/README
151
+ - ext/camellia_ruby_wrap.cxx
152
+ - ext/Makefile
153
+ - inc/cam_capture.h
154
+ - inc/camellia_internals.h
155
+ - inc/SHLWAPI.H
156
+ - inc/camellia.h
157
+ - inc/config.h.in
158
+ - inc/config.h
159
+ - inc/stamp-h1
160
+ - CamelliaLib-2.7.0.tar.gz
161
+ - README
162
+ has_rdoc: false
163
+ homepage: http://camellia.sourceforge.net
164
+ post_install_message:
165
+ rdoc_options: []
166
+
167
+ require_paths:
168
+ - lib
169
+ required_ruby_version: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - ">="
172
+ - !ruby/object:Gem::Version
173
+ version: "0"
174
+ version:
175
+ required_rubygems_version: !ruby/object:Gem::Requirement
176
+ requirements:
177
+ - - ">="
178
+ - !ruby/object:Gem::Version
179
+ version: "0"
180
+ version:
181
+ requirements: []
182
+
183
+ rubyforge_project:
184
+ rubygems_version: 1.0.1
185
+ signing_key:
186
+ specification_version: 2
187
+ summary: Image Processing & Computer Vision library
188
+ test_files:
189
+ - test/test_fox2.rb
190
+ - test/ts_camellia.rb
191
+ - test/test_capture.rb
192
+ - test/test_arithm.rb
193
+ - test/test_watershed.rb
194
+ - test/test_fixed_filters.rb
195
+ - test/test_copy.rb
196
+ - test/test_hough.rb
197
+ - test/test_color_labeling.rb
198
+ - test/test_mask.rb
199
+ - test/test_fox.rb
200
+ - test/test_draw.rb
201
+ - test/test_histogram.rb
202
+ - test/test_labeling.rb
203
+ - test/test_keypoints.rb
204
+ - test/test_warping.rb