Skip to content

Commit 2fdf1dd

Browse files
committed
Rename package from gab.opencvpro to gab.opencv.
Update libary name to opencv_processing. Update all examples to new package name. Change frontalface contstant to remove _ALT.
1 parent 24f00a4 commit 2fdf1dd

File tree

129 files changed

+33454
-606
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

129 files changed

+33454
-606
lines changed
-56 Bytes
Binary file not shown.
-56 Bytes
Binary file not shown.

distribution/opencv-processing-1/examples/BackgroundSubtraction/BackgroundSubtraction.pde

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import gab.opencvpro.*;
1+
import gab.opencv.*;
22
import processing.video.*;
33

44
Movie video;
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
import gab.opencvpro.*;
2+
3+
OpenCV opencv;
4+
PImage src, r, g, b, h, s, v;
5+
6+
int imgH, imgW;
7+
8+
void setup() {
9+
src = loadImage("testImage.png");
10+
opencv = new OpenCV(this, src);
11+
size(int(opencv.width*1.5), int(opencv.height * 1.5), P2D);
12+
13+
imgH = src.height/2;
14+
imgW = src.width/2;
15+
16+
opencv.setBufferGray(opencv.getBufferR());
17+
r = opencv.getSnapshot();
18+
19+
opencv.setBufferGray(opencv.getBufferG());
20+
g = opencv.getSnapshot();
21+
22+
opencv.setBufferGray(opencv.getBufferB());
23+
b = opencv.getSnapshot();
24+
25+
opencv.useColor(HSB);
26+
opencv.setBufferGray(opencv.getBufferH());
27+
h = opencv.getSnapshot();
28+
29+
opencv.setBufferGray(opencv.getBufferS());
30+
s = opencv.getSnapshot();
31+
32+
opencv.setBufferGray(opencv.getBufferV());
33+
v = opencv.getSnapshot();
34+
}
35+
36+
void draw() {
37+
background(0);
38+
noTint();
39+
image(src, imgW,0, imgW, imgH);
40+
41+
tint(255,0,0);
42+
image(r, 0, imgH, imgW, imgH);
43+
44+
tint(0,255,0);
45+
image(g, imgW, imgH, imgW, imgH);
46+
47+
tint(0,0,255);
48+
image(b, 2*imgW, imgH, imgW, imgH);
49+
50+
noTint();
51+
image(h, 0, 2*imgH, imgW, imgH);
52+
image(s, imgW, 2*imgH, imgW, imgH);
53+
image(v, 2*imgW, 2*imgH, imgW, imgH);
54+
55+
}

distribution/opencv-processing-1/examples/RGBChannels/green_object.png renamed to distribution/opencv-processing-1/examples/ColorChannels/green_object.png

File renamed without changes.

distribution/opencv-processing-1/examples/RGBChannels/testImage.png renamed to distribution/opencv-processing-1/examples/ColorChannels/testImage.png

File renamed without changes.

distribution/opencv-processing-1/examples/RGBChannels/RGBChannels.pde

Lines changed: 0 additions & 34 deletions
This file was deleted.

distribution/opencv-processing-1/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ <h2>Installation</h2>
7878
<h2>Examples</h2>
7979
<p>Find a list of examples in the current distribution of OpenCV for Processing, or have a look at them by following the links below.</p>
8080
<ul>
81-
<li><a href="examples/BackgroundSubtraction/BackgroundSubtraction.pde">BackgroundSubtraction</a></li> <li><a href="examples/BrightestPoint/BrightestPoint.pde">BrightestPoint</a></li> <li><a href="examples/BrightnessContrast/BrightnessContrast.pde">BrightnessContrast</a></li> <li><a href="examples/CalibrationDemo/CalibrationDemo.pde">CalibrationDemo</a></li> <li><a href="examples/DepthFromStereo/DepthFromStereo.pde">DepthFromStereo</a></li> <li><a href="examples/DilationAndErosion/DilationAndErosion.pde">DilationAndErosion</a></li> <li><a href="examples/FaceDetection/FaceDetection.pde">FaceDetection</a></li> <li><a href="examples/FilterImages/FilterImages.pde">FilterImages</a></li> <li><a href="examples/FindContours/FindContours.pde">FindContours</a></li> <li><a href="examples/FindEdges/FindEdges.pde">FindEdges</a></li> <li><a href="examples/FindHistogram/FindHistogram.pde">FindHistogram</a></li> <li><a href="examples/HistogramSkinDetection/HistogramSkinDetection.pde">HistogramSkinDetection</a></li> <li><a href="examples/HueRangeSelection/HueRangeSelection.pde">HueRangeSelection</a></li> <li><a href="examples/ImageDiff/ImageDiff.pde">ImageDiff</a></li> <li><a href="examples/LiveCamTest/LiveCamTest.pde">LiveCamTest</a></li> <li><a href="examples/LoadAndDisplayImage/LoadAndDisplayImage.pde">LoadAndDisplayImage</a></li> <li><a href="examples/LumaVsGray/LumaVsGray.pde">LumaVsGray</a></li> <li><a href="examples/MarkerDetection/MarkerDetection.pde">MarkerDetection</a></li> <li><a href="examples/RGBChannels/RGBChannels.pde">RGBChannels</a></li> <li><a href="examples/RegionOfInterest/RegionOfInterest.pde">RegionOfInterest</a></li> <li><a href="examples/WorkingWithColorImages/WorkingWithColorImages.pde">WorkingWithColorImages</a></li>
81+
<li><a href="examples/BackgroundSubtraction/BackgroundSubtraction.pde">BackgroundSubtraction</a></li> <li><a href="examples/BrightestPoint/BrightestPoint.pde">BrightestPoint</a></li> <li><a href="examples/BrightnessContrast/BrightnessContrast.pde">BrightnessContrast</a></li> <li><a href="examples/CalibrationDemo/CalibrationDemo.pde">CalibrationDemo</a></li> <li><a href="examples/ColorChannels/ColorChannels.pde">ColorChannels</a></li> <li><a href="examples/DepthFromStereo/DepthFromStereo.pde">DepthFromStereo</a></li> <li><a href="examples/DilationAndErosion/DilationAndErosion.pde">DilationAndErosion</a></li> <li><a href="examples/FaceDetection/FaceDetection.pde">FaceDetection</a></li> <li><a href="examples/FilterImages/FilterImages.pde">FilterImages</a></li> <li><a href="examples/FindContours/FindContours.pde">FindContours</a></li> <li><a href="examples/FindEdges/FindEdges.pde">FindEdges</a></li> <li><a href="examples/FindHistogram/FindHistogram.pde">FindHistogram</a></li> <li><a href="examples/HistogramSkinDetection/HistogramSkinDetection.pde">HistogramSkinDetection</a></li> <li><a href="examples/HueRangeSelection/HueRangeSelection.pde">HueRangeSelection</a></li> <li><a href="examples/ImageDiff/ImageDiff.pde">ImageDiff</a></li> <li><a href="examples/LiveCamTest/LiveCamTest.pde">LiveCamTest</a></li> <li><a href="examples/LoadAndDisplayImage/LoadAndDisplayImage.pde">LoadAndDisplayImage</a></li> <li><a href="examples/LumaVsGray/LumaVsGray.pde">LumaVsGray</a></li> <li><a href="examples/MarkerDetection/MarkerDetection.pde">MarkerDetection</a></li> <li><a href="examples/RegionOfInterest/RegionOfInterest.pde">RegionOfInterest</a></li> <li><a href="examples/WorkingWithColorImages/WorkingWithColorImages.pde">WorkingWithColorImages</a></li>
8282
</ul>
8383
</div>
8484

distribution/opencv-processing-1/reference/allclasses-frame.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<!--NewPage-->
33
<HTML>
44
<HEAD>
5-
<!-- Generated by javadoc (build 1.6.0_45) on Tue Jul 09 09:55:21 EDT 2013 -->
5+
<!-- Generated by javadoc (build 1.6.0_45) on Tue Jul 09 11:03:46 EDT 2013 -->
66
<TITLE>
77
All Classes (Javadocs: opencv-processing)
88
</TITLE>
@@ -21,13 +21,13 @@
2121

2222
<TABLE BORDER="0" WIDTH="100%" SUMMARY="">
2323
<TR>
24-
<TD NOWRAP><FONT CLASS="FrameItemFont"><A HREF="gab/opencvpro/Contour.html" title="class in gab.opencvpro" target="classFrame">Contour</A>
24+
<TD NOWRAP><FONT CLASS="FrameItemFont"><A HREF="gab/opencv/Contour.html" title="class in gab.opencv" target="classFrame">Contour</A>
2525
<BR>
26-
<A HREF="gab/opencvpro/ContourComparator.html" title="class in gab.opencvpro" target="classFrame">ContourComparator</A>
26+
<A HREF="gab/opencv/ContourComparator.html" title="class in gab.opencv" target="classFrame">ContourComparator</A>
2727
<BR>
28-
<A HREF="gab/opencvpro/Histogram.html" title="class in gab.opencvpro" target="classFrame">Histogram</A>
28+
<A HREF="gab/opencv/Histogram.html" title="class in gab.opencv" target="classFrame">Histogram</A>
2929
<BR>
30-
<A HREF="gab/opencvpro/OpenCV.html" title="class in gab.opencvpro" target="classFrame">OpenCV</A>
30+
<A HREF="gab/opencv/OpenCV.html" title="class in gab.opencv" target="classFrame">OpenCV</A>
3131
<BR>
3232
</FONT></TD>
3333
</TR>

distribution/opencv-processing-1/reference/allclasses-noframe.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<!--NewPage-->
33
<HTML>
44
<HEAD>
5-
<!-- Generated by javadoc (build 1.6.0_45) on Tue Jul 09 09:55:21 EDT 2013 -->
5+
<!-- Generated by javadoc (build 1.6.0_45) on Tue Jul 09 11:03:46 EDT 2013 -->
66
<TITLE>
77
All Classes (Javadocs: opencv-processing)
88
</TITLE>
@@ -21,13 +21,13 @@
2121

2222
<TABLE BORDER="0" WIDTH="100%" SUMMARY="">
2323
<TR>
24-
<TD NOWRAP><FONT CLASS="FrameItemFont"><A HREF="gab/opencvpro/Contour.html" title="class in gab.opencvpro">Contour</A>
24+
<TD NOWRAP><FONT CLASS="FrameItemFont"><A HREF="gab/opencv/Contour.html" title="class in gab.opencv">Contour</A>
2525
<BR>
26-
<A HREF="gab/opencvpro/ContourComparator.html" title="class in gab.opencvpro">ContourComparator</A>
26+
<A HREF="gab/opencv/ContourComparator.html" title="class in gab.opencv">ContourComparator</A>
2727
<BR>
28-
<A HREF="gab/opencvpro/Histogram.html" title="class in gab.opencvpro">Histogram</A>
28+
<A HREF="gab/opencv/Histogram.html" title="class in gab.opencv">Histogram</A>
2929
<BR>
30-
<A HREF="gab/opencvpro/OpenCV.html" title="class in gab.opencvpro">OpenCV</A>
30+
<A HREF="gab/opencv/OpenCV.html" title="class in gab.opencv">OpenCV</A>
3131
<BR>
3232
</FONT></TD>
3333
</TR>

0 commit comments

Comments
 (0)