From: Josep i T. <jm...@pu...> - 2004-08-18 15:40:37
|
Hi, On dc, 2004-08-18 at 08:27, Stefan van der Walt wrote: > I havn't used anything beyond the neighbourhood property of structured > elements, so I am not sure what other features they have. Looks like > it would be possible to use a normal structure and an N-dimensional > matrix to imitate it until we have a proper class? (See below) >=20 > Regards > Stefan >=20 > Structuring element (STREL) creation and manipulation. >=20 > getheight - Get strel height. >=20 > getneighbors - Get offset location and height of strel neighbors >=20 > getnhood - Get strel neighborhood. >=20 > getsequence - Get sequence of decomposed strels. >=20 > isflat - Return true for flat strels. >=20 > reflect - Reflect strel about its center. >=20 > strel - Create morphological structuring element. >=20 > translate - Translate strel >=20 yes... strel could be a struct and all its members could be accessed using functions like strel_getneighbours... This way, when we have classes it's only a matter of moving a few m-files to a @strel directory and search/replace to eliminate prefixes... So work won't be lost :) I don't know if you are interested in coding this one. If you are, go ahead. If you prefer me to do it, just tell me and I'll have a try. Regards, --=20 Josep Mon=E9s i Teixidor Clau GnuPG: gpg --recv-keys 80E85CC4 |