Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This damned question. Help please. (15%) 8. Suppose that you have a grayscale image where the pixel values are in the range 0- 255 where

image text in transcribed

This damned question. Help please.

(15%) 8. Suppose that you have a grayscale image where the pixel values are in the range 0- 255 where O is black and 255 is white. Someone has marked up the image with white plus signs indicating points of interest in the image. The plus signs are 3 x 3arrays with the values: 0 255 0 255 255 255 0 255 0 You want to count the number of plus signs that appear in the image matrix. For example, there are 3 plus signs in the following image matrix: 5 6 4 1 290 255 0 0 255 03 74255 255 255 255 255 215 4 5 7 0 255 0 0 255 10 7 9 255 255 255 7 9 6 6 4 7 0 255 0 9 1 5 0 255 07 3 8 Complete the following MATLAB function (you can edit the function that is provided to you): function n count Pluses ( COUNTPLUSEs counts the number of plus sign patterns n countPluse s (A) returns the number of times 8 the pattern: 0 255 255 255 255 0 0 255 appears in a matrix A. It is assumed that there % are no overlapping plus sign patterns in A. You may use the MATLAB functions all, any, and any function that determines the size of a matrix, but do not use any other MATLAB functions in your solution

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

Databases On The Web Designing And Programming For Network Access

Authors: Patricia Ju

1st Edition

1558515100, 978-1558515109

More Books

Students also viewed these Databases questions

Question

What are the different techniques used in decision making?

Answered: 1 week ago