如何在.raw / .mhd图像中找到恒定的外框

时间:2019-04-17 17:32:38

标签: matlab edge-detection

我有一些下面的图像,它们是.raw和.mhd格式。我只想将圆锥中像素的值乘以2。我如何检测圆锥的边缘,以便仅能够迭代圆锥中的像素?

Image

我正在读取.raw图片,如下所示

row=551*2;  col=223*3;
fin=fopen('patient0001_2CH_ED.raw','r');
%I=fread(fin)
I=fread(fin, [col,row*3],'uint8=>uint8') %// Read in as a single byte stream
size11=size(I)
imshow(I)
I1 = reshape(I, [col row 1]); %// Reshape so that it's a 3D matrix - Note that this is column major
size22=size(I1)
Ifinal = flipdim(imrotate(I, -90),2); % // The clever transpose
imshow(Ifinal);

谢谢

0 个答案:

没有答案