From: Etienne G. <et...@cs...> - 2005-01-06 18:48:45
|
Hi All, I consider adding some greylevel image morphology functionality to octave-forge. I have this function: ## im2 = g_all (im,scales) - Greylevel morphological opertations ## ## Open, close, erode and dilate greylevel image im at various scales. ## Dilation at scale s is the greatest greylevel within radius s. ## Erosion at scale s is the least greylevel within radius s. ## Opening is erosion followed by dilation (all at the same scale). ## Closing is dilation followed by erosion (all at the same scale). ## ## im : R x C : Image ## scales : 1 x S : Scales at which morphological operations are performed ## ## im2 : R x C x 4*S : Opened (4*i+1), closed (4*i+2), eroded (4*i+3) and ## dilated (4*i+4) images (i in 0:S-1) ## ## See also: g_open_close. ## Todo : Make this function more efficient. Any suggestions on other possible interfaces? I can also put fucs for individual operation. Cheers, Etienne -- Etienne Grossmann ------ http://www.cs.uky.edu/~etienne |