final double[][] expected = {
{ 0, 1, 2, 3, 4, 5, 6, 7, 8 },
{ 0, 3, 6, 1, 4, 7, 2, 5, 8 },
{ 8, 7, 6, 5, 4, 3, 2, 1, 0 } };
final double[] output = new double[ 9 ];
final Img< DoubleType > img = new ArrayImgFactory< DoubleType >().create( new long[] { 3, 3 }, new DoubleType() );
final RandomAccess< DoubleType > ra = img.randomAccess();
final long[] location = new long[ 2 ];
for ( int x = 0; x < 3; x++ )
{
location[ 0 ] = x;