Can we count the color pixels in each box like it did in mathematica?

1 ビュー (過去 30 日間)
Atique Khan
Atique Khan 2020 年 9 月 16 日
コメント済み: Adam Danz 2020 年 9 月 16 日
I am working in a project to split an image into small boxes of equal size which I have made. The problem is that when OI concatinate the boxes again to count the number of color pixels and use it for further computation then there are many new colors of which I dont know the name and it coounted to be about more than 17000 in an 1000 x 1000 image. I splitted an imae in mathematica and ploted the number of color pixels with their shade that made my work quite easy but the porblem is that when I work for larger box number it keep on running and very slow computation as compared to matlab. I want to do that in matlab to reduce the computaional cost. Kindly help.
This is what mathematica gives me for a 25 x 25 image when it is splitted into 5 x 5 boxes and each box contained 25 pixels.
  3 件のコメント
Adam Danz
Adam Danz 2020 年 9 月 16 日
Thanks, Mario.
@Atique Khan , on second glance, it looks like the Mathematica algorithm is also not differentiating between very similar but numerically different colors so I can't imagine what it's doing.


回答 (0 件)


Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by