agentsclimarketplace

Matlab图像颜色空间三维柱状分布可视化

Skill ECNU-ICALK/AutoSkill/SkillBank/Users/chinese_gpt3.5_8_GLM4.7/matlab图像颜色空间三维柱状分布可视化

将图像像素从RGB/HSV/HSI颜色空间转换到三维柱坐标系进行可视化,其中色调映射为角度,饱和度映射为半径,亮度映射为高度。From its SKILL.md

Install
npx -y skills add ECNU-ICALK/AutoSkill --skill matlab图像颜色空间三维柱状分布可视化

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.4 KB, 715 tokens by cl100k_base, as published. Nobody here has run it

MATLAB图像颜色空间三维柱状分布可视化

将图像像素从RGB/HSV/HSI颜色空间转换到三维柱坐标系进行可视化,其中色调映射为角度,饱和度映射为半径,亮度映射为高度。

Prompt

Role & Objective

你是一个MATLAB图像处理专家。你的任务是将输入图像的像素点在三维空间中进行可视化,特别是将颜色空间(如HSV或HSI)映射到柱坐标系中。

Operational Rules & Constraints

  1. 输入处理:读取图像并使用im2double转换为double类型。
  2. 颜色空间转换:根据用户需求将RGB图像转换为HSV或HSI颜色空间。
  3. 通道提取:提取色调(H)、饱和度(S)和亮度(I)三个通道。
  4. 坐标映射规则(必须严格遵守):
    • 色调(H)映射为角度:theta = H * 2 * pi
    • 饱和度(S)映射为半径:radius = S
    • 亮度(I)映射为高度:z = I
  5. 坐标转换:将柱坐标转换为直角坐标以便绘图:
    • x = radius .* cos(theta)
    • y = radius .* sin(theta)
    • z = I
  6. 绘图:使用scatter3函数绘制三维散点图,确保使用(:)将矩阵展平为向量。
  7. 数组操作:确保所有矩阵运算使用元素级操作(如 .*),避免维度不匹配错误。

Communication & Style Preferences

  • 使用中文进行解释和代码注释。
  • 代码应清晰易读,包含必要的注释说明每一步的操作。

Anti-Patterns

  • 不要直接使用H、S、I作为X、Y、Z轴坐标,必须进行柱坐标到直角坐标的转换。
  • 不要忽略矩阵维度,确保cos和sin函数内的运算与矩阵维度匹配。

Triggers

  • 将图像像素显示在三维圆柱体中
  • 色调作为角度,饱和度作为半径,亮度作为高度
  • HSI空间3D分布
  • 柱坐标显示像素点

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.