Calibrate works?
This commit is contained in:
parent
26e34f7671
commit
cc711c6343
1104 changed files with 636510 additions and 75 deletions
38
lib/opencv_processing/examples/ImageDiff/ImageDiff.pde
Normal file
38
lib/opencv_processing/examples/ImageDiff/ImageDiff.pde
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
import gab.opencv.*;
|
||||
|
||||
OpenCV opencv;
|
||||
PImage before, after, grayDiff;
|
||||
//PImage colorDiff;
|
||||
void setup() {
|
||||
before = loadImage("before.jpg");
|
||||
after = loadImage("after.jpg");
|
||||
size(before.width, before.height);
|
||||
|
||||
opencv = new OpenCV(this, before);
|
||||
opencv.diff(after);
|
||||
grayDiff = opencv.getSnapshot();
|
||||
|
||||
// opencv.useColor();
|
||||
// opencv.loadImage(after);
|
||||
// opencv.diff(after);
|
||||
// colorDiff = opencv.getSnapshot();
|
||||
|
||||
}
|
||||
|
||||
void draw() {
|
||||
pushMatrix();
|
||||
scale(0.5);
|
||||
image(before, 0, 0);
|
||||
image(after, before.width, 0);
|
||||
// image(colorDiff, 0, before.height);
|
||||
image(grayDiff, before.width, before.height);
|
||||
popMatrix();
|
||||
|
||||
fill(255);
|
||||
text("before", 10, 20);
|
||||
text("after", before.width/2 +10, 20);
|
||||
text("gray diff", before.width/2 + 10, before.height/2+ 20);
|
||||
|
||||
// text("color diff", 10, before.height/2+ 20);
|
||||
}
|
||||
|
||||
BIN
lib/opencv_processing/examples/ImageDiff/after.jpg
Normal file
BIN
lib/opencv_processing/examples/ImageDiff/after.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 128 KiB |
BIN
lib/opencv_processing/examples/ImageDiff/before.jpg
Normal file
BIN
lib/opencv_processing/examples/ImageDiff/before.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 132 KiB |
Loading…
Add table
Add a link
Reference in a new issue