Update corrected the name of the threshold function
This commit is contained in:
@ -14,11 +14,11 @@ function setup() {
|
|||||||
function draw() {
|
function draw() {
|
||||||
background(255, 0, 255);
|
background(255, 0, 255);
|
||||||
image(imgIn, 0, 0);
|
image(imgIn, 0, 0);
|
||||||
image(grayScaleFilter(imgIn), imgIn.width, 0);
|
image(thresholdFilter(imgIn), imgIn.width, 0);
|
||||||
//noLoop();
|
//noLoop();
|
||||||
}
|
}
|
||||||
|
|
||||||
function grayScaleFilter(img) {
|
function thresholdFilter(img) {
|
||||||
imgOut = createImage(img.width, img.height);
|
imgOut = createImage(img.width, img.height);
|
||||||
imgOut.loadPixels();
|
imgOut.loadPixels();
|
||||||
img.loadPixels();
|
img.loadPixels();
|
||||||
|
|||||||
Reference in New Issue
Block a user