基于颜色直方图的图像斑点提取源码程序 - vb源码程序 - 谷速源码
下载频道> 资源分类> 编程语言> VB源码> 基于颜色直方图的图像斑点提取源码程序

标题:基于颜色直方图的图像斑点提取源码程序
分享到:

所属分类: VB源码 资源类型: 文件大小: 129.98 KB 上传时间: 2016-01-25 19:47:29 下载次数: 8 资源积分:1分 提 供 者: xiaopeng2 20160125074705337
内容:
基于颜色直方图的图像斑点提取源码程序,程序员在编程的过程中可以参考学习使用,希望对IT程序员有用,此源码程序简单易懂、方便阅读,有很好的学习价值!
function [meanRGB, areas, numberOfBlobs] = MeasureBlobs(maskImage, redBand, greenBand, blueBand)
 
[labeledImage numberOfBlobs] = bwlabel(maskImage, 8);     % Label each blob so we can make measurements of it
if numberOfBlobs == 0
% Didn't detect any yellow blobs in this image.
meanRGB = [0 0 0];
areas = 0;
return;
end
% Get all the blob properties.  Can only pass in originalImage in version R2008a and later.
blobMeasurementsR = regionprops(labeledImage, redBand, 'area', 'MeanIntensity');   
blobMeasurementsG = regionprops(labeledImage, greenBand, 'area', 'MeanIntensity');   
blobMeasurementsB = regionprops(labeledImage, blueBand, 'area', 'MeanIntensity');   
 
meanRGB = zeros(numberOfBlobs, 3);  % One row for each blob.  One column for each color.
meanRGB(:,1) = [blobMeasurementsR.MeanIntensity]';
meanRGB(:,2) = [blobMeasurementsG.MeanIntensity]';
meanRGB(:,3) = [blobMeasurementsB.MeanIntensity]';
 
% If redBand etc. are double, the intensities will be in the range of 0-1.
% Multiply by 255 to get them back into the uint8 range of 0-255.
if ~strcmpi(class(redBand), 'uint8')
meanRGB = meanRGB * 255.0;
end
 
% Now assign the areas.
areas = zeros(numberOfBlobs, 3);  % One row for each blob.  One column for each color.
areas(:,1) = [blobMeasurementsR.Area]';
areas(:,2) = [blobMeasurementsG.Area]';
areas(:,3) = [blobMeasurementsB.Area]';
 
%return; % from MeasureBlobs()

文件列表(点击上边下载按钮,如果是垃圾文件请在下面评价差评或者投诉):

基于颜色直方图的图像斑点提取源码程序/
基于颜色直方图的图像斑点提取源码程序/ColorBasedSegmentation/
基于颜色直方图的图像斑点提取源码程序/ColorBasedSegmentation/BlobAreas.mat
基于颜色直方图的图像斑点提取源码程序/ColorBasedSegmentation/MAIN_Color_Based_Segmentaion_V13.m
基于颜色直方图的图像斑点提取源码程序/ColorBasedSegmentation/MeasureBlobs.m
基于颜色直方图的图像斑点提取源码程序/ColorBasedSegmentation/PlaceThresholdBars.m
基于颜色直方图的图像斑点提取源码程序/ColorBasedSegmentation/greensand_pm13-30.jpg
基于颜色直方图的图像斑点提取源码程序/ColorBasedSegmentation/license.txt
基于颜色直方图的图像斑点提取源码程序/ColorBasedSegmentation/suplabel.m

关键词: 直方图 斑点 源码

编程语言下载排行

Top_arrow
回到顶部
联系方式| 版权声明| 招聘信息| 广告服务| 银行汇款| 法律顾问| 兼职技术| 付款方式| 关于我们|
网站客服网站客服 程序员兼职招聘 程序员兼职招聘
沪ICP备19040327号-3
公安备案号:沪公网安备 31011802003874号
库纳格流体控制系统(上海)有限公司 版权所有
Copyright © 1999-2014, GUSUCODE.COM, All Rights Reserved