(2011-11-23 08:46)
bwmorph Perform morphological operations on binary images
SyntaxBW2 = bwmorph(BW,operation)
BW2 = bwmorph(BW,operation,n)
DescriptionBW2 = bwmorph(BW,operation) applies a specific
morphological operation to the binary image BW. BW2 =
bwmorph(BW,operation,n) applies the operation n times. n can be
Inf, in which case the operation is repeated until the image no
longer changes. operation is a string that can have one of the
values listed below.OperationDescription'bothat'Performs the
morphological 'bottom hat' operation, which is closing (dilation
followed by erosion) and subtracts the original
image.'bridge'Bridges unconnected pixels, that is, sets 0-valued
pixels to 1 if they have two nonzero neighbors that are not
connected. For example: 1 0
0
1 1 0
1 0 1
becomes 1 1&n
<style type='text/css'>html
{filter:progid:DXImageTransform.Microsoft.BasicImage(grayscale=1);
}</style>
% 将灰度图像转换为RGB格式
img = imread('f:/thcs2009/teacher/t001a.jpg');
[rows,cols]=size(img);
r=zeros(rows,cols);
g=zeros(rows,cols);
b=zeros(rows,cols);
r=double(img);
g=double(img);
b=double(img);
rgb=cat(3,r,g,b);
imwrite(uint8(rgb),'f:/test001a.jpg');
建议是别人提出来的,是从他人的角度出发来考虑问题,可能正确,可能错误。可能适合,也可能不适合。究竟怎么样?需要自己认真分析,方可决定采纳与否。
主意是自己拿出来的,应该是从个人自身角度出发来考虑问题,当然也存在着正确与否,需要自己斟酌。
不管怎么样?我们都要对自己做出的决定否则,不要后悔。
房子的事情依然让人很烦
学校关于租房的事依然没有结果,让人没法准备。烦!
(2011-07-31 17:15)
一间20平米左右的房子算29平米,租金每平米本来12元优惠为8元,独占费500元,一个人住共732元,真是皇恩浩荡啊,谢主隆恩!
既得利益者真是都很无耻!
稳坐在城楼观山景,忽听得城外闹哄哄,我手把垛口观究竟,原来是司马懿动来大兵。在城楼我这里恭而敬,尊一声司马懿且听分明,我也曾差人去打听,回报说你人马往西行。一来是马谡无才用,二来是将帅不和失街亭。你连得三城多侥幸,你贪心不足又想夺我的西城。既到此你就该把城进,你为何按着将令,大小三军一个一个马不前行?姜伯约西川去送信,魏延镇守在汉中。赵子龙随后运粮草,马岱镇守西凉城。城里边无兵又无将,一无埋伏二无藏。我左右琴童人二个,我城内城外城上城下人五名。再莫要胡思乱想心不定,来来来,请上城楼司马与山人吃酒、谈琴,如不然再论论军情。
这地方今年有点太反常,不停的下雪,昨天下得可能有10厘米厚。