How to create 3D histogram of 1728 bins?

1 view (last 30 days)
sasithra devi
sasithra devi on 12 Oct 2015
Commented: Walter Roberson on 12 Oct 2015
I am having RGB image. I converted that into HSV. I'm rescaling the value of Hue to 180 & saturation to {0 ,255}. Now i need to quantize hue, saturation and value into 18, 12 and 8 bins resp. This will result in 1728 bins. In matlab we can create the 3D histogram for only 2 column matrix. please give me solution for this problem

Answers (1)

Walter Roberson
Walter Roberson on 12 Oct 2015
  2 Comments
sasithra devi
sasithra devi on 12 Oct 2015
the code in the provided link results in histogram of 38 bins i.e, 18+12+8=38. But i need 18*12*8=1728 bins. please give me solution
Walter Roberson
Walter Roberson on 12 Oct 2015
The solution is to read and understand the code and modify it.
You are doing homework (the question has come up a number of times before) and we are not in the business of doing your homework for you. You can program it yourself from scratch or you can study the code from that link and figure out how it works and make the small modifications for your purpose.

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!