Package net.imglib2.transform.integer

Examples of net.imglib2.transform.integer.SequentializeTransform.apply()


    source[ 0 ] = 0;
    source[ 1 ] = 0;
    source[ 2 ] = 0;
    source[ 3 ] = 0;
    t.apply( source, target );
    for ( int d = 0; d < 4; ++d )
    {
      expectedSource[ d ] = source[ d ];
      source[ d ] = -1;
    }
View Full Code Here


    source[ 0 ] = 0;
    source[ 1 ] = 0;
    source[ 2 ] = 0;
    source[ 3 ] = 1;
    t.apply( source, target );
    for ( int d = 0; d < 4; ++d )
    {
      expectedSource[ d ] = source[ d ];
      source[ d ] = -1;
    }
View Full Code Here

    source[ 0 ] = 9;
    source[ 1 ] = 4;
    source[ 2 ] = 2;
    source[ 3 ] = 3;
    t.apply( source, target );
    for ( int d = 0; d < 4; ++d )
    {
      expectedSource[ d ] = source[ d ];
      source[ d ] = -1;
    }
View Full Code Here

    final long[] expectedTarget = new long[ 1 ];

    source[ 0 ] = 0;
    source[ 1 ] = 0;
    expectedTarget[ 0 ] = 0;
    t.apply( source, target );
    assertArrayEquals( expectedTarget, target );

    source[ 0 ] = 5;
    source[ 1 ] = 0;
    expectedTarget[ 0 ] = 5;
View Full Code Here

    assertArrayEquals( expectedTarget, target );

    source[ 0 ] = 5;
    source[ 1 ] = 0;
    expectedTarget[ 0 ] = 5;
    t.apply( source, target );
    assertArrayEquals( expectedTarget, target );

    source[ 0 ] = 5;
    source[ 1 ] = 1;
    expectedTarget[ 0 ] = 15;
View Full Code Here

    assertArrayEquals( expectedTarget, target );

    source[ 0 ] = 5;
    source[ 1 ] = 1;
    expectedTarget[ 0 ] = 15;
    t.apply( source, target );
    assertArrayEquals( expectedTarget, target );
  }

  @Test
  public void test3Dto1D()
View Full Code Here

    source[ 0 ] = 0;
    source[ 1 ] = 0;
    source[ 2 ] = 0;
    expectedTarget[ 0 ] = 0;
    t.apply( source, target );
    assertArrayEquals( expectedTarget, target );

    source[ 0 ] = 5;
    source[ 1 ] = 0;
    source[ 2 ] = 0;
View Full Code Here

    source[ 0 ] = 5;
    source[ 1 ] = 0;
    source[ 2 ] = 0;
    expectedTarget[ 0 ] = 5;
    t.apply( source, target );
    assertArrayEquals( expectedTarget, target );

    source[ 0 ] = 5;
    source[ 1 ] = 1;
    source[ 2 ] = 0;
View Full Code Here

    source[ 0 ] = 5;
    source[ 1 ] = 1;
    source[ 2 ] = 0;
    expectedTarget[ 0 ] = 15;
    t.apply( source, target );
    assertArrayEquals( expectedTarget, target );

    source[ 0 ] = 5;
    source[ 1 ] = 4;
    source[ 2 ] = 3;
View Full Code Here

    source[ 0 ] = 5;
    source[ 1 ] = 4;
    source[ 2 ] = 3;
    expectedTarget[ 0 ] = 5 + 4 * 10 + 3 * 20 * 10;
    t.apply( source, target );
    assertArrayEquals( expectedTarget, target );
  }

  @Test
  public void test4Dto3D()
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.