clear; clc;
close all;
image = imread('106.jpg');
% 灰度
gray = rgb2gray(image);
% 转换成浮点图
gray = double(gray(:));
h = histogram(gray);
h
% 条的数目
h.NumBins = 255;
xlim([0 255])
figure
h1 = histogram(gray .^ 0.01);
h1
%h1.NumBins = 255;
matlab 图片画直方图
最新推荐文章于 2024-04-19 10:15:00 发布