public Egomotion2D() { super(); this.allowed_input = ScreenOptions.tPLANARSET3D; this.group = Function3DGroup.Egomotion; transform = null; error = null; alpha = 0.025; beta = 0.025; ParamScrData p1 = new ParamScrData("Next Object"); ParamFloat p2 = new ParamFloat("Alpha"); p2.setValue(0.1025f); ParamFloat p3 = new ParamFloat("Beta"); p3.setValue(0.015f); ParamFloat p4 = new ParamFloat("Initial Variance"); p4.setValue(0.3f); ParamFloat p5 = new ParamFloat("Final Variance"); p5.setValue(0.0035f); ParamInt p6 = new ParamInt("Iterations"); p6.setValue(75); addParam(p1); addParam(p2); addParam(p3); addParam(p4); addParam(p5); addParam(p6); }
public ConvolveAscii() { super(); name = "ConvolveAscii"; description = "Applies a convolution of an image using a mask defined in a text file. Applies to COLOR, BYTE, SHORT or FLOAT type."; groupFunc = FunctionGroup.Convolution; ParamFile p1 = new ParamFile("matrix", true, true); p1.setDescription("Matrix for convolution (.txt extension)"); ParamFloat p2 = new ParamFloat("mult", false, true); p2.setDefault(1.0f); p2.setDescription("Multiplier"); ParamFloat p3 = new ParamFloat("div", false, true); p3.setDefault(1.0f); p3.setDescription("Divisor"); ParamList p4 = new ParamList("method", false, true); String[] paux = new String[3]; paux[0] = "ZERO"; paux[1] = "WRAP"; paux[2] = "PAD"; p4.setDefault(paux); p4.setDescription("Method to process the border"); addParam(p1); addParam(p2); addParam(p3); addParam(p4); }