문제

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