annotate dsp/specprod.m @ 61:eff6bddf82e3 tip

Finally implemented perceptual brightness thing.
author samer
date Sun, 11 Oct 2015 10:20:42 +0100
parents c3b0cd708782
children
rev   line source
samer@32 1 function C=specprod(A,B)
samer@32 2 % specprod - kind of spectral distance matrix product thingy
samer@32 3 %
samer@32 4 % specprod :: [[N,M]], [[M,L]] -> [[N,L]].
samer@32 5
samer@32 6 C=zeros(size(A,1),size(B,2));
samer@32 7 for i=1:size(A,1)
samer@32 8 for j=1:size(B,2)
samer@32 9 C(i,j)=specdist(B(:,j),A(i,:)');
samer@32 10 end
samer@32 11 end