'Return the transform that maps from this image\'s input array to its
local coordinate system.
This transform corrects for the transposition that occurs when image data
is interpreted in row-major order.'

def dataTransform(self):

    tr = QtGui.QTransform()
    if (self.axisOrder == 'row-major'):
        tr.scale(1, (-1))
        tr.rotate((-90))
    return tr
