Changeset 148 for aedes.m


Ignore:
Timestamp:
Nov 3, 2010, 4:04:07 PM (8 years ago)
Author:
tjniskan
Message:
  • Added aedes_roifill.m for doing binary flood fill operation. This is

much slower than using the imfill-function, but does not dependend on
Image Processing toolbox. The goal is to make Aedes run with just the
base Matlab install. DICOM support will probably be the last obstacle
in achieving this, because it's going to be a great pain in the a to
code...

  • Fixed overwriting ROIs in aedes_roi_copy_gui.m and added additional

information in the ROI copy button tooltips.

  • Some further iterations to the new readvnmr-function.

M aedes_roi_copy_gui.m
M aedes_getmatlabversion.m
M aedes_readvnmr.m
M aedes.m
M aedes_helpabout.m
M aedes_readfid.m
M aedes_revision.m
A aedes_roifill.m

File:
1 edited

Legend:

Unmodified
Added
Removed
  • aedes.m

    r147 r148  
    9898
    9999% Detect Matlab version
    100 Dat.MatlabVersion = aedes_getmatlabversion;
     100[Dat.MatlabVersion,Dat.isImageProc] = aedes_getmatlabversion;
    101101
    102102% Show license and warranty notification ----------------
     
    616616                           'separator','on',...
    617617                           'enable','off');
    618 H.UIROITOOLS_COPYSLICES = uimenu(H.UIROITOOLS_COPY,'Label','Copy ROI to slices',...
     618H.UIROITOOLS_COPYSLICES = uimenu(H.UIROITOOLS_COPY,'Label','Copy ROI to slices/volumes',...
    619619                                 'callback',@l_RoiCopy,...
    620620                                 'separator','off',...
     
    950950                             'CData',btn_cdata.cdata.copy_small,...
    951951                             'ClickedCallback',@l_RoiCopy,...
    952                               'TooltipString','Copy ROI to slices',...
     952                              'TooltipString','Copy ROI to slices/volumes',...
    953953                              'enable','off',...
    954954                              'separator','off');
     
    15801580                          'callback',@l_RoiCopy,...
    15811581                          'enable','off',...
    1582                           'tooltip','Copy ROI to slices');
     1582                          'tooltip','Copy ROI to slices/volumes');
    15831583tmp=get(H.ROIBTN_COPY,'position');
    15841584H.ROIBTN_DEL = uicontrol('parent',H.FIG,...
     
    79547954end
    79557955
    7956 
    7957 I=imfill(I,[x y],4);
     7956% Check if Image Processing toolbox is installed and we if could use imfill
     7957% function which is much faster than aedes_roifill for doing the flood fill
     7958% operation.
     7959try
     7960  if Dat.isImageProc
     7961    I=imfill(I,[x y],4);
     7962  else
     7963    I=aedes_roifill(I,[x y]);
     7964  end
     7965catch
     7966  % Fallback to aedes_roifill...
     7967  I=aedes_roifill(I,[x y]);
     7968end
     7969
    79587970ind=find(I);
    79597971tmp=false(size(I));
Note: See TracChangeset for help on using the changeset viewer.

Powered by Trac 1.0.9.Copyright © Juha-Pekka Niskanen 2008