Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Code Block

function f = HaePalikka()

...


I = imread('DSC_1632.JPG');

...


figure, imshow(I), title('Alkuperäinen kuva');

...


I2=RGB2GRAY(I);%muutetaan harmaasävykuvaksi

...


BWs = edge(I2, 'sobel', (graythresh(I2) * .05));

...


figure, imshow(BWs), title('reunaviivat');