Read img medical image without header in matlab

前端 未结 2 1742

I have a radiograph .img file without the header file. However, the researchers who have published the file have given this information about it

High resolut         


        
2条回答
  •  礼貌的吻别
    2021-01-07 08:49

    The lung x-rays of the JSRT database (www.jsrt.or.jp/jsrt-db/eng.php), have that format. I tested this code with them and it works:

    fid = fopen('image.img','r','b');
    oneSlice = fread(fid, [2048 2048], '*uint16','b');
    img = mat2gray(oneSlice, [0,4096]);
    fclose(fid);
    

提交回复
热议问题