Facebook
From Chartreuse Hummingbird, 6 Months ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 68
  1.  
  2. %% %% zadanie 1
  3. M = imread('ksztalty.jpg');
  4. nowa = cat(3, M(51:250,51:250,1), M(51:250,51:250,2), M(51:250,51:250,3));
  5. imwrite(nowa,'kwadrat.jpg');
  6. nowa2 = cat(3, M(351:550,351:550,1), M(351:550,351:550,2), M(351:550,351:550,3));
  7. imwrite(nowa2,'elipsy.jpg');