Mercurial > hg > octave-image
diff NEWS @ 806:275202657ccb
bwlabel: changed order of labels and improved performance.
* bwlabel: some 5x performance increase by making use of fortran_vec,
linear indexing, boolean values for n (instead of checking each time
in the loop), use std::vector instead of OCTAVE_LOCAL_BUFFER.
Changing what value is used when merging two different objects, by
using the pixel on the top left (or just left for n=4), increases
chances of getting labels in the right order. Split the actual
bwlabel into separate function so it may be used later by others.
Added tests.
* NEWS: added bwlabel to list of changed functions.
author | Carnë Draug <carandraug@octave.org> |
---|---|
date | Thu, 17 Oct 2013 01:48:22 +0100 |
parents | 2a34ada9e75b |
children | d26a8681dd22 |
line wrap: on
line diff