Filter löschen
Filter löschen

Color Histogram weighted by non-isotropic Gaussian Kernel

1 Ansicht (letzte 30 Tage)
Rui Zhao
Rui Zhao am 17 Jun. 2012
I have a patch to extract color histogram, meanwhile I want to incorporate the spatial weights into the color histogram. The spatial weight is decided by a non-isotropic Gaussian kernel, how could I add the weight for corresponding pixels when computing color histogram?

Antworten (1)

Image Analyst
Image Analyst am 17 Jun. 2012
How about multiplying something by the weight and adding it to whatever you're going to add it to. That's about all I can say given this vague description of an algorithm and the lack of any code, pseudocode, or equation.
  1 Kommentar
Rui Zhao
Rui Zhao am 17 Jun. 2012
Just solved it. After dividing the image into small blocks, and computing their color histogram, I can weight each color histogram by the total energy of the kernel within that block. Then sum all histograms up or just concatenate them, I can get the weighted color histogram.
Sorry for the vague description because I didn't have the clear idea then.

Melden Sie sich an, um zu kommentieren.

Community Treasure Hunt

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

Start Hunting!

Translated by