I have a matrix with dimensions 512 x 683 and I'm looking to gamma transform it by raising it to .8 and 1.2 seperately. Obviously you cannot raise nonsquare matrices to powers, so I was wondering how would I go about raising each element of the matrix to the .8th power and the 1.2 power.

Thanks

有帮助吗?

解决方案

Element wise:

newMat1 = oldMat.^0.8;

and

newMat2 = oldMat.^1.2;
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top