EnglishACEI网站
应用实例
离散元试验

Happy New Year from MatDEM

Since the MatDEM was released last May, we have received many feedback from the academic comuunity and industry, which has greatly promoted the development of MatDEM. At the begining of 2019, we want to say to the MatDEM users, thank you for your support and Happy New Year!

best,
The MatDEM team


When the aboved model is built via the first step of MatDEM. The following code can be used to generate the MatDEM words by binary images.

pictureName='slope/MatDEM.png';%word should be in black color
sX=d.mo.aX(1:d.mNum);sZ=d.mo.aZ(1:d.mNum);
imH=400;imW=420;%image will be resized to imW*imH
%read the image and change the size,image is in black and white color
regionFilter=mfs.image2RegionFilter(pictureName,imH,imW);%white is true
sFilter=mfs.applyRegionFilter(regionFilter,sX,sZ);
sId=find(sFilter);
sId(sId>d.mNum)=[];
d.addGroup('word',sId);
d.showFilter('Group',{'word'},'aR');
view(0,-15);

3.5-5b.png


Copyright ©2000-2018, Nanjing University, P.R. China. All Rights Reserved 版权所有 ©2000-2019