楼主: 花落若相惜
1972 1

[公开数据] 计算模糊测度,求choquet积分的matlab程序 [推广有奖]

  • 1关注
  • 28粉丝

讲师

0%

还不是VIP/贵宾

-

威望
0
论坛币
9 个
通用积分
1038.3440
学术水平
102 点
热心指数
141 点
信用等级
122 点
经验
19504 点
帖子
212
精华
1
在线时间
121 小时
注册时间
2012-2-16
最后登录
2020-4-7

楼主
花落若相惜 在职认证  发表于 2019-2-26 16:34:14 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
计算模糊测度,求choquet积分的matlab程序
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

关键词:Choquet 书籍介绍 CHO Presentation Applications

教你如何在论坛赚取现金:https://bbs.pinggu.org/z_prj.php

经管之家-邀请您加入我们的项目服务电商https://bbs.pinggu.org/thread-6882733-1-1.html

沙发
nice生活圈 在职认证  学生认证  发表于 2019-2-26 16:41:32
f就是你导入的rgb图片。
首先按照上面的代码建立一个.m文件,将文件存盘,命名为 colorgrad.m

然后在matlab命令窗口输入如下命令:
>>f=imread('test.jpg') %这里的test.jpg是图片文件名
>> [VG,A,PPT]=colorgrad(f,0)
>>figure; imshow(PPT);

function [VG,A,PPG]=colorgrad(f,T)
%COLORGRAD Computes the vector gradient of an RGB image.
% [VG,VA,PPG]=COLORGRAD(F,T) computes the vector gradient,VG,
% and corresponding angle array,VA,(in radians) of RGB image
% F.It also computes PPG,the per-plane composite gradient
% obtained by summing the 2-D gradients of the individual color
% planes.Input T is a threshold in the range [0,1].If it is
% included in the argument list,the values of VG and PPG are
% threshoulded by letting VG(x,y)=0 for values <= T and VG(x,y)=
% VG(x,y) otherwise.Similar comments apply to PPG.If T is not
% included in the argument list then T is set to 0.Both output
% gradients are scaled to the range [0,1].
if (ndims(f) ~= 3) | (size(f, 3) ~= 3)
error('Input image must be RGB.');

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
jg-xs1
拉您进交流群
GMT+8, 2025-12-27 04:51