HOME PRODUCTS QODE SHARE SHOP 0
15
CHAPTER
OTHER VISUAL APPLICATIONS WITH NOVA
This chapter will demonstrate the built-in functions of OpenCV for Processing IDE. The code for each
example (for Processing IDE) is provided at the bottom of the screenshots. You can try these features and
use them in many different applications depending on your imagination.
Let's start by having a look at these features and built-in functions.
Brightness and Contrast
Adjust the brightness and contrast of colour and grey images.
Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD
Code: BrightnessContrast.pde
Filter Images
Basic filtering operations on images: threshold, blur, and adaptive thresholds.
Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD
Code: FilterImages.pde
Find Contours
Find contours in images and calculate polygon approximations of the contours (i.e., the closest straight
line that fits the contour).
Code: FindContours.pde
Find Edges
Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD
Three different edge-detection techniques: Canny, Scharr, and Sobel.
Code: FindEdges.pde
Find Lines
Find straight lines in the image using Hough line detection.
Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD
Code: HoughLineDetection.pde
Brightest Point
Find the brightest point in an image.
Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD
Code: BrightestPoint.pde
Region of Interest
Assign a sub-section (or Region of Interest) of the image to be processed.
Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD
Code: RegionOfInterest.pde
Image Difference
Find the difference between two images in order to subtract the background or detect a new object in a
scene.
Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD
Code: ImageDiff.pde
Dilation and Erosion
Thin (erode) and expand (dilate) an image in order to close holes. These are known as "morphological"
operations.
Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD
Code: DilationAndErosion.pde
Background Subtraction
Detect moving objects in a scene. Use background subtraction to distinguish background from
foreground and contour tracking to track the foreground objects.
Code: BackgroundSubtraction.pde
Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD
Working with Colour Images
Demonstration of what you can do colour images in OpenCV (threshold, blur, etc) and what you can't (lots
of other operations).
Code: WorkingWithColorImages.pde
Colour Channels
Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD
Separate a colour image into red, green, blue or hue, saturation, and value channels in order to work with
the channels individually.
Code: ColorChannels.pde
Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD
Find Histogram
Demonstrates use of the findHistogram() function and the Histogram class to get and draw histograms for
grayscale and individual colour channels.
Code: FindHistogram.pde
Hue Range Selection
Detect objects based on their colour. Demonstrates the use of HSV colour space as well as range-based
image filtering.
Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD
Code: HueRangeSelection.pde
Calibration
An example of the process involved in calibrating a camera.
Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD
Code: CalibrationDemo.pde
Histogram Skin Detection
Detecting skin in an image based on colours in a region of colour space. Warning: uses un-wrapped
OpenCV objects and functions.
Code: HistogramSkinDetection.pde
Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD
Depth from Stereo
An advanced example. Calculates depth information from a pair of stereo images. Warning: uses un-
wrapped OpenCV objects and functions.
Code: DepthFromStereo.pde
Warp Perspective
Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD
Un-distort an object that's in perspective.
Code: WarpPerspective.pde
Marker Detection
An in-depth advanced example. Detect a CV marker in an image, warp perspective, and detect the
number stored in the marker. Many steps in the code. Uses many un-wrapped OpenCV objects and
functions.
Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD
Code: MarkerDetection.pde
Morphology Operations
Open and close an image, or do more complicated morphological transformations.
Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD
Code: MorphologyOperations.pde
PREVIOUS CHAPTER MAIN MENU NEXT CHAPTER
CONTACT US
ABOUT CREOQODE
CREOQODE ON PRESS
TERMS & CONDITIONS
Email Address SUBSCRIBE NOW
SHIPPING POLICY
DESIGNED & ENGINEERED IN LONDON, UK
© 2019 Creoqode
Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD
Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD