Examples of MixedTransform


Examples of net.imglib2.transform.integer.MixedTransform

    {
      System.out.println( "incompatible dimensions" );
      return false;
    }

    final MixedTransform t1t2 = t2.preConcatenate( t1 );

    final Matrix mt1 = new Matrix( t1.getMatrix() );
    final Matrix mt2 = new Matrix( t2.getMatrix() );
    final Matrix mt1t2 = new Matrix( t1t2.getMatrix() );

    if ( mt1.times( mt2 ).minus( mt1t2 ).normF() > 0.1 )
    {
      System.out.println( "=======================" );
      System.out.println( "t1: " + t1.numSourceDimensions() + " -> " + t1.numTargetDimensions() + " (n -> m)" );
      System.out.println( "t2: " + t2.numSourceDimensions() + " -> " + t2.numTargetDimensions() + " (n -> m)" );
      System.out.println( "t1t2: " + t1t2.numSourceDimensions() + " -> " + t1t2.numTargetDimensions() + " (n -> m)" );

      System.out.print( "t1 = " );
      mt1.print( 1, 0 );
      System.out.print( "t2 = " );
      mt2.print( 1, 0 );
View Full Code Here

Examples of net.imglib2.transform.integer.MixedTransform

  SlicingTransform slicing1;

  @Before
  public void setUp()
  {
    tr1 = new MixedTransform( 3, 3 );
    long[] translation = new long[] { 3, 4, 5 };
    tr1.setTranslation( translation );

    tr2 = new MixedTransform( 3, 3 );
    translation = new long[] { 7, 8, 9 };
    tr2.setTranslation( translation );

    perm1 = new MixedTransform( 3, 3 );
    boolean[] zero = new boolean[] { false, false, false };
    boolean[] inv = new boolean[] { false, false, false };
    int[] component = new int[] { 0, 2, 1 };
    perm1.setComponentZero( zero );
    perm1.setComponentMapping( component );
    perm1.setComponentInversion( inv );

    rot1 = new MixedTransform( 3, 3 );
    zero = new boolean[] { false, false, false };
    inv = new boolean[] { false, true, false };
    component = new int[] { 1, 0, 2 };
    rot1.setComponentZero( zero );
    rot1.setComponentMapping( component );
    rot1.setComponentInversion( inv );

    proj1 = new MixedTransform( 3, 2 );

    proj2 = new MixedTransform( 2, 3 );

    slice1 = new MixedTransform( 2, 3 );
    slice1.setTranslation( new long[] { 233, 0, 0 } );
    slice1.setComponentMapping( new int[] { 0, 0, 1 } );
    slice1.setComponentZero( new boolean[] { true, false, false } );

    tr3 = new MixedTransform( 2, 2 );
    tr3.setTranslation( new long[] { 10, 10 } );

    comp1 = rot1.concatenate( tr2 );

    translation1 = new TranslationTransform( new long[] { 2011, 3, 24 } );
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.