From: Etienne G. <et...@cs...> - 2005-01-15 20:10:41
|
Hi Stefan, On Fri, Jan 14, 2005 at 01:48:50AM +0200, Stefan van der Walt wrote: # Hi Etienne # # Adding grey-level morphology is a good idea. Does MATLAB have any # similar functions? What sort of interface do they use? ^^^ Not last time I checked. We're free not to imitate braindead behavior, and invent our own, like gl_erode(im,radii) gl_dilate(im,radii) gl_morph(im,radius1,operation1,...,radiusS,operationS) # We should really also be looking at re-implementing octave-forge's # image handling. Now that octave supports uint16 etc., we do not need # to guess image depths anymore. Colour images should be stored as # MxNx3 matrices of the correct value type (not as three different images). Since you mentionned the other product, is that how Matlab does it? # Unless someone else feels highly motivated, I will start on this # sometime closer to February (maybe by first adding some rudimentary # unit tests to all imaging functions, to track what breaks with the # changes). # # Another feature I would like to add is the handling of videos. I was # thinking of using libavifile -- does anyone here have any experience # with it? Not me :-(. Cheers, Etienne # Finally, the image histogram equalisation function is still not # working correctly. But fixing it will be a lot easier once the image # types are implemented. # # Regards # Stefan # # On Thu, Jan 06, 2005 at 01:48:36PM -0500, Etienne Grossmann wrote: # > # > # > 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 [snip] -- Etienne Grossmann ------ http://www.cs.uky.edu/~etienne |