Figure 1 is great but BW is all black. Thoughts? Thanks
figure (1) scaled = 255 * width/MAX; imshow(uint8(scaled)); level = graythresh(scaled) BW = im2bw(scaled,level); figure(2); imshow(uint8(BW))
greythresh im2bw
figure (1) scaled = 255 * width/MAX; imshow(uint8(scaled)); level = graythresh(scaled) BW = im2bw(scaled,level); figure(2); imshow(uint8(BW))
Best Answer