]> Creatis software - creaVtk.git/blobdiff - bbtk_creaVtk_PKG/bbs/appli/exampleKMeans.bbs
#3463 KMeans box
[creaVtk.git] / bbtk_creaVtk_PKG / bbs / appli / exampleKMeans.bbs
diff --git a/bbtk_creaVtk_PKG/bbs/appli/exampleKMeans.bbs b/bbtk_creaVtk_PKG/bbs/appli/exampleKMeans.bbs
new file mode 100644 (file)
index 0000000..16cf8f0
--- /dev/null
@@ -0,0 +1,56 @@
+# ----------------------------------
+# - BBTKGEditor v 1.4 BBS BlackBox Script
+# - /home/davila/Creatis/C11/creatools_source/creaVtk/bbtk_creaVtk_PKG/bbs/appli/exampleKMeans.bbs
+# ----------------------------------
+
+# BBTK GEditor Script
+# ----------------------
+
+include std
+include itkvtk
+include creaVtk
+include vtk
+include creaMaracasVisu
+include wx
+
+author "Author ??"
+description "Description ??"
+category "<VOID>"
+
+new creaVtk:KMeansStatistics Box00
+  set Box00.NumberOfClusters "5"
+
+new vtk:LoadHola Box01
+
+new creaMaracasVisu:ViewerNV Box02
+
+new vtk:ExtractVtkImageFilter Box08
+  set Box08.Index "0 0 40"
+  set Box08.Size "100 100 2"
+
+new creaMaracasVisu:ViewerNV Box09
+
+new creaMaracasVisu:ImageChangeInformation Box11
+
+new wx:LayoutSplit Box07
+  set Box07.Orientation "H"
+
+
+connect Box01.Out Box08.In
+
+connect Box00.Out Box02.In
+
+connect Box08.Out Box11.In
+
+connect Box11.Out Box00.In
+
+connect Box11.Out Box09.In
+
+connect Box09.Widget Box07.Widget1
+
+connect Box02.Widget Box07.Widget2
+
+
+
+# Complex input ports
+exec Box07