Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
ee270d1a
Commit
ee270d1a
authored
Dec 11, 2013
by
Andrey Pavlenko
Committed by
OpenCV Buildbot
Dec 11, 2013
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1975 from magomimmo:clj-tut
parents
ce503c64
00a18018
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
64 additions
and
2 deletions
+64
-2
tocDefinitions.rst
doc/tutorials/definitions/tocDefinitions.rst
+2
-2
clojure_dev_intro.rst
...ials/introduction/clojure_dev_intro/clojure_dev_intro.rst
+0
-0
blurred.png
...torials/introduction/clojure_dev_intro/images/blurred.png
+0
-0
lena.png
doc/tutorials/introduction/clojure_dev_intro/images/lena.png
+0
-0
clojure-logo.png
...ion/table_of_content_introduction/images/clojure-logo.png
+0
-0
table_of_content_introduction.rst
...of_content_introduction/table_of_content_introduction.rst
+16
-0
.gitignore
samples/java/clojure/simple-sample/.gitignore
+9
-0
project.clj
samples/java/clojure/simple-sample/project.clj
+14
-0
lena.png
samples/java/clojure/simple-sample/resources/images/lena.png
+0
-0
core.clj
...les/java/clojure/simple-sample/src/simple_sample/core.clj
+16
-0
core_test.clj
...va/clojure/simple-sample/test/simple_sample/core_test.clj
+7
-0
No files found.
doc/tutorials/definitions/tocDefinitions.rst
View file @
ee270d1a
...
...
@@ -11,4 +11,5 @@
.. |Author_EricCh| unicode:: Eric U+0020 Christiansen
.. |Author_AndreyP| unicode:: Andrey U+0020 Pavlenko
.. |Author_AlexS| unicode:: Alexander U+0020 Smorkalov
.. |Author_BarisD| unicode:: Bar U+0131 U+015F U+0020 Evrim U+0020 Demir U+00F6 z
\ No newline at end of file
.. |Author_MimmoC| unicode:: Mimmo U+0020 Cosenza
.. |Author_BarisD| unicode:: Bar U+0131 U+015F U+0020 Evrim U+0020 Demir U+00F6 z
doc/tutorials/introduction/clojure_dev_intro/clojure_dev_intro.rst
0 → 100644
View file @
ee270d1a
This diff is collapsed.
Click to expand it.
doc/tutorials/introduction/clojure_dev_intro/images/blurred.png
0 → 100644
View file @
ee270d1a
351 KB
doc/tutorials/introduction/clojure_dev_intro/images/lena.png
0 → 100644
View file @
ee270d1a
606 KB
doc/tutorials/introduction/table_of_content_introduction/images/clojure-logo.png
0 → 100644
View file @
ee270d1a
7.68 KB
doc/tutorials/introduction/table_of_content_introduction/table_of_content_introduction.rst
View file @
ee270d1a
...
...
@@ -156,6 +156,21 @@ world of the OpenCV.
:height: 90pt
:width: 90pt
================ =================================================
|ClojureLogo| **Title:** :ref:`clojure_dev_intro`
*Compatibility:* > OpenCV 2.4.4
*Author:* |Author_MimmoC|
A tutorial on how to interactively use OpenCV from the Clojure REPL.
================ =================================================
.. |ClojureLogo| image:: images/clojure-logo.png
:height: 90pt
:width: 90pt
* **Android**
.. tabularcolumns:: m{100pt} m{300pt}
...
...
@@ -314,6 +329,7 @@ world of the OpenCV.
../windows_visual_studio_image_watch/windows_visual_studio_image_watch
../desktop_java/java_dev_intro
../java_eclipse/java_eclipse
../clojure_dev_intro/clojure_dev_intro
../android_binary_package/android_dev_intro
../android_binary_package/O4A_SDK
../android_binary_package/dev_with_OCV_on_Android
...
...
samples/java/clojure/simple-sample/.gitignore
0 → 100644
View file @
ee270d1a
/target
/classes
/checkouts
pom.xml
pom.xml.asc
*.jar
*.class
/.lein-*
/.nrepl-port
samples/java/clojure/simple-sample/project.clj
0 → 100644
View file @
ee270d1a
(
defproject
simple-sample
"0.1.0-SNAPSHOT"
:pom-addition
[
:developers
[
:developer
{
:id
"magomimmo"
}
[
:name
"Mimmo Cosenza"
]
[
:url
"https://github.com/magomimmoo"
]]]
:description
"A simple project to start REPLing with OpenCV"
:url
"http://example.com/FIXME"
:license
{
:name
"BSD 3-Clause License"
:url
"http://opensource.org/licenses/BSD-3-Clause"
}
:dependencies
[[
org.clojure/clojure
"1.5.1"
]
[
opencv/opencv
"2.4.7"
]
[
opencv/opencv-native
"2.4.7"
]]
:main
simple-sample.core
:injections
[(
clojure.lang.RT/loadLibrary
org.opencv.core.Core/NATIVE_LIBRARY_NAME
)])
samples/java/clojure/simple-sample/resources/images/lena.png
0 → 100644
View file @
ee270d1a
606 KB
samples/java/clojure/simple-sample/src/simple_sample/core.clj
0 → 100644
View file @
ee270d1a
;;; to run this code from the terminal: "$ lein run". It will save a
;;; blurred image version of resources/images/lena.png as
;;; resources/images/blurred.png
(
ns
simple-sample.core
(
:import
[
org.opencv.core
Point
Rect
Mat
CvType
Size
Scalar
]
org.opencv.highgui.Highgui
org.opencv.imgproc.Imgproc
))
(
defn
-main
[
&
args
]
(
let
[
lena
(
Highgui/imread
"resources/images/lena.png"
)
blurred
(
Mat.
512
512
CvType/CV_8UC3
)]
(
print
"Blurring..."
)
(
Imgproc/GaussianBlur
lena
blurred
(
Size.
5
5
)
3
3
)
(
Highgui/imwrite
"resources/images/blurred.png"
blurred
)
(
println
"done!"
)))
samples/java/clojure/simple-sample/test/simple_sample/core_test.clj
0 → 100644
View file @
ee270d1a
(
ns
simple-sample.core-test
(
:require
[
clojure.test
:refer
:all
]
[
simple-sample.core
:refer
:all
]))
(
deftest
a-test
(
testing
"FIXME, I fail."
(
is
(
=
0
1
))))
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment