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.