Using imsharpen with imagesc
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Articat
el 25 de Sept. de 2019
Respondida: Subhadeep Koley
el 29 de Oct. de 2019
Can you use imsharpen with imagesc?
Trying to use imshapren with the following code:
figure
PLIFData_rot = (flipud(PLIFdata(:,:,imFrame)));
FiltImPLIF = imguidedfilter(imgaussfilt((PLIFData_rot)));
imagesc(xVecPLIF,yVecPLIF,double(FiltImPLIF)/double(max(max(FiltImPLIF))));
set(gca,'YDir','normal');
colormap('hot');
caxis([0 .1]);
xlabel('x');
ylabel('y');
pbaspect([50 50 1]);
2 comentarios
Adam
el 25 de Sept. de 2019
imsharpen acts on the raw data so it is independent of how you visualise the data afterwards. So yes, no reason why you can't use it with imagesc. Just apply it first to the raw data, them pass the result to imagesc instead of the original.
Respuesta aceptada
Subhadeep Koley
el 29 de Oct. de 2019
Hi, from your previous comment it seems that you are trying to pass the image object returned by imagesc() into the input of imsharpen(). Something like below,
I = imagesc(xVecPLIF,yVecPLIF,double(FiltImPLIF)/double(max(max(FiltImPLIF))));
sharpenImage = imsharpen(I);
In the code above I is an matlab.graphics.primitive.Image object whereas, input of imsharpen() is designed to be a grayscale or truecolor (RGB) image one of these types: uint8, int8, uint16, int16, uint32, int32, single, double.
Instead, try this
FiltImPLIF_Sharpen = imsharpen(double(FiltImPLIF)/double(max(max(FiltImPLIF))));
0 comentarios
Más respuestas (0)
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!