Changeset 168 for aedes_roifill.m


Ignore:
Timestamp:
Jun 1, 2011, 12:39:53 PM (8 years ago)
Author:
tjniskan
Message:
  • Fixed a bug in filling voxel ROIs. In some situations trying to fill a ROI from a seed voxel that

already belonged to the ROI removed the ROI completely from that slice. The Undo buffer was also
unnecessarily updated.

M aedes.m
M aedes_revision.m
M aedes_roifill.m

File:
1 edited

Legend:

Unmodified
Added
Removed
  • aedes_roifill.m

    r148 r168  
    3232% Flood fill algorithm to be used
    3333method = 1;
     34
     35% Look for a quick return
     36if bw(seed(1),seed(2))
     37        % Seed pixel is 1, no need to do anything...
     38        bw_out = bw;
     39        return
     40end
    3441
    3542% matrix of linear indices
Note: See TracChangeset for help on using the changeset viewer.

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