|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||
java.lang.Objectjava.lang.Enum<SubSampleType>
com.xinapse.multisliceimage.SubSampleType
public enum SubSampleType
An enumeration of the types of sub-sampling to be used for resampling images.
| Enum Constant Summary | |
|---|---|
BY_AVERAGING
Sub-sampling by averaging across nearest pixels. |
|
LPF
Sub-sampling by low-pass filtering and sinc interpolation. |
|
NN
Sub-sampling by selecting the nearest neighbour. |
|
| Method Summary | |
|---|---|
static SubSampleType |
getInstance(java.lang.String s)
Returns the SubSampleType corresponding to a String representation. |
static SubSampleType |
getPreferredSubSampleType(java.util.prefs.Preferences prefs,
SubSampleType defaultType)
Returns the SubSampleType set in the preferences. |
static void |
savePreferredSubSampleType(java.util.prefs.Preferences prefs,
SubSampleType subSampleType)
Save a SubSampleType to the preferences. |
java.lang.String |
toString()
Returns a String describing this sub sampling type. |
static SubSampleType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static SubSampleType[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final SubSampleType NN
public static final SubSampleType BY_AVERAGING
public static final SubSampleType LPF
| Method Detail |
|---|
public static SubSampleType[] values()
for (SubSampleType c : SubSampleType.values()) System.out.println(c);
public static SubSampleType valueOf(java.lang.String name)
name - the name of the enum constant to be returned.
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified name
java.lang.NullPointerException - if the argument is null
public static SubSampleType getInstance(java.lang.String s)
throws com.xinapse.util.InvalidArgumentException
s - a String which has been obtained by a SubSampleType's
toString() method. Case is ignored.
com.xinapse.util.InvalidArgumentException - if the String is invalid.
public static SubSampleType getPreferredSubSampleType(java.util.prefs.Preferences prefs,
SubSampleType defaultType)
prefs - the Preferences in which to look.defaultType - the default SubSampleType to return if not set in the Preferences.
public static void savePreferredSubSampleType(java.util.prefs.Preferences prefs,
SubSampleType subSampleType)
prefs - the Preferences in which to save the type.subSampleType - the type to save in in the Preferences.public java.lang.String toString()
toString in class java.lang.Enum<SubSampleType>
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||