unitary transform of image matrix