注册 登录
编程论坛 Matlab

医学dicom图像变成积分通道图,图像大小可以不变吗,或者维数不变

semaomiao 发布于 2015-05-02 10:21, 1894 次点击
有了解积分通道的大神指导一下,给一下思路也好呀

原图大小为512*512

变成积分通道图时图像大小为64*64*8
其中,8表示提取了8个特征

因为后续的处理涉及图像的变形,
所以想问一下,如何能一点取8个特征,但图像大小不变,或者说维数不变


附上将医学dicom图像变成积分通道图的程序
function  IntegrChanl=getIntegrChanl(imagename)
%  get integral channels of images
%1. preprocess image
%2. normalize contrast
%3. compute channels

   %% im = ReadImgImage(imagename, 2048 ,2048);
    im = dicomread(imagename);
    im = double(im);
    im=im-1024;
   % clf; figure(1); imshow(im,[-340,440]);

   % [im,bw,validrange] = preprocess_ImgImage(im);
    im = NormalizeContrast(im);
    % im=imResample(im,[512,512]);
    pChns=chnsCompute();
    for j=1:100, chns=chnsCompute(im,pChns); end;
    data=cat(3,chns.data{:});
    IntegrChanl=cumsum(cumsum(data,1),2);

%     dataname=[DIR.images,'\JPCNN',int2str(t),'.mat'];
%     save(dataname,'IntegrChanl','-v7.3');
    clf;figure(1);  montage2(cat(3,chns.data{:}));

end
1 回复
#2
tlliqi2015-05-02 10:38
帮顶
1