문제

I am working on a Matlab script which applies a Laplacian filter to an image, and plots the result in greyscale. Do you have any suggestion on how to plot it using a colorscale instead?

Here is the code:

A=open('file.fits');
B=A.mcp;
H = fspecial('laplacian', 1); %fspecial creates a filter
I = imfilter(B, H);
figure;
imshow(I,[])
도움이 되었습니까?

해결책

Use imagesc, or imshow(im2uint8(I), jet(256)).

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top