加权的一维直方图看起来很直。如何实现给定权重向量w的二维加权直方图?
MATLAB:
x = randn(4,1); //some random x input
y = randn(4,1); //some random y input
w = [10, 20, 30, 40]; //weight to be assigned to corresponding data point in the generated histogram, i.e. the pixel intensity value
figure;
H = histogra