图像处理
文章平均质量分 51
ybycom
这个作者很懒,什么都没留下…
展开
-
图像灰度化
/// /// 内存转换法 /// /// public static Bitmap GrayByMemory(Bitmap bmp) { if (bmp == null) return bmp; //位图矩形 Rectangle bmpRect = new Rectangle(0, 0, bmp.Width, b原创 2010-03-01 23:59:00 · 728 阅读 · 0 评论 -
放大图片(真实放大,不加任何其他处理)
/// /// 放大图片 /// /// /// /// public static Bitmap ZoomInTimesByMomery(Bitmap img, int times) { //初始化大小图片 Bitmap bmp = FormatHelper.FromHighbitTo24bit(img); Bitm原创 2010-03-02 00:06:00 · 615 阅读 · 0 评论 -
平移图像
/// /// 平移图像 /// /// /// /// /// public static Bitmap Translation(Bitmap bmp, int tx, int ty) { if (bmp == null || (tx == 0 && ty == 0)) return bmp; Rect原创 2010-03-02 00:19:00 · 364 阅读 · 0 评论 -
图片灰度反转
/// /// 图片灰度反转 /// /// /// public static Bitmap Reverse(Bitmap bmp) { if (bmp == null) return bmp; Rectangle bmpRect = new Rectangle(0, 0, bmp.Width, bmp.Height)原创 2010-03-02 00:17:00 · 1026 阅读 · 0 评论 -
黑白二值化
/// /// 去杂色,转换为黑白图片 /// /// public static void Binarization(Bitmap img, int thresholdValue) { for (int x = 0; x < img.Width; x++) { for (int y = 0; y < img.Height; y++原创 2010-03-02 00:04:00 · 654 阅读 · 0 评论 -
图像镜像翻转
/// /// 水平镜像 /// /// /// public static Bitmap MirrorH(Bitmap bmp) { if (bmp == null) return bmp; Rectangle bmpRect = new Rectangle(0, 0, bmp.Width, bmp.Height);原创 2010-03-02 00:18:00 · 2113 阅读 · 1 评论