MAKE An image (ie. a matlab code) processing algorithm, similar to…

Question MAKE An image (ie. a matlab code) processing algorithm, similar to… MAKE An image (ie. a matlab code) processing algorithm, similar to those algorithms that appear in the presentation entitled “Topic 4.1.2: Image Processing, Pattern Recognition and Machine Learning”, to detect the six pixel bent pattern shown in Figure 1 above. The ONLY output should be the number of times the output pattern was found in each of the below arrays.You should consider  Copy each of the image arrays (A and B) into your program .m fileUse a Double nested for loop (DNFL) with m (rows) and n (columns)Calculate the limits of m as: (Total number of rows) – (Rows in the pattern) + 1Calculate the limits of n as: (Total number of columns) – (columns in the pattern) + 1Use the upper left corner of the pattern as your TARGET pixel and all other pixels relatively from the TARGET pixel. The row below is m+1 and the column to the right is n+1Set your counter to 0 at the beginning of the code and call your counter as: countTest your code on array A and verify that you get 10 matches. The exact locations of these matches are shown in the picture below.Next, duplicate the DNFL. In the second DNFL change A to B, and compute the matches in array B. The following hint shows you the expected locations of the matches for array A. You are not required to generate this picture. It is provided only to help you verify your program. Picture below.  Engineering & Technology Computer Science CS 100 Share QuestionEmailCopy link Comments (0)