Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Updated for 8.8.1 - added info about EM AI Prediction and Expert Mode options and did some general clean-up of the page

The Mesh Contour Editor is a tool for manually creating and editing 3D mesh surfaces. While there are options to manually paint, fill, and erase, there are also predictive modes that speed for speeding up the workflow. You may use the Mesh Contour Editor to edit objects that were generated by recipes, to create/edit mesh surfaces in order to obtain measurements for 3D objects, or to create/edit mesh surfaces to use as regions of interest (ROIs) for recipes, or to create/edit mesh surfaces for , among other purposes. 

Interface

The Mesh Contour Editor is one of eight tools found in the 3D Tools tab in the Analysis Panel. Go to 3D View or 3D Plane View to show the 3D Tools tab. Click on the 3D Tools tab , and click then on the Mesh Contour Editor icon to launch the tool. The Mesh Contour Editor interface, with all advanced sections expanded, is shown in the "Mesh Contour Editor GUI" diagram figure below. The interface has four main sections that are divided by horizontal white lines:

  • The Input Options let you specify whether you will be creating or editing as well as which image channel will be used. 
  • The Painting Tools and Options section provides different painting options, including predictive modes.
  • The Slice-Traversal Controls allow you to step through image slices as well as copy /and paste painted regions between slices.
  • The Output Options allow you to specify where the created/edited mesh surface(s) will be output to and which post-processing steps will be applied.

When the Mesh Contour Editor is launched, an ortho plane is shown , and any existing clipping planes are hidden: the . The tool is designed for painting slice - by - slice on 3D images.

Image Removed

Image Added

Mesh Contour Editor GUI with a colored box around each section

Input Options

The input and starting optionsInput Options, pertaining to whether or not a mesh will be created from scratch and to which image channel is used for predictive painting, are described in the table below:

OptionIconDescriptionStart New Mesh Surface

Image Removed

Removes

outlined in red in the figure above. The Start New button removes any existing painted regions, allowing you to start with a clean slate, and enables painting

. The Edit Existing

Mesh Surface

Image Removed

Prepares

button prepares a selected mesh surface

or object

for editing

Select

. The channel to use for prediction may be selected from the Input Channel

Image Removed

Allows you to choose which image channel the Mesh Contour Editor will use to generate painting predictions

Painting Tools and Options

The options

menu.

Painting Tools and Options

The Painting Tools and Options section is outlined in purple in the "Mesh Contour Editor GUI with a colored box around each section" figure above. The Enable Painting button allows/restricts painting operations. Options for manual painting and erasing are described in the following table below:

NameIconDescription
Enable Painting

Image Removed

Allows/restricts painting, erasing, and floodfilling
Paint Brush

Image Modified

Toggles the Paint Brush tool, with which you can click and drag the mouse on an image slice to paint; use the Size slider to change the brush size
Eraser

Image Modified

Toggles the Eraser tool, with which you can click and drag the mouse to remove parts of the mesh surface that is being created or edited
Change Brush Size

Image Removed

Allows you
; use the Size slider to change the
brush size for both the Paint Brush and Eraser
eraser size
Floodfill Brush

Image Modified

Toggles the Floodfill Brush tool, with which you can click in regions that are enclosed by painted borders to fill them
Remove Data from Slice

Image Modified

Removes all data for the mesh surface that is being created or edited from the current image slice 
Remove All Drawn Data

Image Modified

Removes all data for the mesh surface that is being created or edited from all image slices

Advanced painting options

To access the advanced painting options, click on the Expand icon next to Advanced in the Painting Tools and Options section. By default, Auto Floodfill, Auto Step, and Auto Draw are on, while EM AI Prediction, and Replace Existing and , Hide Surface, and Expert Mode are off. Descriptions of the five advanced painting options are in the table below:

Option
Icon
Description
Auto Floodfill

Image Removed

Enables/disables automatic filling of painted regions, which includes connecting the Enables/disables automatic stepping
Painted regions are automatically filled. The ends of brushstrokes are connected to create enclosed regions when applicable.
Auto Step

Image Removed

Enables/disables painting predictions
Aivia automatically steps between image slices once a region has been painted and floodfilled.
Auto Draw

Image Removed

Predictions are made that are based on painted regions on the previous slice as well as image data.
EM AI Prediction (beta)Auto Draw predictions are made using an alternative model that is designed for EM images.
Replace Existing
Data

Image Removed

Enables/disables the replacement of existing Hides/shows the
Existing painting data is replaced with Auto Draw predictions.
Hide Surface 

Image Removed

The mesh surface that is being created/edited is hidden.
Expert ModeMost warning messages are suppressed.

Slice-Traversal Controls

Slice-Traversal button functions

The Slice-Traversal Controls section is outlined in lime green in the "Mesh Contour Editor GUI with a colored box around each section" figure and includes buttons that control the ortho-plane/slice position within the image volume. The functions of each button are described in the "Slice-Traversal button functions" figure below.

Image Removed

Step to Bottom button Image Added and Step to Top button Image Added move the ortho plane to the bottom and top faces (relative to the image origin) of the image respectively. The Step Down button Image Added and Step Up button Image Added move the ortho plane to the next slice in the downward and upward directions respectively.

While Auto Step mode is used, the stepping direction is indicated by a gray box around the Step Down button or Step Up button (see below).

Image Added

Slice-traversal buttons with the Auto Step direction as down

 Advanced slice-traversal options

Copy Slice Data

Image Removed

Copies

To access the advanced slice-traversal options, click on the Expand icon next to Advanced in the Slice-Traversal Controls section. The advanced slice-traversal options are described in the following table:

OptionIconDescription

Copy Slice button copies the painting data

from

that is on the current

image

slice

, and the Paste Slice

Data

Image Removed

Pastes the

button pastes previously copied painting data onto the current image slice.

Output Options

The buttons and menus for choosing when/where to output the created/edited mesh surface(s) as well as how to post-process the created/edited mesh surface(s) are explained in the table below:

OptionIconDescriptionSelect Output Set

Image Removed

Allows you to select the object set that the newly created mesh surface(s) will be output toSmooth

Image Removed

Toggles

outlined in blue in the "Mesh Contour Editor GUI with a colored box around each section" figure. The Smooth icon Image Added may be used to toggle smoothing of the created mesh surface(s)

. The Generate Multiple Surfaces

Image Removed

Toggles whether

icon Image Added may be used to toggle whether or not painted surfaces that do not touch will be created as multiple mesh surfaces

or notComplete Mesh

Image Removed

Completes

. The Output To menu allows you to select the object set that the newly created mesh surface(s) will be output to, and the Complete Mesh button finishes generating the mesh surface(s) and adds it/them to the specified object set.

Hot keys

Keyboard shortcuts for the Mesh Contour Editor are described in the table below:

ShortcutFunction
ShiftTemporarily disables (while pressed) painting, erasing, and floodfilling, which can be useful when changing the image position or camera angle while creating/editing a mesh surface
ESwitches between the Paint Brush and Eraser
FToggles the Floodfill Brush
Ctrl + Shift + Mouse WheelChanges the brush size
HHides/
shows
Shows the mesh surface that is being created/edited
SSteps to the next plane down (relative to the image origin)
WSteps to the
nest
next plane up (relative to the image origin)
CCompletes the mesh surface(s) and adds it/them to the specified object set

Using the Mesh Contour Editor

To launch the Mesh Contour Editor, click on the 3D Tools tab in the Analysis Panel in Aivia , and then click on the Mesh Contour Editor icon from in the 3D Tools toolbar. This will open the Mesh Contour Editor interface, show an ortho plane in the Image Viewer, and hide any existing clipping planes 

Start new mesh surfaces

If nothing has yet been painted using the Mesh Contour Editor, toggle on Enable Painting Image Removed in the Painting Tools and Options section to  to start creating a new mesh surface. If there are existing painted regions that have not been completed and output to an object set, click the Start New Mesh Surface button Image Removed in the Input Options section to button to discard the existing painted regions and start fresh.

Edit a mesh surface

To edit an existing mesh, select the mesh in the Image Viewer , and then click on the Edit Existing Mesh Surfacebutton Image Removed in the Input Options section. A pop-up window will show the progress Aivia has made in preparing the mesh for editing. Once the existing mesh is ready for editing, you may paint, erase, etc. as you would when creating a new mesh surface.

Configure the ortho plane

You may have to move the ortho plane so that it intersects the region where you would like to create a mesh surface, and you may also wish to position the ortho plane at the edge of the region of interest so that you can step through image slices in one direction as you paint the mesh surface. The Step buttons in the Slice-Traversal Controls section as well as the S and W keys on your keyboard (for Step Down and Step Up respectively) can be used to position the ortho plane, though the .

The Adjust Plane Position bar and Position textbox for the ortho plane, found in the Clipping Planes & Ortho Planes panel, can also be used to change the ortho plane position. (Note that you may also rotate the ortho plane using the Plane Orientation control  in the Clipping Planes & Ortho Planes panel or use the control widget for the ortho plane.) You can click on the Toggle Volume Clipping icon  and Toggle Mesh Clipping icon  for the ortho plane to change how much of the image and its shown mesh surfaces are displayed; it is easiest, in general, to create/edit mesh surfaces while both volume clipping and mesh clipping are toggled on.

Paint, erase, and floodfill

The Paint Brush, Eraser, and Floodfill Brush tools are only enabled when Enable Painting Image Removed is toggled on in the Painting Tools and Options section. You may hold down Shift on your keyboard to temporarily disable painting while you adjust the camera angle, move the image in the Image Viewer, etc. Click  Click on the Paint Brush icon , Eraser icon , or Floodfill Brush icon  to select the respective corresponding painting toolstool. (You may also press E on your keyboard to switch between the Paint Brush and Eraser or press F to toggle the Floodfill Brush.) When using the Paint Brush, the cursor will appear as a blue square; click . Click and drag the cursor across the image to paint. The Eraser is also used by clicking and dragging the mouse, but the cursor is red when the Eraser is toggled on. Use the Change Brush Size slider Image Removed slider (or hold down Ctrl and Shift while scrolling with the mouse wheel) to change the brush size, which applies to both the Paint Brush and Eraser tools. Click inside the border of an enclosed region to fill it with the Floodfill Brush. You may hold down Shift on your keyboard to temporarily disable a painting tool while you adjust the camera angle, move the image in the Image Viewer, etc.


Click on Hide Surface Image Removed in the Advanced section of the Painting Tools and Options section (or press H on your keyboard) to hide/show the mesh surface that is being created/edited. If you would like to remove everything that is painted on the current slice, click the Remove Data from Slice icon in the Painting Tools and Options section. Remove what is painted on all slices by clicking the Remove All Drawn Data icon .


To continue painting on other image slices, you may manually advance to another slice using the Step buttons in the Slice-Traversal Controls section, the S and W keys on your keyboard (for Step Down and Step Up respectively), the ortho plane position controls in the Clipping Planes & Ortho Planes panel, or the ortho plane's control widget.

Copy and paste painted regions

on different image slices

To copy the painting data from one slice to another, first navigate to the slice with the painting data to be copied, and then click on Copy Slice Image Removed in the Advanced section of the Slice-Traversal Controls section. Then, navigate Navigate to the slice where you would like to paste the painting data, and click on Paste Slice Image RemovedSlice. The position and rotation angle of copied/pasted painting data is relative to the angle of the ortho plane as well as the position of its control widget.

Use predictive modes

The predictive mode options are in the Advanced section of the Painting Tools and Options section. By default, Auto Floodfill, Auto Step, and Auto Draw are on; with these options, if you paint around the edge of the region that you would like to create a mesh surface for, the two ends of the brushstroke are automatically connected, the region is automatically filled, the ortho plane is automatically advanced to the next slice, and a suggested painted region is shown on the next slice. Any combination of the Auto Floodfill, Auto Step, and Auto Draw modes is permissible, and you may toggle all of them off to disable any automatic predictions.

Auto Floodfill

Toggle Auto Floodfill Image Removed in the Advanced section of the Painting Tools and Options section. With Auto Floodfill on, the endpoints of brushstrokes are automatically connected , and enclosed regions are automatically filled. 

Auto Step

Toggle Auto Step Image Removed in the Advanced section of the Painting Tools and Options section. With Auto Step on, the Mesh Contour Editor automatically advances the ortho plane to the next slice of the image once there is a successful floodfill on the current slice. The direction in which Auto Step moves between slices is indicated by a gray outline around either the Step Up icon (if Auto Step advances in the upward direction) or Step Down icon (if Auto Step advances in the downward direction) in the Slice-Traversal Controls section. You may click on the Step Up icon  or Step Down icon  to change the Auto Step direction.

Auto Draw

Toggle Auto Draw Image Removed in the Advanced section of the Painting Tools and Options section. With Auto Draw on, predictions that are based on painted data on the previous slice as well as data from the image channel specified as input are displayed. These predictions can be edited, if needed. Change the input image channel by expanding the Select Input Channel menu Image Removed and  menu and choosing the desired image channel. Also, with Auto Draw on, you may toggle the Replace Existing Image Removed in the Advanced section of the Painting Tools and Options sectionoption; when Replace Existing is toggled on, Auto Draw replaces existing painting data.

Toggle on the EM AI Prediction option, which is in beta, to use a prediction method that is designed for EM images.

Choose post-processing options

To smooth created/edited meshes upon completion and addition to an object set, toggle on Smooth in the Output Options section. Smoothing does cause lengthens the final process of completing mesh surfaces to take longer. The other available post-processing option is to generate multiple surfaces when there are painted regions that do not touch; to turn on/off this option, click on the Generate Multiple Surfaces icon in the Output Options section. The Generate Multiple Surfaces option does not affect the shapes of the mesh surfaces but rather whether they can be selected, measured, and used individually. Having Generate Multiple Surfaces on also causes prolongs the final process of completing mesh surfaces to take longer.

Choose an output set

To select the object set to add the created/edited mesh surface to, expand the Select Output Set menu Image Removed in the Output Options section, and then Output To menu and choose the desired object set from the options provided. Only object sets of the appropriate type (neither neuron object sets nor outline sets) will appear as options in the menu. Select <Create Object Group> to add the edited/created mesh to a new object group.

Complete mesh surfaces

Click on the Complete Mesh button Image Removed in the Output Options section button (or press C on your keyboard) to convert the painting data into mesh-surface data, perform any smoothing or generation of multiple surfaces as necessary, and add the resulting mesh surface(s) to the specified output set. A pop-up window will show a progress bar for the mesh-completion process.

Related articles

Filter by label (Content by label)
showLabelsfalse
max5
showSpacefalse
cqllabel in ( "3d-tools" , "using-aivia" )

Page Properties
hiddentrue


Related issues




Panel

On this page:

Table of Contents
maxLevel23