1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328
|
//
// time: Tue Sep 5 08:09:19 1995
//
// version: 3.0.0 (format), 3.1.0 (DX)
//
//
// MODULE main
//
// comment: This visual program is used as part of the tutorial for Data Explorer. To access the tutorial you can type
// comment: dx -tutor
// comment: or you can choose "Tutorial..." from the Help menu of any window.
// comment:
// comment: This visual program is discussed in the section "Processing Images". To find this section, start the tutorial, then click on
// comment: "Appendix B, Tutorial II: Editing and Creating Visual Programs" in the third paragraph. Then click on "Processing Images" in
// comment: the list of Tutorial II Topics.
// comment:
// comment: The tutorial will suggest ways to use and modify this visual program.
// workspace: width = 664, height = 649
// layout: snap = 0, width = 50, height = 50, align = UL
//
macro main(
) -> (
) {
//
// node Selector[2]: x = 120, y = 518, inputs = 7, label = Selector
// input[1]: defaulting = 0, visible = 0, type = 32, value = "Selector_2"
// input[2]: defaulting = 0, visible = 0, type = 32, value = "original and filtered"
// input[3]: defaulting = 0, visible = 0, type = 29, value = 1
// input[4]: defaulting = 1, visible = 1, type = 16777248, value = { "original and filtered" "original - filtered" "chromakey overlay" "contours of magnitude" }
// input[5]: defaulting = 1, visible = 0, type = 16777245, value = { 1 2 3 4 }
// output[1]: visible = 1, type = 29, value = 1
// output[2]: visible = 1, type = 32, value = "original and filtered"
//
//
// node ReadImage[1]: x = 25, y = 2, inputs = 8, label = ReadImage
// input[1]: defaulting = 0, visible = 1, type = 32, value = "cylinder.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,
main_ReadImage_1_in_8
) [instance: 1, cache: 1];
//
// node Selector[1]: x = 250, y = 130, inputs = 7, label = Selector
// input[1]: defaulting = 0, visible = 0, type = 32, value = "Selector_1"
// input[2]: defaulting = 0, visible = 0, type = 32, value = "isotropic"
// input[3]: defaulting = 0, visible = 0, type = 29, value = 3
// input[4]: defaulting = 1, visible = 1, type = 16777248, value = { "gaussian" "laplacian" "isotropic" }
// input[5]: defaulting = 1, visible = 0, type = 16777245, value = { 1 2 3 }
// output[1]: visible = 1, type = 29, value = 3
// output[2]: visible = 1, type = 32, value = "isotropic"
//
//
// node Filter[1]: x = 83, y = 180, inputs = 4, label = Filter
// input[3]: defaulting = 0, visible = 1, type = 32, value = "colors"
//
main_Filter_1_out_1 =
Filter(
main_ReadImage_1_out_1,
main_Selector_1_out_2,
main_Filter_1_in_3,
main_Filter_1_in_4
) [instance: 1, cache: 1];
//
// node Collect[10]: x = 37, y = 278, inputs = 2, label = Collect
//
main_Collect_10_out_1 =
Collect(
main_ReadImage_1_out_1,
main_Filter_1_out_1
) [instance: 10, cache: 1];
//
// node Arrange[2]: x = 54, y = 402, inputs = 5, label = Arrange
//
main_Arrange_2_out_1 =
Arrange(
main_Collect_10_out_1,
main_Arrange_2_in_2,
main_Arrange_2_in_3,
main_Arrange_2_in_4,
main_Arrange_2_in_5
) [instance: 2, cache: 1];
//
// node Mark[1]: x = 334, y = 155, inputs = 2, label = Mark
// input[2]: defaulting = 0, visible = 1, type = 32, value = "colors"
//
main_Mark_1_out_1 =
Mark(
main_ReadImage_1_out_1,
main_Mark_1_in_2
) [instance: 1, cache: 1];
//
// node Mark[2]: x = 394, y = 244, inputs = 2, label = Mark
// input[2]: defaulting = 0, visible = 1, type = 32, value = "colors"
//
main_Mark_2_out_1 =
Mark(
main_Filter_1_out_1,
main_Mark_2_in_2
) [instance: 2, cache: 1];
//
// node Compute[11]: x = 301, y = 307, inputs = 3, label = Compute
// input[1]: defaulting = 0, visible = 0, type = 32, value = "$0 - $1"
// expression: value = original - filtered
// name[2]: value = original
// name[3]: value = filtered
//
main_Compute_11_out_1 =
Compute(
main_Compute_11_in_1,
main_Mark_1_out_1,
main_Mark_2_out_1
) [instance: 11, cache: 1];
//
// node Unmark[1]: x = 314, y = 391, inputs = 2, label = Unmark
// input[2]: defaulting = 0, visible = 1, type = 32, value = "colors"
//
main_Unmark_1_out_1 =
Unmark(
main_Compute_11_out_1,
main_Unmark_1_in_2
) [instance: 1, cache: 1];
//
// node ReadImage[2]: x = 469, y = 57, inputs = 8, label = ReadImage
// input[1]: defaulting = 0, visible = 1, type = 32, value = "background.tiff"
//
main_ReadImage_2_out_1 =
ReadImage(
main_ReadImage_2_in_1,
main_ReadImage_2_in_2,
main_ReadImage_2_in_3,
main_ReadImage_2_in_4,
main_ReadImage_2_in_5,
main_ReadImage_2_in_6,
main_ReadImage_2_in_7,
main_ReadImage_2_in_8
) [instance: 2, cache: 1];
//
// node Transmitter[12]: x = 129, y = 74, inputs = 1, label = original_image
//
original_image = main_ReadImage_1_out_1;
//
// node Receiver[14]: x = 540, y = 145, inputs = 1, label = original_image
//
main_Receiver_14_out_1 = original_image;
//
// node Overlay[1]: x = 470, y = 245, inputs = 3, label = Overlay
// input[3]: defaulting = 0, visible = 1, type = 32, value = "black"
//
main_Overlay_1_out_1 =
Overlay(
main_ReadImage_2_out_1,
main_Receiver_14_out_1,
main_Overlay_1_in_3
) [instance: 1, cache: 1];
//
// node Mark[3]: x = 559, y = 240, inputs = 2, label = Mark
// input[2]: defaulting = 0, visible = 1, type = 32, value = "colors"
//
main_Mark_3_out_1 =
Mark(
main_Receiver_14_out_1,
main_Mark_3_in_2
) [instance: 3, cache: 1];
//
// node Compute[12]: x = 544, y = 313, inputs = 2, label = Compute
// input[1]: defaulting = 0, visible = 0, type = 32, value = "mag($0)"
// expression: value = mag(a)
// name[2]: value = a
//
main_Compute_12_out_1 =
Compute(
main_Compute_12_in_1,
main_Mark_3_out_1
) [instance: 12, cache: 1];
//
// node Isosurface[1]: x = 551, y = 387, inputs = 6, label = Isosurface
// input[3]: defaulting = 0, visible = 1, type = 1, value = 10
//
main_Isosurface_1_out_1 =
Isosurface(
main_Compute_12_out_1,
main_Isosurface_1_in_2,
main_Isosurface_1_in_3,
main_Isosurface_1_in_4,
main_Isosurface_1_in_5,
main_Isosurface_1_in_6
) [instance: 1, cache: 1];
//
// node AutoCamera[2]: x = 567, y = 460, inputs = 9, label = AutoCamera
// input[3]: defaulting = 0, visible = 1, type = 5, value = 350.0
// input[4]: defaulting = 0, visible = 1, type = 1, value = 350
// input[5]: defaulting = 0, visible = 0, type = 5, value = .85
//
main_AutoCamera_2_out_1 =
AutoCamera(
main_Isosurface_1_out_1,
main_AutoCamera_2_in_2,
main_AutoCamera_2_in_3,
main_AutoCamera_2_in_4,
main_AutoCamera_2_in_5,
main_AutoCamera_2_in_6,
main_AutoCamera_2_in_7,
main_AutoCamera_2_in_8,
main_AutoCamera_2_in_9
) [instance: 2, cache: 1];
//
// node Render[1]: x = 487, y = 488, inputs = 3, label = Render
//
main_Render_1_out_1 =
Render(
main_Isosurface_1_out_1,
main_AutoCamera_2_out_1,
main_Render_1_in_3
) [instance: 1, cache: 1];
//
// node Switch[1]: x = 271, y = 526, inputs = 5, label = Switch
//
main_Switch_1_out_1 =
Switch(
main_Selector_2_out_1,
main_Arrange_2_out_1,
main_Unmark_1_out_1,
main_Overlay_1_out_1,
main_Render_1_out_1
) [instance: 1, cache: 1];
//
// node Display[10]: x = 411, y = 586, inputs = 4, label = Display
// depth: value = 8
// window: position = (0.3648,0.0635), size = 0.5578x0.3359
//
Display(
main_Switch_1_out_1,
main_Display_10_in_2,
main_Display_10_in_3,
main_Display_10_in_4
) [instance: 10, cache: 1];
// network: end of macro body
}
main_Selector_2_in_1 = "Selector_2";
main_Selector_2_in_2 = "original and filtered" ;
main_Selector_2_in_3 = 1 ;
main_Selector_2_in_4 = NULL;
main_Selector_2_in_5 = NULL;
main_Selector_2_in_6 = NULL;
main_Selector_2_in_7 = NULL;
main_Selector_2_out_1 = 1 ;
main_ReadImage_1_in_1 = "cylinder.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_in_8 = NULL;
main_ReadImage_1_out_1 = NULL;
main_Selector_1_in_1 = "Selector_1";
main_Selector_1_in_2 = "isotropic" ;
main_Selector_1_in_3 = 3 ;
main_Selector_1_in_4 = NULL;
main_Selector_1_in_5 = NULL;
main_Selector_1_in_6 = NULL;
main_Selector_1_in_7 = NULL;
main_Selector_1_out_2 = "isotropic" ;
main_Filter_1_in_3 = "colors";
main_Filter_1_in_4 = NULL;
main_Filter_1_out_1 = NULL;
main_Collect_10_out_1 = NULL;
main_Arrange_2_in_2 = NULL;
main_Arrange_2_in_3 = NULL;
main_Arrange_2_in_4 = NULL;
main_Arrange_2_in_5 = NULL;
main_Arrange_2_out_1 = NULL;
main_Mark_1_in_2 = "colors";
main_Mark_1_out_1 = NULL;
main_Mark_2_in_2 = "colors";
main_Mark_2_out_1 = NULL;
main_Compute_11_in_1 = "$0 - $1";
main_Compute_11_out_1 = NULL;
main_Unmark_1_in_2 = "colors";
main_Unmark_1_out_1 = NULL;
main_ReadImage_2_in_1 = "background.tiff";
main_ReadImage_2_in_2 = NULL;
main_ReadImage_2_in_3 = NULL;
main_ReadImage_2_in_4 = NULL;
main_ReadImage_2_in_5 = NULL;
main_ReadImage_2_in_6 = NULL;
main_ReadImage_2_in_7 = NULL;
main_ReadImage_2_in_8 = NULL;
main_ReadImage_2_out_1 = NULL;
main_Transmitter_12_out_1 = NULL;
main_Receiver_14_out_1 = NULL;
main_Overlay_1_in_3 = "black";
main_Overlay_1_out_1 = NULL;
main_Mark_3_in_2 = "colors";
main_Mark_3_out_1 = NULL;
main_Compute_12_in_1 = "mag($0)";
main_Compute_12_out_1 = NULL;
main_Isosurface_1_in_2 = NULL;
main_Isosurface_1_in_3 = 10;
main_Isosurface_1_in_4 = NULL;
main_Isosurface_1_in_5 = NULL;
main_Isosurface_1_in_6 = NULL;
main_Isosurface_1_out_1 = NULL;
main_AutoCamera_2_in_2 = NULL;
main_AutoCamera_2_in_3 = 350.0;
main_AutoCamera_2_in_4 = 350;
main_AutoCamera_2_in_5 = .85;
main_AutoCamera_2_in_6 = NULL;
main_AutoCamera_2_in_7 = NULL;
main_AutoCamera_2_in_8 = NULL;
main_AutoCamera_2_in_9 = NULL;
main_AutoCamera_2_out_1 = NULL;
main_Render_1_in_3 = NULL;
main_Render_1_out_1 = NULL;
main_Switch_1_out_1 = NULL;
main_Display_10_in_2 = NULL;
main_Display_10_in_3 = "X8,,";
main_Display_10_in_4 = NULL;
Executive("product version 3 1 0");
$sync
main();
|