histogramRangeSelec​tor

版本 1.0.1 (7.6 KB) 作者: Dave B
A custom component that allows selecting minimum and maximum values interactively, using a histogram as a reference
29.0 次下载
更新时间 2021/7/14

histogramRangeSelector

View histogramRangeSelector on File Exchange

Version: 1.0

histogramRangeSelector

This component is designed to allow specification of minimum and maximum values for an intensity image, or independently for the RGB channels of an image. It features a histogram for showing the intensity data and editfields with accompanying lines for setting the minimum and maximum. When the values change, the MinChanged/MaxChanged events fire.

How to use:

c = histogramRangeSelector; % create the component

im = imread('myimage.png');     % read an image
[n,x]=histcounts(im(:),0:255);  % collect histogram data
set(c,'HistogramBinEdges',x,'HistogramBinCounts',n);


c.MinChangedFcn=@myMinChangedFunction;
c.MaxChangedFcn=@myMaxChangedFunction;

引用格式

Dave B (2024). histogramRangeSelector (https://github.com/MATLAB-Graphics-and-App-Building/histogramRangeSelector/releases/tag/1.0.1), GitHub. 检索来源 .

MATLAB 版本兼容性
创建方式 R2021a
与 R2020b 及更高版本兼容
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Create Custom UI Components 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.0.1

See release notes for this release on GitHub: https://github.com/MATLAB-Graphics-and-App-Building/histogramRangeSelector/releases/tag/1.0.1

1.0

要查看或报告此来自 GitHub 的附加功能中的问题,请访问其 GitHub 仓库
要查看或报告此来自 GitHub 的附加功能中的问题,请访问其 GitHub 仓库