From 60588da93c08a04ed588963c36b7d44aefcf1183 Mon Sep 17 00:00:00 2001 From: mrbean-bremen Date: Tue, 10 Dec 2024 12:57:00 +0000 Subject: [PATCH] deploy: b1f0578764242040f98766b338a7a49e506701be --- index.html | 2 +- index.json | 2 +- tags/3d-printing/index.html | 2 +- tags/3d-printing/index.xml | 5 +++++ tags/3d/index.html | 2 +- tags/3d/index.xml | 5 +++++ tags/assimp/index.html | 2 +- tags/assimp/index.xml | 5 +++++ tags/beginner/index.html | 2 +- tags/beginner/index.xml | 5 +++++ tags/stl/index.html | 2 +- tags/stl/index.xml | 5 +++++ tags/tutorial/index.html | 2 +- tags/tutorial/index.xml | 5 +++++ tutorials/index.xml | 5 +++++ tutorials/thirdparty/assimp/assimpexample1/index.html | 2 +- 16 files changed, 44 insertions(+), 9 deletions(-) diff --git a/index.html b/index.html index 5b032807c..6aa4ec71a 100644 --- a/index.html +++ b/index.html @@ -1,4 +1,4 @@ -MeVisLab Examples +MeVisLab Examples

3D Printing

Example 1: 3D Printing in MeVisLab

Example 1: 3D Printing in MeVisLab

Introduction

This example uses the assimp library to load a 3D file and save the file as *.stl for 3D printing.

Steps to do

Develop your network

Add the modules SoSceneLoader, SoBackground and SoExaminerViewer to your workspace and connect them as seen below.

Example Network

Example Network

Open the 3D file

Select the file vtkCow.obj from MeVisLab demo data directory. Open SoExaminerViewer and inspect the scene. You will see a 3D cow.

\ No newline at end of file +

3D Printing

Example 1: 3D Printing in MeVisLab

Example 1: 3D Printing in MeVisLab

Introduction

This example uses the assimp library to load a 3D file and save the file as *.stl for 3D printing.

Steps to do

Develop your network

Add the modules SoSceneLoader, SoBackground and SoExaminerViewer to your workspace and connect them as seen below.

Example Network

Example Network

Open the 3D file

Select the file vtkCow.obj from MeVisLab demo data directory. Open SoExaminerViewer and inspect the scene. You will see a 3D cow.

\ No newline at end of file diff --git a/tags/3d-printing/index.xml b/tags/3d-printing/index.xml index 6e5606ff0..e76efe5f8 100644 --- a/tags/3d-printing/index.xml +++ b/tags/3d-printing/index.xml @@ -1,4 +1,9 @@ 3D Printing on MeVisLab Exampleshttps://mevislab.github.io/examples/tags/3d-printing/Recent content in 3D Printing on MeVisLab ExamplesHugoen-usWed, 15 Jun 2022 08:56:33 +0200Example 1: 3D Printing in MeVisLabhttps://mevislab.github.io/examples/tutorials/thirdparty/assimp/assimpexample1/Wed, 15 Jun 2022 08:56:33 +0200https://mevislab.github.io/examples/tutorials/thirdparty/assimp/assimpexample1/<h1 id="example-1-3d-printing-in-mevislab">Example 1: 3D Printing in MeVisLab</h1> +<div class="alert alert-secondary d-flex align-items-center" role="alert"> + <div> + <img width="100px" src="https://mevislab.github.io/examples/images/youtube.svg" />&nbsp;&nbsp;<a href="https://www.youtube.com/watch?v=82ysCYNTyso" target="_blank"><img width="100px" src="https://img.youtube.com/vi/82ysCYNTyso/0.jpg" /></a>&nbsp;&nbsp;&nbsp;This example is also available on <a href="https://www.youtube.com/watch?v=82ysCYNTyso" target="_blank">YouTube</a>. + </div> +</div> <h2 id="introduction">Introduction</h2> <p>This example uses the assimp library to load a 3D file and save the file as *.stl for 3D printing.</p> <h2 id="steps-to-do">Steps to do</h2> diff --git a/tags/3d/index.html b/tags/3d/index.html index 318f2db47..e704266bd 100644 --- a/tags/3d/index.html +++ b/tags/3d/index.html @@ -36,4 +36,4 @@ SoView2DOverlay and View2D to your workspace. Connect the module as shown. The module VoxelizeCSO allows to convert CSOs into voxel images.

Surface Objects (WEM)

Surface Objects (WEMs)

Introduction

In MeVisLab it is possible to create, visualize, process and manipulate surface objects, also known as polygon meshes. Here, we call surface objects Winged Edge Mesh, in short WEM. In this chapter you will get an introduction into WEMs. In addition, you will find examples on how to work with WEMs. For more information on WEMs take a look at the MeVislab Toolbox Reference -. If you like to know which WEM formats can be imported into MeVisLab, take a look at the assimp documentation here.

Surface Example 1: Creation of WEMs

Surface Example 1: Create Winged Edge Mesh out of voxel images and CSOs

Introduction

In this example you will learn how to create a Winged Edge Mesh (WEM). There are several approaches on creating WEMs, a few of them are shown in this example. Instead of creating WEMs, they can also be imported, see chapter Surface Objects (WEM).

Steps to do

From image to surface: Generating WEMs out of voxel images

At first, we will create a WEM out of a voxel image using the module WEMIsoSurface. Add and connect the shown modules. Load the image $(DemoDataPath)/Bone.tiff and set the Iso Min. Value in the panel of WEMIsoSurface to 1200. Tick the box Use image max. value. The module WEMIsoSurface creates surface objects out of all voxels with an Iso value equal or above 1200 (and smaller than the image max value). The module SoWEMRenderer can now be used to generate an Open Inventor scene, which can be displayed by the module SoExaminerViewer.

Surface Example 2: Processing and Modification of WEM

Surface Example 2: Processing and Modification of WEM

Introduction

In this example, you will learn how to modify and process WEMs.

Steps to do

Develop your network

Modification of WEMs

Use the module WEMLoad to load the file venus.off. Then add and connect the shown modules. We like to display the WEM venus two times, one time this WEM is modified. You can use the module WEMModify to apply modifications. In its panel, change the scale and the size of the WEM. Now you see two times the venus next to each other.

Surface Example 3: Interactions with WEM

Surface Example 3: Interactions with WEM

Introduction

In these examples, we are showing 2 different possibilities to interact with a WEM:

  • Scale, rotate and move a WEM in a scene
  • Modify a WEM in a scene

Scale, rotate and move a WEM in a scene

We are using a SoTransformerDragger module to apply transformations on a 3D WEM object via mouse interactions.

Surface Example 4: Interactively moving WEM

Surface Example 4: Interactively moving WEM

Introduction

In this example, we like to interactively move WEMs using SoDragger modules insight a viewer.

Develop your network

Interactively translating objects in 3D using SoDragger modules

Add and connect the following modules as shown. In the panel of the module WEMInitialize select the Model Octasphere. After that, open the viewer SoExaminerViewer and make sure to select the Interaction Mode. Now, you are able to click on the presented Octaspehere and move it alongside one axis. The following modules are involved in the interactions:

Surface Example 5: WEM - Primitive Value Lists

Surface Example 5: WEM - Primitive Value Lists

Introduction

WEMs do not only contain the coordinates of nodes and surfaces, they can also contain additional information. These information are stored in so called Primitive Value Lists (PVLs). Every node, every surface and every edge can contains such a list. In these lists, you can for example store the color of the node or specific patient information. These information can be used for visualization or for further statistical analysis.

Example 1: Distance between Markers

Example 1: Calculating the distance between markers

Introduction

In this example, we will measure the distance between one position in an image to a list of markers.

Steps to do

Develop your network

Add the following modules and connect them as shown.

We changed the names of the modules SoView2DMarkerEditor and XMarkerLIstContainer, to distinguish these modules from two similar modules we will add later on. Open the panel of SoView2DMarkerEditor and select the tab Drawing. Now chose the Color red.

assimp

Asset-Importer-Lib (assimp)

Introduction

Assimp (Asset-Importer-Lib) is a library to load and process geometric scenes from various 3D data formats.

This chapter provides some examples of how 3D formats can be imported into MeVisLab. In general you always need a SoSceneLoader module. The SoSceneLoader allows to load meshes as Open Inventor points/lines/triangles/faces using the Open Asset Import Library.

SoSceneLoader

SoSceneLoader

You can also use the SoSceneWriter module to export your 3D scenes from MeVisLab into any of the output formats listed below.

Example 1: 3D Printing in MeVisLab

Example 1: 3D Printing in MeVisLab

Introduction

This example uses the assimp library to load a 3D file and save the file as *.stl for 3D printing.

Steps to do

Develop your network

Add the modules SoSceneLoader, SoBackground and SoExaminerViewer to your workspace and connect them as seen below.

Example Network

Example Network

Open the 3D file

Select the file vtkCow.obj from MeVisLab demo data directory. Open SoExaminerViewer and inspect the scene. You will see a 3D cow.

\ No newline at end of file +. If you like to know which WEM formats can be imported into MeVisLab, take a look at the assimp documentation here.

Surface Example 1: Creation of WEMs

Surface Example 1: Create Winged Edge Mesh out of voxel images and CSOs

Introduction

In this example you will learn how to create a Winged Edge Mesh (WEM). There are several approaches on creating WEMs, a few of them are shown in this example. Instead of creating WEMs, they can also be imported, see chapter Surface Objects (WEM).

Steps to do

From image to surface: Generating WEMs out of voxel images

At first, we will create a WEM out of a voxel image using the module WEMIsoSurface. Add and connect the shown modules. Load the image $(DemoDataPath)/Bone.tiff and set the Iso Min. Value in the panel of WEMIsoSurface to 1200. Tick the box Use image max. value. The module WEMIsoSurface creates surface objects out of all voxels with an Iso value equal or above 1200 (and smaller than the image max value). The module SoWEMRenderer can now be used to generate an Open Inventor scene, which can be displayed by the module SoExaminerViewer.

Surface Example 2: Processing and Modification of WEM

Surface Example 2: Processing and Modification of WEM

Introduction

In this example, you will learn how to modify and process WEMs.

Steps to do

Develop your network

Modification of WEMs

Use the module WEMLoad to load the file venus.off. Then add and connect the shown modules. We like to display the WEM venus two times, one time this WEM is modified. You can use the module WEMModify to apply modifications. In its panel, change the scale and the size of the WEM. Now you see two times the venus next to each other.

Surface Example 3: Interactions with WEM

Surface Example 3: Interactions with WEM

Introduction

In these examples, we are showing 2 different possibilities to interact with a WEM:

  • Scale, rotate and move a WEM in a scene
  • Modify a WEM in a scene

Scale, rotate and move a WEM in a scene

We are using a SoTransformerDragger module to apply transformations on a 3D WEM object via mouse interactions.

Surface Example 4: Interactively moving WEM

Surface Example 4: Interactively moving WEM

Introduction

In this example, we like to interactively move WEMs using SoDragger modules insight a viewer.

Develop your network

Interactively translating objects in 3D using SoDragger modules

Add and connect the following modules as shown. In the panel of the module WEMInitialize select the Model Octasphere. After that, open the viewer SoExaminerViewer and make sure to select the Interaction Mode. Now, you are able to click on the presented Octaspehere and move it alongside one axis. The following modules are involved in the interactions:

Surface Example 5: WEM - Primitive Value Lists

Surface Example 5: WEM - Primitive Value Lists

Introduction

WEMs do not only contain the coordinates of nodes and surfaces, they can also contain additional information. These information are stored in so called Primitive Value Lists (PVLs). Every node, every surface and every edge can contains such a list. In these lists, you can for example store the color of the node or specific patient information. These information can be used for visualization or for further statistical analysis.

Example 1: Distance between Markers

Example 1: Calculating the distance between markers

Introduction

In this example, we will measure the distance between one position in an image to a list of markers.

Steps to do

Develop your network

Add the following modules and connect them as shown.

We changed the names of the modules SoView2DMarkerEditor and XMarkerLIstContainer, to distinguish these modules from two similar modules we will add later on. Open the panel of SoView2DMarkerEditor and select the tab Drawing. Now chose the Color red.

assimp

Asset-Importer-Lib (assimp)

Introduction

Assimp (Asset-Importer-Lib) is a library to load and process geometric scenes from various 3D data formats.

This chapter provides some examples of how 3D formats can be imported into MeVisLab. In general you always need a SoSceneLoader module. The SoSceneLoader allows to load meshes as Open Inventor points/lines/triangles/faces using the Open Asset Import Library.

SoSceneLoader

SoSceneLoader

You can also use the SoSceneWriter module to export your 3D scenes from MeVisLab into any of the output formats listed below.

Example 1: 3D Printing in MeVisLab

Example 1: 3D Printing in MeVisLab

Introduction

This example uses the assimp library to load a 3D file and save the file as *.stl for 3D printing.

Steps to do

Develop your network

Add the modules SoSceneLoader, SoBackground and SoExaminerViewer to your workspace and connect them as seen below.

Example Network

Example Network

Open the 3D file

Select the file vtkCow.obj from MeVisLab demo data directory. Open SoExaminerViewer and inspect the scene. You will see a 3D cow.

\ No newline at end of file diff --git a/tags/3d/index.xml b/tags/3d/index.xml index ad6f009d1..1563dca95 100644 --- a/tags/3d/index.xml +++ b/tags/3d/index.xml @@ -327,6 +327,11 @@ shown. The module <code>VoxelizeCSO</code> allows to convert CSOs into vox </p> </p> <p>You can also use the <code>SoSceneWriter</code> module to export your 3D scenes from MeVisLab into any of the output formats listed below.</p>
Example 1: 3D Printing in MeVisLabhttps://mevislab.github.io/examples/tutorials/thirdparty/assimp/assimpexample1/Wed, 15 Jun 2022 08:56:33 +0200https://mevislab.github.io/examples/tutorials/thirdparty/assimp/assimpexample1/<h1 id="example-1-3d-printing-in-mevislab">Example 1: 3D Printing in MeVisLab</h1> +<div class="alert alert-secondary d-flex align-items-center" role="alert"> + <div> + <img width="100px" src="https://mevislab.github.io/examples/images/youtube.svg" />&nbsp;&nbsp;<a href="https://www.youtube.com/watch?v=82ysCYNTyso" target="_blank"><img width="100px" src="https://img.youtube.com/vi/82ysCYNTyso/0.jpg" /></a>&nbsp;&nbsp;&nbsp;This example is also available on <a href="https://www.youtube.com/watch?v=82ysCYNTyso" target="_blank">YouTube</a>. + </div> +</div> <h2 id="introduction">Introduction</h2> <p>This example uses the assimp library to load a 3D file and save the file as *.stl for 3D printing.</p> <h2 id="steps-to-do">Steps to do</h2> diff --git a/tags/assimp/index.html b/tags/assimp/index.html index add756573..ec18a25b6 100644 --- a/tags/assimp/index.html +++ b/tags/assimp/index.html @@ -26,4 +26,4 @@ PyTorch

Assimp

assimp

Asset-Importer-Lib (assimp)

Introduction

Assimp (Asset-Importer-Lib) is a library to load and process geometric scenes from various 3D data formats.

This chapter provides some examples of how 3D formats can be imported into MeVisLab. In general you always need a SoSceneLoader module. The SoSceneLoader allows to load meshes as Open Inventor points/lines/triangles/faces using the Open Asset Import Library.

SoSceneLoader

SoSceneLoader

You can also use the SoSceneWriter module to export your 3D scenes from MeVisLab into any of the output formats listed below.

Example 1: 3D Printing in MeVisLab

Example 1: 3D Printing in MeVisLab

Introduction

This example uses the assimp library to load a 3D file and save the file as *.stl for 3D printing.

Steps to do

Develop your network

Add the modules SoSceneLoader, SoBackground and SoExaminerViewer to your workspace and connect them as seen below.

Example Network

Example Network

Open the 3D file

Select the file vtkCow.obj from MeVisLab demo data directory. Open SoExaminerViewer and inspect the scene. You will see a 3D cow.

\ No newline at end of file +

Assimp

assimp

Asset-Importer-Lib (assimp)

Introduction

Assimp (Asset-Importer-Lib) is a library to load and process geometric scenes from various 3D data formats.

This chapter provides some examples of how 3D formats can be imported into MeVisLab. In general you always need a SoSceneLoader module. The SoSceneLoader allows to load meshes as Open Inventor points/lines/triangles/faces using the Open Asset Import Library.

SoSceneLoader

SoSceneLoader

You can also use the SoSceneWriter module to export your 3D scenes from MeVisLab into any of the output formats listed below.

Example 1: 3D Printing in MeVisLab

Example 1: 3D Printing in MeVisLab

Introduction

This example uses the assimp library to load a 3D file and save the file as *.stl for 3D printing.

Steps to do

Develop your network

Add the modules SoSceneLoader, SoBackground and SoExaminerViewer to your workspace and connect them as seen below.

Example Network

Example Network

Open the 3D file

Select the file vtkCow.obj from MeVisLab demo data directory. Open SoExaminerViewer and inspect the scene. You will see a 3D cow.

\ No newline at end of file diff --git a/tags/assimp/index.xml b/tags/assimp/index.xml index 49758780d..f45fc86a5 100644 --- a/tags/assimp/index.xml +++ b/tags/assimp/index.xml @@ -8,6 +8,11 @@ </p> </p> <p>You can also use the <code>SoSceneWriter</code> module to export your 3D scenes from MeVisLab into any of the output formats listed below.</p>
Example 1: 3D Printing in MeVisLabhttps://mevislab.github.io/examples/tutorials/thirdparty/assimp/assimpexample1/Wed, 15 Jun 2022 08:56:33 +0200https://mevislab.github.io/examples/tutorials/thirdparty/assimp/assimpexample1/<h1 id="example-1-3d-printing-in-mevislab">Example 1: 3D Printing in MeVisLab</h1> +<div class="alert alert-secondary d-flex align-items-center" role="alert"> + <div> + <img width="100px" src="https://mevislab.github.io/examples/images/youtube.svg" />&nbsp;&nbsp;<a href="https://www.youtube.com/watch?v=82ysCYNTyso" target="_blank"><img width="100px" src="https://img.youtube.com/vi/82ysCYNTyso/0.jpg" /></a>&nbsp;&nbsp;&nbsp;This example is also available on <a href="https://www.youtube.com/watch?v=82ysCYNTyso" target="_blank">YouTube</a>. + </div> +</div> <h2 id="introduction">Introduction</h2> <p>This example uses the assimp library to load a 3D file and save the file as *.stl for 3D printing.</p> <h2 id="steps-to-do">Steps to do</h2> diff --git a/tags/beginner/index.html b/tags/beginner/index.html index ed9fb9133..0b461738a 100644 --- a/tags/beginner/index.html +++ b/tags/beginner/index.html @@ -85,7 +85,7 @@ Help → Show Example Network -].

Curves

Curves in MeVisLab

Introduction

Curves can be used in MeVisLab to print the results of a function as two-dimensional mathematical curves into a diagram.

Curves in MeVisLab

Curves in MeVisLab

In the given example, only modules available in commercial MeVisLab Professional SDK have been used. The non-commercial MeVisLab Standard SDK provides more modules for curves.

Example 1: Drawing curves

Example 1: Drawing curves

Introduction

In this example, you will draw one or more curves into a diagram and define different styles for the curves.

Steps to do

Develop your network

A curve requires x- and y-coordinates to be printed. You can use the CurveCreator module as input for these coordinates. The SoDiagram2D draws the curves into a SoRenderArea. You can also define the style of the curves by using the StylePalette module.

assimp

Asset-Importer-Lib (assimp)

Introduction

Assimp (Asset-Importer-Lib) is a library to load and process geometric scenes from various 3D data formats.

This chapter provides some examples of how 3D formats can be imported into MeVisLab. In general you always need a SoSceneLoader module. The SoSceneLoader allows to load meshes as Open Inventor points/lines/triangles/faces using the Open Asset Import Library.

SoSceneLoader

SoSceneLoader

You can also use the SoSceneWriter module to export your 3D scenes from MeVisLab into any of the output formats listed below.

Example 1: 3D Printing in MeVisLab

Example 1: 3D Printing in MeVisLab

Introduction

This example uses the assimp library to load a 3D file and save the file as *.stl for 3D printing.

Steps to do

Develop your network

Add the modules SoSceneLoader, SoBackground and SoExaminerViewer to your workspace and connect them as seen below.

Example Network

Example Network

Open the 3D file

Select the file vtkCow.obj from MeVisLab demo data directory. Open SoExaminerViewer and inspect the scene. You will see a 3D cow.

Example 1: Module Setup

Example 1: Module Setup

Introduction

To be able to access the data needed for our grayscale distribution plots, we need a network consisting of a module that imports DICOM data, a module that differentiates between slices and another that ouputs histogram data.

Steps to do

Open up your MeVisLab workspace and add the modules LocalImage, SubImage and Histogram to it. +].

Curves

Curves in MeVisLab

Introduction

Curves can be used in MeVisLab to print the results of a function as two-dimensional mathematical curves into a diagram.

Curves in MeVisLab

Curves in MeVisLab

In the given example, only modules available in commercial MeVisLab Professional SDK have been used. The non-commercial MeVisLab Standard SDK provides more modules for curves.

Example 1: Drawing curves

Example 1: Drawing curves

Introduction

In this example, you will draw one or more curves into a diagram and define different styles for the curves.

Steps to do

Develop your network

A curve requires x- and y-coordinates to be printed. You can use the CurveCreator module as input for these coordinates. The SoDiagram2D draws the curves into a SoRenderArea. You can also define the style of the curves by using the StylePalette module.

assimp

Asset-Importer-Lib (assimp)

Introduction

Assimp (Asset-Importer-Lib) is a library to load and process geometric scenes from various 3D data formats.

This chapter provides some examples of how 3D formats can be imported into MeVisLab. In general you always need a SoSceneLoader module. The SoSceneLoader allows to load meshes as Open Inventor points/lines/triangles/faces using the Open Asset Import Library.

SoSceneLoader

SoSceneLoader

You can also use the SoSceneWriter module to export your 3D scenes from MeVisLab into any of the output formats listed below.

Example 1: 3D Printing in MeVisLab

Example 1: 3D Printing in MeVisLab

Introduction

This example uses the assimp library to load a 3D file and save the file as *.stl for 3D printing.

Steps to do

Develop your network

Add the modules SoSceneLoader, SoBackground and SoExaminerViewer to your workspace and connect them as seen below.

Example Network

Example Network

Open the 3D file

Select the file vtkCow.obj from MeVisLab demo data directory. Open SoExaminerViewer and inspect the scene. You will see a 3D cow.

Example 1: Module Setup

Example 1: Module Setup

Introduction

To be able to access the data needed for our grayscale distribution plots, we need a network consisting of a module that imports DICOM data, a module that differentiates between slices and another that ouputs histogram data.

Steps to do

Open up your MeVisLab workspace and add the modules LocalImage, SubImage and Histogram to it. Connect the output of LocalImage to the input of SubImage and the output of SubImage with the input of Histogram. If you feel like using a shortcut, you can also download the base network below and open it in your MeVisLab.

Example 3: Slice Comparison

Example 3: Slice Comparison

Introduction

We will adapt the previously created macro module to be able to overlay two defined slices to compare their grayscale distributions.

  • The module we are adapting has been set up in the Example 1: Module Setup tutorial.
  • The panel and two-dimensional plotting functionality has been added in [Example 2: 2D Plotting] (/tutorials/thirdparty/matplotlib/2dplotting).

Steps to do

At first, we will extend the panel: Open your BaseNetwork macro module within an empty MeVisLab workspace and select the .script file from its related files.

\ No newline at end of file diff --git a/tags/beginner/index.xml b/tags/beginner/index.xml index 733e2754a..6d884c6d8 100644 --- a/tags/beginner/index.xml +++ b/tags/beginner/index.xml @@ -587,6 +587,11 @@ All of these funtionalities will be addressed in this chapter.</p> </p> </p> <p>You can also use the <code>SoSceneWriter</code> module to export your 3D scenes from MeVisLab into any of the output formats listed below.</p>
Example 1: 3D Printing in MeVisLabhttps://mevislab.github.io/examples/tutorials/thirdparty/assimp/assimpexample1/Wed, 15 Jun 2022 08:56:33 +0200https://mevislab.github.io/examples/tutorials/thirdparty/assimp/assimpexample1/<h1 id="example-1-3d-printing-in-mevislab">Example 1: 3D Printing in MeVisLab</h1> +<div class="alert alert-secondary d-flex align-items-center" role="alert"> + <div> + <img width="100px" src="https://mevislab.github.io/examples/images/youtube.svg" />&nbsp;&nbsp;<a href="https://www.youtube.com/watch?v=82ysCYNTyso" target="_blank"><img width="100px" src="https://img.youtube.com/vi/82ysCYNTyso/0.jpg" /></a>&nbsp;&nbsp;&nbsp;This example is also available on <a href="https://www.youtube.com/watch?v=82ysCYNTyso" target="_blank">YouTube</a>. + </div> +</div> <h2 id="introduction">Introduction</h2> <p>This example uses the assimp library to load a 3D file and save the file as *.stl for 3D printing.</p> <h2 id="steps-to-do">Steps to do</h2> diff --git a/tags/stl/index.html b/tags/stl/index.html index 75546f2ab..cbc7cb670 100644 --- a/tags/stl/index.html +++ b/tags/stl/index.html @@ -26,4 +26,4 @@ PyTorch

Stl

Example 1: 3D Printing in MeVisLab

Example 1: 3D Printing in MeVisLab

Introduction

This example uses the assimp library to load a 3D file and save the file as *.stl for 3D printing.

Steps to do

Develop your network

Add the modules SoSceneLoader, SoBackground and SoExaminerViewer to your workspace and connect them as seen below.

Example Network

Example Network

Open the 3D file

Select the file vtkCow.obj from MeVisLab demo data directory. Open SoExaminerViewer and inspect the scene. You will see a 3D cow.

\ No newline at end of file +

Stl

Example 1: 3D Printing in MeVisLab

Example 1: 3D Printing in MeVisLab

Introduction

This example uses the assimp library to load a 3D file and save the file as *.stl for 3D printing.

Steps to do

Develop your network

Add the modules SoSceneLoader, SoBackground and SoExaminerViewer to your workspace and connect them as seen below.

Example Network

Example Network

Open the 3D file

Select the file vtkCow.obj from MeVisLab demo data directory. Open SoExaminerViewer and inspect the scene. You will see a 3D cow.

\ No newline at end of file diff --git a/tags/stl/index.xml b/tags/stl/index.xml index d583a2bb8..40a2bcece 100644 --- a/tags/stl/index.xml +++ b/tags/stl/index.xml @@ -1,4 +1,9 @@ Stl on MeVisLab Exampleshttps://mevislab.github.io/examples/tags/stl/Recent content in Stl on MeVisLab ExamplesHugoen-usWed, 15 Jun 2022 08:56:33 +0200Example 1: 3D Printing in MeVisLabhttps://mevislab.github.io/examples/tutorials/thirdparty/assimp/assimpexample1/Wed, 15 Jun 2022 08:56:33 +0200https://mevislab.github.io/examples/tutorials/thirdparty/assimp/assimpexample1/<h1 id="example-1-3d-printing-in-mevislab">Example 1: 3D Printing in MeVisLab</h1> +<div class="alert alert-secondary d-flex align-items-center" role="alert"> + <div> + <img width="100px" src="https://mevislab.github.io/examples/images/youtube.svg" />&nbsp;&nbsp;<a href="https://www.youtube.com/watch?v=82ysCYNTyso" target="_blank"><img width="100px" src="https://img.youtube.com/vi/82ysCYNTyso/0.jpg" /></a>&nbsp;&nbsp;&nbsp;This example is also available on <a href="https://www.youtube.com/watch?v=82ysCYNTyso" target="_blank">YouTube</a>. + </div> +</div> <h2 id="introduction">Introduction</h2> <p>This example uses the assimp library to load a 3D file and save the file as *.stl for 3D printing.</p> <h2 id="steps-to-do">Steps to do</h2> diff --git a/tags/tutorial/index.html b/tags/tutorial/index.html index d211628d6..9a3c61bfe 100644 --- a/tags/tutorial/index.html +++ b/tags/tutorial/index.html @@ -111,7 +111,7 @@ This step requires a valid MeVisLab Webtoolkit license. It extends the MeVisLab SDK so that you can develop web macro modules. Free evaluation licenses of the MeVisLab Webtoolkit, time-limited to 3 months, can be requested at sales(at)mevislab.de.

Steps to do

Make sure to have your macro module from previous Step 2 available.

Chapter VIII: ThirdParty components

MeVisLab Tutorial Chapter VIII

Using ThirdParty software integrated into MeVisLab

MeVisLab is equipped with a lot of useful software right out of the box, like the Insight Segmentation and Registration Toolkit (ITK) or the Visualization Toolkit (VTK). This chapter works as a guide on how to use some of the third party components integrated in MeVisLab for your projects via Python scripting.

OpenCV

Open Source Computer Vision Library (OpenCV)

Introduction

OpenCV (Open Source Computer Vision Library) is an open source computer vision and machine learning software library.

This chapter provides some examples how to use OpenCV in MeVisLab.

Other resources

You can find a lot of OpenCV examples and tutorials on their website.

Example 1: WebCam access with OpenCV

Example 1: WebCam access with OpenCV

Introduction

In this example, we are using the PythonImage module and access your WebCam to show the video in a View2D.

Steps to do

Creating the network to be used for testing

Add the modules to your workspace and connect them as seen below.

Example Network

Example Network

The viewer is empty because the image needs to be set via Python scripting.

Example 2: Face Detection with OpenCV

Example 2: Face Detection with OpenCV

Introduction

This example uses the OpenCV WebCam Python script and adds a basic face detection.

Steps to do

Open Example 1

Add the macro module developed in Example 1 to your workspace.

assimp

Asset-Importer-Lib (assimp)

Introduction

Assimp (Asset-Importer-Lib) is a library to load and process geometric scenes from various 3D data formats.

This chapter provides some examples of how 3D formats can be imported into MeVisLab. In general you always need a SoSceneLoader module. The SoSceneLoader allows to load meshes as Open Inventor points/lines/triangles/faces using the Open Asset Import Library.

SoSceneLoader

SoSceneLoader

You can also use the SoSceneWriter module to export your 3D scenes from MeVisLab into any of the output formats listed below.

Example 1: 3D Printing in MeVisLab

Example 1: 3D Printing in MeVisLab

Introduction

This example uses the assimp library to load a 3D file and save the file as *.stl for 3D printing.

Steps to do

Develop your network

Add the modules SoSceneLoader, SoBackground and SoExaminerViewer to your workspace and connect them as seen below.

Example Network

Example Network

Open the 3D file

Select the file vtkCow.obj from MeVisLab demo data directory. Open SoExaminerViewer and inspect the scene. You will see a 3D cow.

PyTorch

PyTorch

Introduction

PyTorch is a machine learning framework based on the Torch library, used for applications such as Computer Vision and Natural Language Processing, originally developed by Meta AI and now part of the Linux Foundation umbrella.

A lot of AI frameworks can be used within MeVisLab. We currently do not provide a preintegrated AI framework though as we try to avoid compatibility issues, and AI frameworks are very fast-moving by nature.

Example 1: Installing PyTorch using the PythonPip module

Example 1: Installing PyTorch using the PythonPip module

Introduction

The module PythonPip allows you to install additional Python packages to be used in MeVisLab.

Steps to do

Open Example 1

Add the macro module developed in Example 1 to your workspace.

assimp

Asset-Importer-Lib (assimp)

Introduction

Assimp (Asset-Importer-Lib) is a library to load and process geometric scenes from various 3D data formats.

This chapter provides some examples of how 3D formats can be imported into MeVisLab. In general you always need a SoSceneLoader module. The SoSceneLoader allows to load meshes as Open Inventor points/lines/triangles/faces using the Open Asset Import Library.

SoSceneLoader

SoSceneLoader

You can also use the SoSceneWriter module to export your 3D scenes from MeVisLab into any of the output formats listed below.

Example 1: 3D Printing in MeVisLab

Example 1: 3D Printing in MeVisLab

Introduction

This example uses the assimp library to load a 3D file and save the file as *.stl for 3D printing.

Steps to do

Develop your network

Add the modules SoSceneLoader, SoBackground and SoExaminerViewer to your workspace and connect them as seen below.

Example Network

Example Network

Open the 3D file

Select the file vtkCow.obj from MeVisLab demo data directory. Open SoExaminerViewer and inspect the scene. You will see a 3D cow.

PyTorch

PyTorch

Introduction

PyTorch is a machine learning framework based on the Torch library, used for applications such as Computer Vision and Natural Language Processing, originally developed by Meta AI and now part of the Linux Foundation umbrella.

A lot of AI frameworks can be used within MeVisLab. We currently do not provide a preintegrated AI framework though as we try to avoid compatibility issues, and AI frameworks are very fast-moving by nature.

Example 1: Installing PyTorch using the PythonPip module

Example 1: Installing PyTorch using the PythonPip module

Introduction

The module PythonPip allows you to install additional Python packages to be used in MeVisLab.

The module either allows to install packages into the global MeVisLab installation directory, or into your defined user package. We will use the user package directory, because then the installed packages remain available in your packages even if you uninstall or update MeVisLab. In addition to that, no administrative rights are necessary if you did install MeVisLab for all users.

Example 2: Brain Parcellation using PyTorch

Example 2: Brain Parcellation using PyTorch

Introduction

In this example, you are using a pre-trained PyTorch deep learning model (HighRes3DNet) to perform a full brain parcellation. HighRes3DNet is a 3D residual network presented by Li et al. in On the Compactness, Efficiency, and Representation of 3D Convolutional Networks: Brain Parcellation as a Pretext Task.

Steps to do

Add a LocalImage module to your workspace and select the file MRI_Head.dcm. For PyTorch it is necessary to resample the data to a defined size. Add a Resample3D module to the LocalImage and open the panel. Change Keep Constant to Voxel Size and define Image Size as 176, 217, 160.

Example 3: Segment persons in webcam videos

Example 3: Segment persons in webcam videos

Introduction

This tutorial is based on Example 2: Face Detection with OpenCV. You can re-use some of the scripts already developed in the other tutorial.

Steps to do

Add the macro module developed in the previous example to your workspace.

WebCamTest module

WebCamTest module

Open the internal network of the module via middle mouse button Middle Mouse Button / Mouse Wheel and right click diff --git a/tags/tutorial/index.xml b/tags/tutorial/index.xml index a34ba32af..d8554fb06 100644 --- a/tags/tutorial/index.xml +++ b/tags/tutorial/index.xml @@ -1001,6 +1001,11 @@ Free evaluation licenses of the <strong>MeVisLab Webtoolkit</strong>, time </p> </p> <p>You can also use the <code>SoSceneWriter</code> module to export your 3D scenes from MeVisLab into any of the output formats listed below.</p>Example 1: 3D Printing in MeVisLabhttps://mevislab.github.io/examples/tutorials/thirdparty/assimp/assimpexample1/Wed, 15 Jun 2022 08:56:33 +0200https://mevislab.github.io/examples/tutorials/thirdparty/assimp/assimpexample1/<h1 id="example-1-3d-printing-in-mevislab">Example 1: 3D Printing in MeVisLab</h1> +<div class="alert alert-secondary d-flex align-items-center" role="alert"> + <div> + <img width="100px" src="https://mevislab.github.io/examples/images/youtube.svg" />&nbsp;&nbsp;<a href="https://www.youtube.com/watch?v=82ysCYNTyso" target="_blank"><img width="100px" src="https://img.youtube.com/vi/82ysCYNTyso/0.jpg" /></a>&nbsp;&nbsp;&nbsp;This example is also available on <a href="https://www.youtube.com/watch?v=82ysCYNTyso" target="_blank">YouTube</a>. + </div> +</div> <h2 id="introduction">Introduction</h2> <p>This example uses the assimp library to load a 3D file and save the file as *.stl for 3D printing.</p> <h2 id="steps-to-do">Steps to do</h2> diff --git a/tutorials/index.xml b/tutorials/index.xml index 6181f6e4c..231578ddb 100644 --- a/tutorials/index.xml +++ b/tutorials/index.xml @@ -992,6 +992,11 @@ Free evaluation licenses of the <strong>MeVisLab Webtoolkit</strong>, time </p> </p> <p>You can also use the <code>SoSceneWriter</code> module to export your 3D scenes from MeVisLab into any of the output formats listed below.</p>Example 1: 3D Printing in MeVisLabhttps://mevislab.github.io/examples/tutorials/thirdparty/assimp/assimpexample1/Wed, 15 Jun 2022 08:56:33 +0200https://mevislab.github.io/examples/tutorials/thirdparty/assimp/assimpexample1/<h1 id="example-1-3d-printing-in-mevislab">Example 1: 3D Printing in MeVisLab</h1> +<div class="alert alert-secondary d-flex align-items-center" role="alert"> + <div> + <img width="100px" src="https://mevislab.github.io/examples/images/youtube.svg" />&nbsp;&nbsp;<a href="https://www.youtube.com/watch?v=82ysCYNTyso" target="_blank"><img width="100px" src="https://img.youtube.com/vi/82ysCYNTyso/0.jpg" /></a>&nbsp;&nbsp;&nbsp;This example is also available on <a href="https://www.youtube.com/watch?v=82ysCYNTyso" target="_blank">YouTube</a>. + </div> +</div> <h2 id="introduction">Introduction</h2> <p>This example uses the assimp library to load a 3D file and save the file as *.stl for 3D printing.</p> <h2 id="steps-to-do">Steps to do</h2> diff --git a/tutorials/thirdparty/assimp/assimpexample1/index.html b/tutorials/thirdparty/assimp/assimpexample1/index.html index 2604a6abc..9e6c8db93 100644 --- a/tutorials/thirdparty/assimp/assimpexample1/index.html +++ b/tutorials/thirdparty/assimp/assimpexample1/index.html @@ -31,7 +31,7 @@ assimp 3D 3D Printing -stl

Example 1: 3D Printing in MeVisLab

Introduction

This example uses the assimp library to load a 3D file and save the file as *.stl for 3D printing.

Steps to do

Develop your network

Add the modules SoSceneLoader, SoBackground and SoExaminerViewer to your workspace and connect them as seen below.

Example Network

Example Network

Open the 3D file

Select the file vtkCow.obj from MeVisLab demo data directory. Open SoExaminerViewer and inspect the scene. You will see a 3D cow.