From: Stefan v. d. W. <st...@su...> - 2004-08-20 06:54:25
|
On Wed, Aug 18, 2004 at 05:40:53PM +0200, Josep Mon?s i Teixidor wrote: > 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) > > > > Regards > > Stefan > > > > Structuring element (STREL) creation and manipulation. > > > > getheight - Get strel height. > > > > getneighbors - Get offset location and height of strel neighbors > > > > getnhood - Get strel neighborhood. > > > > getsequence - Get sequence of decomposed strels. > > > > isflat - Return true for flat strels. > > > > reflect - Reflect strel about its center. > > > > strel - Create morphological structuring element. > > > > translate - Translate strel > > > > 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. Please go ahead, Josep. I havn't used these functions before and unfortunately do not have the time to figure them out now. Regards Stefan |