binaryops
所属分类:Windows编程
开发工具:matlab
文件大小:6KB
下载次数:4
上传日期:2009-04-20 07:17:06
上 传 者:
robert860110
说明: segment gray level image into binary level
(segmentate gray level image into binary level )
文件列表:
example.m (1084, 2003-11-16)
bindil.m (1679, 2003-11-16)
bdil6.c (10734, 2003-11-13)
bero4.c (13649, 2003-11-16)
binero.m (1746, 2003-11-16)
Binary dilation and erosion: a faster implementation
This .zip file includes:
- readme.txt ---> this file
- bero4.c ----> a c file which must be mex compiled
- bdil6.c -----> a c mex file which must be mex copiled
- binero.m ---> a m-function (erosion)
- bindil.m ---> a m-function (dilation)
- example.m ---> a simple m file ( examples )
bindil(im,se) performs 2D binary dilation
im can be logical, uint8 or uint32. The result is a 2D matrix (same type of im)
If im is uint32 the input is considered packed (bwpack).
se is the structuring element and can be logical, uint8 or strel
binero(im,se,value) performs 2D binary erosion
im can be logical, uint8 or uint32. The result is a 2D matrix (same type of im)
If im is uint32 the input is considered packed (bwpack)
se is the structuring element and can be logical, uint8 or strel
Input image is considered surrounded by a sufficient number of ON pixels.
"value" is the size of original ( unpacked ) image if im is packed.
In case im is logical or uint8 , "value" is not necessary.
Our functions take advantage of Matlab 's decomposition of the structuring element
but they result much faster (try to run example.m to see the speed improvement factor,
changing the parameters)
NOTES:
in case N=size(im,2) is much smaller than M=size(im,1) our implementation is a bit slower.
In all the other cases the speed improvement is excellent.
**********************************************************************************************************
Please contribute if you find this software useful.
Report any bug to luigi.rosa@tiscali.it
**********************************************************************************************************
Luigi Rosa
Via Centrale 35
67042 Civita Di Bagno
L'Aquila -- Italy
mobile +39 340 3463208
email luigi.rosa@tiscali.it
**********************************************************************************************************
近期下载者:
相关文件:
收藏者: