/** * */ package util; import model.ModelConst; /** * @author John * */ public class GetItemLists { // constants to make lists private final static String [] SIMPLE_DOG = { "Achromatic","Red-Green","Blue-Yellow", "Mean","Min","Max"}; public final static int SD_OR_START = SIMPLE_DOG.length; public final static int SD_ACHROM = 0; public final static int SD_RG = 1; public final static int SD_BY = 2; public final static int SD_MEAN = 3; public final static int SD_MIN = 4; public final static int SD_MAX = 5; // get Methods /** * Creates an array of what can be correlated within * the gabor data. * * @return */ public static String [] getCortexStrings(double numOrient){ String [] items = new String[ModelConst.ORIENT_DIFF+ (int)numOrient]; items[ModelConst.MEAN] = ModelConst.SIMPLE_VAL_BASIC[ModelConst.MEAN]; items[ModelConst.MIN] = ModelConst.SIMPLE_VAL_BASIC[ModelConst.MIN]; items[ModelConst.MAX] = ModelConst.SIMPLE_VAL_BASIC[ModelConst.MAX]; for (int i = ModelConst.ORIENT_DIFF; i < items.length; i ++){ items[i] = ""+ (double)(i-ModelConst.ORIENT_DIFF) *180.0/numOrient +" deg"; } return items; } public static String [] getCortexDogStrings(double numOrient){ String items [] = new String[SD_OR_START + (int)numOrient]; // but in the not orientation items for (int i = 0; i < SD_OR_START; i ++){ items[i]=SIMPLE_DOG[i]; } // put in the orientation items for (int i = SD_OR_START; i < items.length; i ++){ items[i] = ""+(double)(i-SD_OR_START) *180/numOrient +" deg"; } return items; } }