Opencv program | Chemistry homework help

For this project, you are to implement a prototype of “Photo Booth” by using different kernels for image filter. The input image is obtained directly from the web camera captured video. Your task is to apply different kernels triggered by hitting different keys on the keyboard:

Don't use plagiarized sources. Get Your Custom Essay on
Opencv program | Chemistry homework help
Just from $13/Page
Order Essay
Connect with a professional writer in 5 simple steps

Please provide as many details about your writing struggle as possible

Academic level of your paper

Type of Paper

When is it due?

How many pages is this assigment?

(1) Hit “i” shows the original video

The “identical” kernel is [0 0 0; 0 1 0; 0 0 0]. Semi-colon “;” indicates a new row.

(2) Hit “g” shows the Gaussian blurred video

The “Gaussian” kernel is [1 2 1; 2 4 2; 1 2 1] * 1/16. 

(3) Hit “m” shows the mean/average blurred video

The ” mean” kernel is [1 1 1; 1 1 1; 1 1 1] * 1/9.   

(4) Hit “e” shows the ordinary edge effect

The “edge” kernel is [-1 -1 -1; -1 8 -1; -1 -1 -1]

(5) Hit “v” shows the vertical edge effect by applying the Sobel filter

The vertical Sobel kernel is [-1 0 1; -2 0 2; -1 0 1]

(6) Hit “h” shows the horizontal edge effect by applying the Sobel filter

The horizontal Sobel kernel is [-1 -2 -1; 0 0 0; 1 2 1]

(7) Hit “s” shows the sharpen effect 

The sharpen kernel is [0 -1 0; -1 5 -1; 0 -1 0]. If the result is not obvious, you can change a bigger number than “5” for the center number, such as 7.

 

Hints:

You do not need to implement the filter from scratch. Instead, OpenCV provides you with a convenient filter API: “filter2D()”. You just need to use this function directly and put two “Mat” variables as input with some other basic parameters. The two “Mat” variables refer to the input original image and the corresponding Kernel image. (please refer online document for further details: http://docs.opencv.org/modules/imgproc/doc/filtering.html#void filter2D(InputArray src, OutputArray dst, int ddepth, InputArray kernel, Point anchor, double delta, int borderType)”

You can start with the demo code for Gaussian blur posted as a basic framework. What you need to do is to replace the four nested loops in the demo code by using kernel functions. You are suggested to create a separate function, e.g. myEffect(Mat original_frame) or myEffect(). This function is called inside the while loop for every input video frame for effect processing. 

 

Rubrics:

(1) Successfully pass compilation or linkage (10%)

(2) Correctly stream the video from a webcam and display it. If “Esc” key is hit, the application terminates (20%)

(3) Correctly use “filter2D()” function with proper parameters passing (30%)

(4) Fully generate all the required effects with corresponding keyboard operations (40%)

 

Order a unique copy of this paper
(550 words)

Approximate price: $22

Basic features
  • Free title page and bibliography
  • Unlimited revisions
  • Plagiarism-free guarantee
  • Money-back guarantee
  • 24/7 support
On-demand options
  • Writer’s samples
  • Part-by-part delivery
  • Overnight delivery
  • Copies of used sources
  • Expert Proofreading
Paper format
  • 275 words per page
  • 12 pt Arial/Times New Roman
  • Double line spacing
  • Any citation style (APA, MLA, Chicago/Turabian, Harvard)

Our Guarantees

At Myrestlab.com, we always work diligently to provide our customers with high-quality nursing assignment help services. We ensure that all papers by our writers possess 100% originality. We also guarantee all students of 100% privacy and confidentiality when working with us.

Money-Back Guarantee

At Myrestlab.com, our mission is to provide quality services to all students. We, therefore, guarantee money-backs for the rare occasions of satisfaction. Your satisfaction is our goal.

Read more

Zero-Plagiarism Guarantee

All our nursing assignment help services are 100% original. Each of our professional writers develops custom papers from scratch to reduce the chances of plagiarism. In addition to this, we always run completed papers through advanced anti-plagiarism checkers for 100% originality.

Read more

Free Revision Policy

Our free revision guarantee is a courtesy service by Myrestlab.com to ensure that we achieve 100% customer satisfaction rates. In case you feel unsatisfied with the outcome of your paper, you can always request for free unlimited revisions. We recommend a revision request within 14 days after the delivery date for short papers and 30 for dissertations.

Read more

Privacy Policy

Myrestlab.com also guarantee 100 privacy and confidentiality. We do not share any of our customers’ personal details with third parties. We have also fitted our websites with security features to ensure secure connections. Our security features also prevent damages that might occur through attacks by outsiders.

Read more

Fair-Cooperation Guarantee

By ordering a paper through My Rest Lab, you agree to receive nursing assignment help services offered by our nursing assignment writers. Our assignment help experts will always endear to provide quality services as promised. We always expect maximum cooperation from our students to help us achieve our mission and vision.

Read more

Calculate the price of your order

550 words
We'll send you the first draft for approval by September 11, 2018 at 10:52 AM
Total price:
$26
The price is based on these factors:
Academic level
Number of pages
Urgency