You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
8
+
It features a histogram for showing the intensity data and editfields with accompanying lines for setting the minimum and maximum.
9
+
When the values change, the MinChanged/MaxChanged events fire.
10
+
11
+
How to use:
12
+
```
13
+
c = histogramRangeSelector; % create the component
14
+
15
+
im = imread('myimage.png'); % read an image
16
+
[n,x]=histcounts(im(:),0:255); % collect histogram data
Some additional demo apps are included: histogramRangeSelectorDemo which lets you set the RGB ranges for an image, and histogramRangeSelectorWebcamDemo which subclasses histogramRangeSelectorDemo and uses your webcam for the image data. Note that this requires MATLAB Support Package for USB Webcams
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
5
+
6
+
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
7
+
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
8
+
3. In all cases, the software is, and all modifications and derivatives of the software shall be, licensed to you solely for use in conjunction with MathWorks products and service offerings.
9
+
10
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
0 commit comments