Package net.imglib2.util
Class Localizables
- java.lang.Object
-
- net.imglib2.util.Localizables
-
public class Localizables extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classLocalizables.LocationRandomAccessA RandomAccess that returns its current position as value.private static classLocalizables.LocationRandomAccessibleprivate static classLocalizables.RealLocationRealRandomAccessA RandomAccess that returns its current position as value.private static classLocalizables.RealLocationRealRandomAccessible
-
Constructor Summary
Constructors Constructor Description Localizables()
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static long[]asLongArray(Localizable localizable)Deprecated.static booleanequals(Localizable a, Localizable b)Return true if bothLocalizablerefer to the same position.static booleanequals(RealLocalizable a, RealLocalizable b)Return true if the twoRealLocalizables refer to the same position.static booleanequals(RealLocalizable a, RealLocalizable b, double tolerance)Return true if the twoRealLocalizables refer to the same position up to a given tolerance.static RandomAccessible<Localizable>randomAccessible(int n)Create an n-dimensionalRandomAccessiblewhose value domain is its source domain.static RandomAccessibleInterval<Localizable>randomAccessibleInterval(Interval interval)static RealRandomAccessible<RealLocalizable>realRandomAccessible(int n)Create an n-dimensionalRealRandomAccessiblewhose value domain is its source domain.static java.lang.StringtoString(Localizable value)Return the current position as string.static java.lang.StringtoString(RealLocalizable value)Return the current position as string.
-
-
-
Method Detail
-
asLongArray
@Deprecated public static long[] asLongArray(Localizable localizable)
Deprecated.
-
randomAccessible
public static RandomAccessible<Localizable> randomAccessible(int n)
Create an n-dimensionalRandomAccessiblewhose value domain is its source domain.- Parameters:
n-- Returns:
-
randomAccessibleInterval
public static RandomAccessibleInterval<Localizable> randomAccessibleInterval(Interval interval)
-
realRandomAccessible
public static RealRandomAccessible<RealLocalizable> realRandomAccessible(int n)
Create an n-dimensionalRealRandomAccessiblewhose value domain is its source domain.- Parameters:
n-- Returns:
-
equals
public static boolean equals(Localizable a, Localizable b)
Return true if bothLocalizablerefer to the same position.
-
equals
public static boolean equals(RealLocalizable a, RealLocalizable b)
Return true if the twoRealLocalizables refer to the same position.
-
equals
public static boolean equals(RealLocalizable a, RealLocalizable b, double tolerance)
Return true if the twoRealLocalizables refer to the same position up to a given tolerance.
-
toString
public static java.lang.String toString(Localizable value)
Return the current position as string.
-
toString
public static java.lang.String toString(RealLocalizable value)
Return the current position as string.
-
-