-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Chris Zheng
committed
Feb 8, 2018
1 parent
6d5aa43
commit 2e59d14
Showing
5 changed files
with
34 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
language: clojure | ||
script: lein test | ||
jdk: oraclejdk8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
(ns image-bench.sobel-test | ||
(:use hara.test) | ||
(:require [image-bench.sobel :as sobel] | ||
[image-bench.grayscale :as gray] | ||
[image-bench.image :as img])) | ||
|
||
|
||
;; PASSES | ||
(fact "running a sobel kernel at [345, 912] [1 1]" | ||
|
||
(def img (img/load-image "resources/lena-0345x0912.jpg")) | ||
|
||
(gray/grayscale img) | ||
=> java.awt.image.BufferedImage) | ||
|
||
|
||
;; FAILS | ||
(fact "running a sobel kernel at [345, 912] [13, 3]" | ||
|
||
(def img (img/load-image "resources/lena-0345x0912.jpg")) | ||
|
||
(gray/grayscale img [13 3]) | ||
=> java.awt.image.BufferedImage) |