max(root_distance(:,:,150)*100); max(max(root_distance(:,:,150)*100)); max(root_distance(:,:,150)); max(max(root_distance(:,:,150))); imshow(root_distance(:,:,150),[0 2449]); imshow(root_distance(:,:,150),[1000 2449]); max(max(max(root_distance))); min(min(min(find(root_distance~=-Inf)))); root_distance_replace = max(0,root_distance); min(min(min(root_distance_replace))); rescale = root_distance_replace(:,:,100); >> imshow(rescale) imwrite(rescale, 'd:/temp/180.bmp'); find(singlelayer ~= -Inf) singlelayer2{1} = root_distance(:,:,150); singlelayer2{1} = root_distance(:,:,150) mod (100/100); singlelayer2{1} = mod(root_distance(:,:,150)*100 , 255*255);