// // time: Tue Jun 28 18:09:17 1994 // // version: 2.0.1 // // MODULE main // CATEGORY Macros // workspace: width = 1834, height = 1562 // layout: snap = 0, width = 50, height = 50, align = CC // macro main( ) -> ( ) { // // node Scalar[1]: x = 119, y = 103, inputs = 11, label = Scalar // input[1]: defaulting = 0, visible = 0, type = 32, value = "Scalar_1" // input[3]: defaulting = 1, visible = 0, type = 5, value = 2.000000 // input[4]: defaulting = 0, visible = 0, type = 3, value = 1 // input[5]: defaulting = 1, visible = 0, type = 5, value = 1.0 // input[6]: defaulting = 1, visible = 0, type = 5, value = 10.0 // input[7]: defaulting = 1, visible = 0, type = 5, value = 1.0 // input[9]: defaulting = 1, visible = 0, type = 1, value = 0 // output[1]: visible = 1, type = 5, value = 2.000000 // // // node ReadImage[1]: x = 32, y = 16, inputs = 7, label = ReadImage // input[1]: defaulting = 0, visible = 1, type = 32, value = "/afs/theory.cornell.edu/user/cs418/cs418/TexMaps/fruit.rgb" // main_ReadImage_1_out_1 = ReadImage( main_ReadImage_1_in_1, main_ReadImage_1_in_2, main_ReadImage_1_in_3, main_ReadImage_1_in_4, main_ReadImage_1_in_5, main_ReadImage_1_in_6, main_ReadImage_1_in_7 ) [instance: 1, cache: 1]; // // node Display[1]: x = 213, y = 98, inputs = 4, label = Display // // depth: value = 8 Display( main_ReadImage_1_out_1, main_Display_1_in_2, main_Display_1_in_3, main_Display_1_in_4 ) [instance: 1, cache: 1]; // // node Reduce[1]: x = 47, y = 165, inputs = 2, label = reduce resolution (BUT NOT SIZE) if image by averaging pixels // main_Reduce_1_out_1 = Reduce( main_ReadImage_1_out_1, main_Scalar_1_out_1 ) [instance: 1, cache: 1]; // // node Display[2]: x = 228, y = 243, inputs = 4, label = Display // // depth: value = 8 Display( main_Reduce_1_out_1, main_Display_2_in_2, main_Display_2_in_3, main_Display_2_in_4 ) [instance: 2, cache: 1]; // // node Mark[3]: x = 31, y = 255, inputs = 2, label = get positions for determining image size // input[2]: defaulting = 0, visible = 1, type = 32, value = "positions" // main_Mark_3_out_1 = Mark( main_Reduce_1_out_1, main_Mark_3_in_2 ) [instance: 3, cache: 1]; // // node Compute[5]: x = 21, y = 343, inputs = 2, label = extract horizontal positions // input[1]: defaulting = 0, visible = 0, type = 32, value = "$0.x" // // expression: value = a.x // name[2]: value = a main_Compute_5_out_1 = Compute( main_Compute_5_in_1, main_Mark_3_out_1 ) [instance: 5, cache: 1]; // // node Compute[6]: x = 125, y = 342, inputs = 2, label = extract vertical positions // input[1]: defaulting = 0, visible = 0, type = 32, value = "$0.y" // // expression: value = a.y // name[2]: value = a main_Compute_6_out_1 = Compute( main_Compute_6_in_1, main_Mark_3_out_1 ) [instance: 6, cache: 1]; // // node Statistics[1]: x = 5, y = 422, inputs = 1, label = Statistics // main_Statistics_1_out_1, main_Statistics_1_out_2, main_Statistics_1_out_3, main_Statistics_1_out_4, main_Statistics_1_out_5 = Statistics( main_Compute_5_out_1 ) [instance: 1, cache: 1]; // // node Statistics[2]: x = 143, y = 424, inputs = 1, label = Statistics // main_Statistics_2_out_1, main_Statistics_2_out_2, main_Statistics_2_out_3, main_Statistics_2_out_4, main_Statistics_2_out_5 = Statistics( main_Compute_6_out_1 ) [instance: 2, cache: 1]; // // node Format[1]: x = 83, y = 558, inputs = 5, label = Format // input[1]: defaulting = 0, visible = 1, type = 32, value = "image size: Xmin=%3.0f, Xmax=%3.0f, Ymin=%3.0f, Ymax=%3.0f" // main_Format_1_out_1 = Format( main_Format_1_in_1, main_Statistics_1_out_4, main_Statistics_1_out_5, main_Statistics_2_out_4, main_Statistics_2_out_5 ) [instance: 1, cache: 1]; // // node Echo[2]: x = 129, y = 660, inputs = 1, label = Echo // Echo( main_Format_1_out_1 ) [instance: 2, cache: 1]; // network: end of macro body } main_Scalar_1_in_1 = "Scalar_1"; main_Scalar_1_in_2 = NULL; main_Scalar_1_in_3 = NULL; main_Scalar_1_in_4 = 1; main_Scalar_1_in_5 = NULL; main_Scalar_1_in_6 = NULL; main_Scalar_1_in_7 = NULL; main_Scalar_1_in_8 = NULL; main_Scalar_1_in_9 = NULL; main_Scalar_1_in_10 = NULL; main_Scalar_1_in_11 = NULL; main_Scalar_1_out_1 = 2.000000; main_ReadImage_1_in_1 = "/afs/theory.cornell.edu/user/cs418/cs418/TexMaps/fruit.rgb"; main_ReadImage_1_in_2 = NULL; main_ReadImage_1_in_3 = NULL; main_ReadImage_1_in_4 = NULL; main_ReadImage_1_in_5 = NULL; main_ReadImage_1_in_6 = NULL; main_ReadImage_1_in_7 = NULL; main_ReadImage_1_out_1 = NULL; main_Display_1_in_2 = NULL; main_Display_1_in_4 = NULL; main_Reduce_1_out_1 = NULL; main_Display_2_in_2 = NULL; main_Display_2_in_4 = NULL; main_Mark_3_in_2 = "positions"; main_Mark_3_out_1 = NULL; main_Compute_5_in_1 = "$0.x"; main_Compute_5_out_1 = NULL; main_Compute_6_in_1 = "$0.y"; main_Compute_6_out_1 = NULL; main_Statistics_1_out_4 = NULL; main_Statistics_1_out_5 = NULL; main_Statistics_2_out_4 = NULL; main_Statistics_2_out_5 = NULL; main_Format_1_in_1 = "image size: Xmin=%3.0f, Xmax=%3.0f, Ymin=%3.0f, Ymax=%3.0f"; main_Format_1_out_1 = NULL; main();