Question
please draw a simple flow chart of how to solve this issue A 3x3 template is given presenting the connection and the associated directions of
please draw a simple flow chart of how to solve this issue
A 3x3 template is given presenting the connection and the associated directions of the central-cell (green) regarding with the surrounding 8 neighbor-cells (yellow).
We want to use this template to scan a 2D array of nxn cells in order to detect and extract the shape (contour) of a simple solid object inside the 2D array. The cells of the array that compose the object have value 1, while the rest are 0. The location of the shape in the array is unknown.
Design a flow diagram and develop a strategy and the necessary patterns or classes to check all the possible paths for solving the problem above.
function: https://gyazo.com/7e0e2f96f7bd4f85ee61474394b8db00
example case: https://gyazo.com/387ad8136b6b29c19a8e2b6c9b007b95
classes: https://gyazo.com/fdcbf0ad1b9926ee56c4f2bf980c0ec2
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started