Question: What is a way of doing my same code but with an array? function()-bitplanes (n) cd 'c:Users Hope Desktop 2 3-1 B=imread ( ' TestDice.
function()-bitplanes (n) cd 'c:\Users Hope \Desktop 2 3-1 B=imread ( ' TestDice. jpg" ) ; A = rgb2gray (B); 5 e = size (A) ; rows = e (1); columns = e (2) ; 6 8 ID [rows, columns); 9- 1 0 11- 12 13 - 4 5 = for 1-255:255:255 for r=1 : rows for c-1:columns range = 1; if A (r,c) range (255) else end end end figure imshow (D) 4 - , end
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
