rmse evaluation of two images

2 次查看(过去 30 天)
sbei arafet
sbei arafet 2016-5-6
Hi,
i have to correct the non uniformity of an mri image , i have used File Exxhange i have calculate rmse value it gives 404.9380
the intensity maxvalue was 2830 it becomes 255 , is it a bad value and i have to find another solution ?
Thanks

回答(1 个)

Image Analyst
Image Analyst 2016-5-6
You might have to dig into the program and find out what it's doing. It probably assumed a uint8 image and a max of 255. You have to find those places and make it more general so that it can handle uint16 or double images, and use intmax('uint16') or realmax('double') (depending on the class of the image being used) instead of 255.
  2 个评论
sbei arafet
sbei arafet 2016-5-6
Hi,
i changed it into uint16 the max value becomes 4384 and rmse 335.1468
ims{colNum+1}=uint16(ones(sz(1),sz(2))*255); tts{colNum+1}='Intial Bias';
have i to multiply by another value instead of 255
Image Analyst
Image Analyst 2016-5-6
I don't know what those lines are doing. If you want ims to be all 65535 and of class uint16, then do this:
ims{colNum+1} = intmax('uint16') * ones(sz(1), sz(2), 'uint16');

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 MRI 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by