【源码】以交互方式设置图像阈值

在这里插入图片描述

该程序获取彩色或单色图像,并允许用户通过滑块以交互/手动方式设置单色图像或彩色图像的单色带阈值,以设置最大和最小阈值。阈值图像是一个二值图像,可以用作其他图像的掩膜图像。在阈值图像中的像素作为二值图像(黑色/白色)示出在中间图像中,并且原始图像像素被显示在左图像(灰度或颜色)中被掩蔽。输入是开始时的低阈值和高阈值,以及图像文件名或图像矩阵。程序返回阈值和用于选择阈值的最后一个色带。图像可以是整型(uint8、uint16等)或浮点型(单、双)。

This program takes a color or monochrome image and lets the user interactively/manually threshold the monochrome image, or a single color band of a color image, via sliders to set the maximum and minimum thresholds. The thresholded image is a binary image that can be used as a mask image for other images. The pixels in the thresholded range are shown in the middle image as a binary image (black/white), and the original image pixels are shown masked in the left image (gray scale or color). Inputs are the low and high thresholds to start with and the image file name or image matrix. The program returns the threshold values and the last color band that was used to select the threshold. The image can be of type integer (uint8, uint16, etc.) or floating point (single, double).

下载地址:

https://url92.ctfile.com/f/1850492-552101379-f32307

(访问密码:3660)

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值