Hey, just fixed that. The assert was wrong. The dilation of eye(3) by [ 1 0 0] is [ 0 0 0 ; 1 0 0 ; 0 1 0 ] and not [ 0 1 0 ; 0 0 1 ; 0 0 0 ] as was given to assert as the right answer.
But for the last assert (which seems to also fail in the new version) I don't know the right answer. It uses an even sized structuring element (SE) so I have no idea which pixel would be considered the origin (it should be the middle one). But the given answer does look wrong to me. If anyone can fix that would be great. Carnë Draug On 13 April 2011 21:49, Thomas Weber <twe...@debian.org> wrote: > Hi, > the change in rev 7538 to dilate.m results in failing tests (at least > with Octave 3.2.4): > Without the patch: > octave:1> test dilate > PASSES 3 out of 3 tests > > With the patch: > octave:1> test dilate > ***** assert(dilate(eye(3),[1,0,0])==[[0;0],eye(2);0,0,0]); > !!!!! test failed > assert (dilate (eye (3), [1, 0, 0]) == [[0; 0], eye(2); 0, 0, 0]) > > Thomas > > ------------------------------------------------------------------------------ > Benefiting from Server Virtualization: Beyond Initial Workload > Consolidation -- Increasing the use of server virtualization is a top > priority.Virtualization can reduce costs, simplify management, and improve > application availability and disaster protection. Learn more about boosting > the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev > _______________________________________________ > Octave-dev mailing list > Octave-dev@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/octave-dev > ------------------------------------------------------------------------------ Benefiting from Server Virtualization: Beyond Initial Workload Consolidation -- Increasing the use of server virtualization is a top priority.Virtualization can reduce costs, simplify management, and improve application availability and disaster protection. Learn more about boosting the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev _______________________________________________ Octave-dev mailing list Octave-dev@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/octave-dev