<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: cluster RGB data in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/cluster-RGB-data/m-p/868033#M103092</link>
    <description>&lt;P&gt;You might also want to investigate other color spaces; transforming the RGB to HLS can be useful. &lt;/P&gt;
&lt;P&gt;One problem with RGB is interpolating between two colors...half-way between two colors tends to be gray because the center of the RGB color cube is gray. HLS interpolates a hue axis that is independent of the gray defined by lightness and saturation. There are other color spaces; some of them are supposed to model human vision and might be used for image compression algorithms (leave out details we can't see).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://en.wikipedia.org/wiki/Color_space" target="_blank"&gt;https://en.wikipedia.org/wiki/Color_space&lt;/A&gt;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&lt;A href="https://en.wikipedia.org/wiki/HSL_and_HSV" target="_blank"&gt;https://en.wikipedia.org/wiki/HSL_and_HSV&lt;/A&gt;&amp;nbsp; JMP uses HLS for HSL&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 13 Apr 2025 14:56:36 GMT</pubDate>
    <dc:creator>Craige_Hales</dc:creator>
    <dc:date>2025-04-13T14:56:36Z</dc:date>
    <item>
      <title>cluster RGB data</title>
      <link>https://community.jmp.com/t5/Discussions/cluster-RGB-data/m-p/868005#M103087</link>
      <description>&lt;P&gt;In JMP it's possible to load pictures as tables - and &lt;LI-MESSAGE title="Jed Campbell" uid="776142" url="https://community.jmp.com/t5/Speakers/Jed-Campbell/m-p/776142#U776142" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-tkb-thread lia-fa-icon lia-fa-tkb lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;shared some cool tricks how to extract the data from a graph-picture:&lt;/P&gt;
&lt;P&gt;&lt;LI-MESSAGE title="From Picture to Data: Extracting graph data from a picture into a JMP Table for analysis" uid="809700" url="https://community.jmp.com/t5/JMP-Blog/From-Picture-to-Data-Extracting-graph-data-from-a-picture-into-a/m-p/809700#U809700" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-blog-thread lia-fa-icon lia-fa-blog lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One of the tricks: Use clustering to separate axes and grid lines from the actual data. This approach can also be used to separate data points that belong to different curves. If you know the exact number of clusters, you can use K Means Cluster, or if you want to play around, you can use Hierarchical Clustering.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I just tried it with the below data set&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_2-1744533499670.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/74800iBE523D4802977F71/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_2-1744533499670.png" alt="hogi_2-1744533499670.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;and was surprised by the result which I got with the default settings:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_11-1744534472243.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/74809i5AC1BF60AC2C32D9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_11-1744534472243.png" alt="hogi_11-1744534472243.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After some trial and error, I found the solution:&lt;BR /&gt;The range 0-1 has some meaning, by rescaling the columns individually, this information is lost.&lt;/P&gt;
&lt;P&gt;After disabling the option:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_4-1744533767707.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/74802i150B319002C43B8E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_4-1744533767707.png" alt="hogi_4-1744533767707.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I got a perfect separation of the data points:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_7-1744533900661.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/74805i029C24C0F302A020/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_7-1744533900661.png" alt="hogi_7-1744533900661.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For Hierarchical Clustering, one can enable 2-way-clustering:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_10-1744534295624.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/74808i437CCE6C6A9FB993/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_10-1744534295624.png" alt="hogi_10-1744534295624.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;which relies as well on data "on the same scale". For hierarchical Clustering,&amp;nbsp;"single" seems to work as well:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_8-1744534087258.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/74806i6925DAE8EF2C7C85/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_8-1744534087258.png" alt="hogi_8-1744534087258.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;What is your experience with clustering?&lt;/P&gt;</description>
      <pubDate>Sun, 13 Apr 2025 08:59:45 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/cluster-RGB-data/m-p/868005#M103087</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2025-04-13T08:59:45Z</dc:date>
    </item>
    <item>
      <title>Re: cluster RGB data</title>
      <link>https://community.jmp.com/t5/Discussions/cluster-RGB-data/m-p/868033#M103092</link>
      <description>&lt;P&gt;You might also want to investigate other color spaces; transforming the RGB to HLS can be useful. &lt;/P&gt;
&lt;P&gt;One problem with RGB is interpolating between two colors...half-way between two colors tends to be gray because the center of the RGB color cube is gray. HLS interpolates a hue axis that is independent of the gray defined by lightness and saturation. There are other color spaces; some of them are supposed to model human vision and might be used for image compression algorithms (leave out details we can't see).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://en.wikipedia.org/wiki/Color_space" target="_blank"&gt;https://en.wikipedia.org/wiki/Color_space&lt;/A&gt;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&lt;A href="https://en.wikipedia.org/wiki/HSL_and_HSV" target="_blank"&gt;https://en.wikipedia.org/wiki/HSL_and_HSV&lt;/A&gt;&amp;nbsp; JMP uses HLS for HSL&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 13 Apr 2025 14:56:36 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/cluster-RGB-data/m-p/868033#M103092</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2025-04-13T14:56:36Z</dc:date>
    </item>
  </channel>
</rss>

