这是我修Computer Vision的作业,此源代码也示范出如何Pixel By Pixel的方式编辑图片以及如何读取indexd的bmp图片格式。
所谓的Binary Image,就是整个图片只用黑色和白色表示,一个灰阶图片,全部的颜色只有256种(0~255),若大于128,则用黑色表示RGB(255,255,255),若小于128,则用白色表示RGB(0,0,0),主要是方便做影像辨识。
1
bmpOld.Dispose();
canvas.Dispose();
56
57
}
58
</script>
59
60
<html xmlns="http://www.w3.org/1999/xhtml">
61
<head runat="server">
62
<title>Untitled Page</title>
63
</head>
64
<body>
65
<form id="form1" runat="server">
66
<div>
67
</div>
68
</form>
69
</body>
70
</html>
71
canvas.Dispose();
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
See Also
(原創) 如何實現Real Time的Binary Image? (SOC) (Verilog) (Image Processing) (DE2-70) (TRDB-D5M)