Java Code Examples for net.imglib2.util.Util#printCoordinates()

The following examples show how to use net.imglib2.util.Util#printCoordinates() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: MultipageTiffReader.java    From SPIM_Registration with GNU General Public License v2.0 5 votes vote down vote up
public String rotationAxisName()
{
	final double[] r = rotationAxis();

	if ( r[ 0 ] == 1 && r[ 1 ] == 0 && r[ 2 ] == 0 )
		return "X-Axis";
	else if ( r[ 0 ] == 0 && r[ 1 ] == 1 && r[ 2 ] == 0 )
		return "Y-Axis";
	else if ( r[ 0 ] == 0 && r[ 0 ] == 1 && r[ 1 ] == 0 )
		return "Z-Axis";
	else
		return "Rotation Axis Vector: " + Util.printCoordinates( r );
}
 
Example 2
Source File: Nucleus.java    From SPIM_Registration with GNU General Public License v2.0 5 votes vote down vote up
@Override
public String toString()
{
	String desc = "Nucleus " + getID() + " l"+ Util.printCoordinates( getL() ) + "; w"+ Util.printCoordinates( getW() );
	
	if ( myView != null)
		return desc + " of view " + myView;
	else
		return desc + " - no view assigned";
}
 
Example 3
Source File: Bead.java    From SPIM_Registration with GNU General Public License v2.0 5 votes vote down vote up
@Override
public String toString()
{
	String desc = "Bead " + getID() + " l"+ Util.printCoordinates( getL() ) + "; w"+ Util.printCoordinates( getW() );
	
	if ( myView != null)
		return desc + " of view " + myView;
	else
		return desc + " - no view assigned";
}
 
Example 4
Source File: AbstractPointDescriptor.java    From SPIM_Registration with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Overwrites the toString method
 */
public String toString()
{
	String out = this.getClass().getName() + "[" +id + "] has position: " + Util.printCoordinates( basisPoint.getW() );
	
	for (int i = 0; i < neighbors.size(); i++)
		out += "\nneighbor " + (i+1) + " vector: " + Util.printCoordinates( basisPoint.getW() );
	
	return out;
}
 
Example 5
Source File: Detection.java    From SPIM_Registration with GNU General Public License v2.0 4 votes vote down vote up
@Override
public String toString()
{
	String desc = "Detection " + getId() + " l"+ Util.printCoordinates( getL() ) + "; w"+ Util.printCoordinates( getW() );
	return desc;
}
 
Example 6
Source File: AbstractDetection.java    From SPIM_Registration with GNU General Public License v2.0 4 votes vote down vote up
@Override
public String toString()
{
	String desc = "Detection " + getID() + " l"+ Util.printCoordinates( getL() ) + "; w"+ Util.printCoordinates( getW() );
	return desc;
}
 
Example 7
Source File: LinkedPoint.java    From SPIM_Registration with GNU General Public License v2.0 votes vote down vote up
public String toString() { return "LinkedPoint " + Util.printCoordinates( l ); }