Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

A manufacturing company wants to automate the quality control in one of its factorys production lines. To do so, a camera has been installed at

image text in transcribed
A manufacturing company wants to automate the quality control in one of its factorys production lines. To do so, a camera has been installed at the end of the line to get an image of each tile, and a program has been designed to analyze each image looking for defects. Design the function analyze Image that takes as input parameter the image of a tile and analyzes it looking for defects. The image is a 100 * 200 pixel matrix made exclusively of white (value 0) and black (value 255) pixels. A perfect tile is totally white. The image is explored line by line, and any line with three consecutive black pixels is considered a defect. Assume there will never be more than three consecutive black pixels. analyzeImage will return-using return - an integer telling whether the tile is faulty or not. A tile is considered faulty when it has more than 7 defects. Besides, the function must return as parameter the number of defects found, taking into account that when 7 defects are found, the image is not further analyzed and the number of defects returned is 7. .Select one of the two following options. Please state clearly which option (2A o 2B) you select. Option mits your mark to 8 maximum. Design the main program (main function) to operate the quality control system that analyze of 2.000 tiles. Once the batch is finished, the program will display the number of faulty tiles and the number of defects in non-faulty tiles. The program will successively call functions forwaedConvey tImage and analyzeImage (the latter developed in section 1) to process each tile, and the function move to activate the system that removes the faulty tiles from the conveyor belt. Assume the function the following prototypes are available: void forwardConveyor (void) void getImage (int image[NROW[[NCOL]) void remove (void) we have found out that under certain conditions, the production system suffers a globe all tiles manufactured after that are faulty. To limit the costs of this general fault, we want the program to stop the production when 30 consecutive faulty tiles are detected, and to display informing of this fact, Besides this, the system will work as described in section 2A. A manufacturing company wants to automate the quality control in one of its factorys production lines. To do so, a camera has been installed at the end of the line to get an image of each tile, and a program has been designed to analyze each image looking for defects. Design the function analyze Image that takes as input parameter the image of a tile and analyzes it looking for defects. The image is a 100 * 200 pixel matrix made exclusively of white (value 0) and black (value 255) pixels. A perfect tile is totally white. The image is explored line by line, and any line with three consecutive black pixels is considered a defect. Assume there will never be more than three consecutive black pixels. analyzeImage will return-using return - an integer telling whether the tile is faulty or not. A tile is considered faulty when it has more than 7 defects. Besides, the function must return as parameter the number of defects found, taking into account that when 7 defects are found, the image is not further analyzed and the number of defects returned is 7. .Select one of the two following options. Please state clearly which option (2A o 2B) you select. Option mits your mark to 8 maximum. Design the main program (main function) to operate the quality control system that analyze of 2.000 tiles. Once the batch is finished, the program will display the number of faulty tiles and the number of defects in non-faulty tiles. The program will successively call functions forwaedConvey tImage and analyzeImage (the latter developed in section 1) to process each tile, and the function move to activate the system that removes the faulty tiles from the conveyor belt. Assume the function the following prototypes are available: void forwardConveyor (void) void getImage (int image[NROW[[NCOL]) void remove (void) we have found out that under certain conditions, the production system suffers a globe all tiles manufactured after that are faulty. To limit the costs of this general fault, we want the program to stop the production when 30 consecutive faulty tiles are detected, and to display informing of this fact, Besides this, the system will work as described in section 2A

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Readings In Database Systems

Authors: Michael Stonebraker

2nd Edition

0934613656, 9780934613651

More Books

Students also viewed these Databases questions