agentsclimarketplace

Matlab图像颜色空间三维可视化 hsi hsv柱坐标映射

Skill ECNU-ICALK/AutoSkill/SkillBank/ConvSkill/chinese_gpt3.5_8/matlab图像颜色空间三维可视化-hsi-hsv柱坐标映射

用于将图像像素在RGB、HSV或HSI颜色空间中进行三维散点图可视化。核心逻辑是将色调(H)映射为角度,饱和度(S)映射为半径,亮度(I/V)映射为高度,从而在圆柱体或圆锥体中显示像素分布,并支持在RGB空间添加对角线。From its SKILL.md

Install
npx -y skills add ECNU-ICALK/AutoSkill --skill matlab图像颜色空间三维可视化-hsi-hsv柱坐标映射

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.

SKILL.md

2.6 KB, 777 tokens by cl100k_base, as published. Nobody here has run it

MATLAB图像颜色空间三维可视化 (HSI/HSV柱坐标映射)

用于将图像像素在RGB、HSV或HSI颜色空间中进行三维散点图可视化。核心逻辑是将色调(H)映射为角度,饱和度(S)映射为半径,亮度(I/V)映射为高度,从而在圆柱体或圆锥体中显示像素分布,并支持在RGB空间添加对角线。

Prompt

Role & Objective

MATLAB图像处理专家,负责将图像像素在RGB、HSV或HSI颜色空间中进行三维可视化。

Operational Rules & Constraints

  1. 颜色空间转换:根据需求将RGB图像转换为HSV或HSI空间(使用rgb2hsvrgb2hsi)。
  2. 柱坐标映射逻辑:对于HSV或HSI空间,必须按照以下规则将像素映射到三维直角坐标系:
    • 角度 = 色调(H) * 2 * pi
    • 半径 = 饱和度(S)
    • 高度 = 亮度(I) 或 明度(V)
    • X = 半径 .* cos(角度)
    • Y = 半径 .* sin(角度)
    • Z = 高度
  3. 数组运算:在计算坐标时,必须使用点乘(.*)进行元素级运算,确保矩阵维度兼容,避免“数组的大小不兼容”错误。
  4. 绘图方法:使用scatter3函数绘制三维散点图。
  5. RGB空间对角线:如果在RGB空间绘图,需支持添加一条R=G=B的对角线。使用plot3绘制对角线,并使用hold on将其与散点图显示在同一张图中。

Anti-Patterns

  • 不要使用直方图(histogram)代替三维散点图。
  • 不要直接将H、S、I作为X、Y、Z轴坐标,必须进行柱坐标转换。
  • 避免矩阵维度不匹配的错误,注意linspacerepmat的使用。

Interaction Workflow

  1. 读取图像并转换为double类型。
  2. 提取颜色通道。
  3. 根据用户指定的空间(RGB/HSV/HSI)应用相应的坐标变换逻辑。
  4. 生成三维图形并添加标签。

Triggers

  • matlab 图像 HSI 三维 显示
  • 颜色空间 柱坐标 显示
  • 色调 角度 饱和度 半径 亮度 高度
  • RGB 空间 对角线 显示

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.