|
From: | Carnë Draug |
Subject: | [Octave-patch-tracker] [patch #8612] impyramid.m for image package |
Date: | Wed, 14 Oct 2015 17:28:33 +0000 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Firefox/38.0 Iceweasel/38.3.0 |
Update of patch #8612 (project octave): Status: None => Done Open/Closed: Open => Closed _______________________________________________________ Follow-up Comment #6: > When I look at the Matlab documentation for impyramid (see http://de.mathworks.com/help/images/ref/impyramid.html ) then I read "Reduction and expansion take place only in the first two dimensions." > > To me this says that it is alright to always do the reduction and filtering process ONLY to the dimensions 1 and 2 of any given input. The other possible dimensions should probably be kept intact during this procedure. But in Matlab this function impyramid is NOT ment to reduce an ND image along the third or fourth dimension at all! You are right. I missed that note on the Matlab documentation. So we 're kinda limited there. I have pushed the original function (after small style changes): http://hg.code.sf.net/p/octave/image/rev/1f6389a88846 I then replaced the usage of imfilter with padarray and convn so it accepts arrays of any dimensions (but still only reduces/expands) the first 2. http://hg.code.sf.net/p/octave/image/rev/460dfaf2673c I then added a bunch of more tests. _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/patch/?8612> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |