Commit [e94d00] default Maximize Restore History

Fix bug in C++ strel when calculating pad for image with more dimensions.

* src/strel.cc (post_pad, pre_pad): fix usage of "redim()" (which is an
accessor, not a modifer) by replacing it with "resize (n, 1)". This
caused a bug with random effect in imdilate and imerode when the SE had
less dimensions than the image.
* src/imerode.cc: add tests against this bug using imerode and imdilate.
Remove unecessary usage of %!shared blocks.
* nlfilter.m: remove FIXME about failing test due to bug in imdilate

Carnë Draug Carnë Draug 2013-11-07

changed src/imerode.cc
changed src/strel.cc
changed inst/nlfilter.m
src/imerode.cc Diff Switch to side-by-side view
Loading...
src/strel.cc Diff Switch to side-by-side view
Loading...
inst/nlfilter.m Diff Switch to side-by-side view
Loading...