I was wondering if anyone could help me vectorize these for loops I have attempt a few time but have not been able to thanks in advance.
pixel_depth = 16;
pixel_range = 2^pixel_depth -1;
for i=1:height
for j=1:width
for k=1:gaussianComponents
mean(i,j,k) = rand*pixel_range;
weights(i,j,k) = 1/gaussianComponents;
pixelDeviation(i,j,k) = diviationNew;
end
end
end
Thank you for any help....