Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Alternatively, you could use something like:</p> <pre><code>Table[Colorize[ MorphologicalComponents[Blur[ColorNegate@comp1, i], .05]], {i, 1, 60, 10}] </code></pre> <p><img src="https://i.stack.imgur.com/w6hZd.png" alt="enter image description here"></p> <p>You may also use <code>Dilation</code>, depending upon what kind of regions you want as a result</p> <pre><code>Table[Colorize@ MorphologicalComponents@Dilation[ColorNegate@comp1, DiskMatrix@i], {i,1,60,10}] </code></pre> <p><img src="https://i.stack.imgur.com/BFj6Q.png" alt="enter image description here"></p> <p>BTW, here you have a way to use <code>FindClusters</code>, not very efficient and probably with non-intuitive results:</p> <pre><code>ImageRotate[Rasterize[ Show[ ListPlot@ FindClusters[Position[ImageData@Binarize@ColorNegate@comp1, 1, {2}], 3], Axes -&gt; False, AspectRatio -&gt; Automatic]], 3 Pi/2] </code></pre> <p><img src="https://i.stack.imgur.com/qeoYs.png" alt="enter image description here"></p> <p><strong>Edit</strong></p> <p>Probably you can manage the <code>FindClusters</code> options to get better results. For example:</p> <pre><code>ImageRotate[Rasterize[Show[ ListPlot@ FindClusters[ Position[ImageData@Binarize@Rasterize[ColorNegate@comp1, RasterSize -&gt; 200], 1, {2}], 3, Method -&gt; {"Agglomerate", "Linkage" -&gt; "Complete"}], Axes -&gt; False, AspectRatio -&gt; Automatic]], 3 Pi/2] </code></pre> <p><img src="https://i.stack.imgur.com/bbeJG.png" alt="enter image description here"></p> <p>And from here, you may also go to the Convex Hull: </p> <pre><code>&lt;&lt; ComputationalGeometry` fc = FindClusters[ Position[ ImageData@Binarize@ Rasterize[ColorNegate@comp1, RasterSize -&gt; 200], 1, {2}], 3, Method -&gt; {"Agglomerate", "Linkage" -&gt; "Complete"}]; ImageRotate[Graphics[Polygon@(#[[ConvexHull[#]]]) &amp; /@ fc, Frame-&gt;True], 3 Pi/2] </code></pre> <p><img src="https://i.stack.imgur.com/eOaVG.png" alt="enter image description here"></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload