Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Exam (elaborations)

MECH 472 / 6631 Final Exam with all questions n answers |solution graded

Rating
-
Sold
-
Pages
2
Grade
A+
Uploaded on
18-01-2025
Written in
2024/2025

MECH 472 / 6631 Final Exam with all questions n answers |solution graded

Institution
Course

Content preview

MECH Final Exam

This exam is completely open book. Any material you have at home or on your
computer hard drive is allowed as a reference. However, collaboration with
anyone or accessing the internet is not allowed. Cutting and pasting (other than
your own previous work or lecture material) is not allowed.

Programs should be implemented in an efficient and practical manner. When in
doubt, state your assumptions and use common sense.

When you have completed the exam please submit your files as an assignment
on Moodle. Programs should be in *.cpp format. Other documents should be in
word or pdf format. Clearly label your answers for each question (Q1.cpp,
Q2.pdf, etc.).

Email a copy of your solution to yourself (not me though) as a backup so you
have proof if something goes wrong with your submission.

Please check your files before submitting them to make sure they can be opened
and read on a computer.


Question #1

a) Write a C++ computer vision function with the prototype:

int green_centroid(image &b, double &ic, double &jc, int imin, int imax, int jmin,
int jmax);

The function calculates the centroid (ic,jc) of all green pixels of a RGB image
structure b inside a rectangular window in the image indicated by
(imin,imax,jmin,jmax). See the figure below for an illustration. The function will
return 0 if green pixels are inside the window and 1 if no such pixels are found.

Written for

Course

Document information

Uploaded on
January 18, 2025
Number of pages
2
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

$8.49
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
GradedSolution Teachme2
Follow You need to be logged in order to follow users or courses
Sold
2
Member since
1 year
Number of followers
1
Documents
81
Last sold
5 months ago
I have Accounting, Finance, Biology, Chemistry, Economics, Nursing and other Subjects A+

Welcome to ALL OF YOU! I\'m Rimsha Rai . The place to find the best study materials for various subjects. You can be assured that you will receive only the best which will help you to ace your exams. All the materials posted are A+ Graded. Please rate and write a review after using my materials. Your reviews will motivate me to add more materials. Thank you very much!

4.9

8 reviews

5
7
4
1
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions