Skip to content
Kevin Mader edited this page Apr 13, 2017 · 3 revisions

About and Getting Started

Setup

on D61.1 Machines

KNIME is already installed so you can start it by typing Alt+F2 (a Run Application dialog appears) and type knime and click run

On your local machine

  • To install KNIME follow the instructions on http://tech.knime.org/wiki/install-knime-image-processing
  • Click the download link and download the version with Community Extensions (around 1.1GB in size since it has all the tools available in KNIME and not just the core, they can be downloaded and installed later, but it is easier to put them in from the beginning)

Updating to the latest Image Processing Extensions

This is needed if you are using KNIME for the first time or if you have a workflow load that has a MISSING or red checkbox over a node.

The following video walks you through the steps: https://www.youtube.com/watch?v=dk25pGQ4M-Q

Installing the latest Image Processing Extensions

  1. Go to the Help menu Help->Install New Software...
  2. Click 'Available Software Sites'
  3. Check the box next to 'Stable Community Contributions' and click Ok
  4. Select 'Stable Community Contributions' in the 'Work with' menu
  5. Expand 'KNIME Community Contributions - Imaging'
  6. Check 'KNIME Image Processing - ImageJ Integration (Beta)' and click 'Next'
  7. Complete the install
  8. Click 'OK' when it warns you about installing unsigned content

Installing FIJI Plugins (ImageJ1 Macro)

To use all of the standard ImageJ plugins (from FIJI) you need to manually add them to the KNIME ImageJ1 plugins directory.

  1. Download FIJI from this site, we recommend the "Fiji continuous release" for the D61.1 machines, the link
  2. Extract the files and located the 'Plugins' folder
  3. Open KNIME
  4. Go to the Preferences->KNIME->Image Processing Plugin->ImageJ1 Preferences: here
  5. Change the plugins folder from ...plugins/org.knime.knip.imagej1_0.9.1.201501182101/plugins to the folder you have just extracted with FIJI.
  6. Now both FIJI and ImageJ1 Macro in KNIME have access to the same set of plugins

Install Nightly Image Processing Extensions

The 'Nightly' version of the Image Processing Extensions is less well tested, but much more feature rich.

  1. Go to the Help menu: Help -> Install New Softwares.
  2. On the top right, click 'Add'.
  3. Type inside 'Location' this address: http://tech.knime.org/update/community-contributions/trunk.
  4. Press 'Ok'; this address is now inside 'Work with'.
  5. Select the address and a list of options pops up.
  6. Select the extensions for Image Processing.

Configure path to R within KNIME

It may happen that KNIME does not manage to aumatically find the path where R is installed; in this case, R extensions will not work within KNIME, although succefully installed through KNIME package manager. To fix this problem, follow these instructions:

  1. Open a terminal, type "R" and press Enter.
  2. If R is effectively installed on your machine, an interface will be started on the terminal.
  3. Type ".libPaths()" and you will get a path like "/usr/pack/r-3.0.1-bs/amd64-debian-linux7.0/lib/R/library/".
  4. Open an other window on the terminal and type "ls /usr/pack/r-3.0.1-bs/amd64-debian-linux7.0/lib/R/".
  5. In the list of files and folders, you should see a "/bin" and a "/lib" folder.
  6. In KNIME, go to File -> Preferences; on the left panel, select "KNIME -> R".
  7. Paste the path you found before (in our case "/usr/pack/r-3.0.1-bs/amd64-debian-linux7.0/lib/R/") inside "Path to R Home" and click "Apply".

Installing Missing Extensions

Question

GraphCut 2D does not work with interactive annotator or predetermined labels

Answer

The standard and stable versions of KNIME Image Processing Extensions have a bug in this node. You need to update to the 'Nightly' to get the fix. To update to Nightly follow the instructions above

Question

  • In the Exercise 1 of Image Enhancement Class, the last step is to create a node 'Math Formulars', however, I could not find such a node in my node list. Also I could not use the corresponding node downloaded from the course webpage.

Problem

  • Error info: Node can't be executed - Node "Math Formula" not available (provided by "KNIME GmbH, Konstanz, Germany"; plugin "org.knime.ext.jep" is not installed)

Answer

When you first install KNIME, it is important to download the larger one with all packages included (~1.1Gb) since that has many of the other nodes that are used (if you do this you will need to reinstall the newest image processing tools as you did before) Alternatively you can install

  1. Go to the Help menu Help->Install New Software...
  2. Change 'Work With' to 'KNIME Desktop Update Site'
  3. if this is missing manually add it by clicking 'Available Software Sites'
  • Click 'Add'
  • Type KNIME Desktop Update Site for the name and http://www.knime.org/update/2.11/ for the address
  1. Expand the 'KNIME & Extensions'
  2. Check the box next to 'KNIME Math Expression (JEP)'

Knime Basics

  • Creating a node can be done by going to the 'Node Repository' and finding it inside the tree or typing the name next to the magnifying glass icon.
  • Under each node is a status light
  • red indicates not configured or connected correctly
  • yellow indicates configured correctly, but not executed
  • green indicates configured and executed
  • A blue progress bar indicates the current status (if it is executing)
  • Double clicking a node will show you its 'Configure' dialog
  • Right clicking a node will bring up a menu with many options
  • 'Execute' runs the node and all previous nodes which need to be run to complete the given task
  • 'Reset' resets the current node (clears the output) and resets all subsequent nodes
  • One of the last options is usually the '... Table' which contains the results (only after execution)

Loading Workflows

An existing workflow can be loaded from a folder or a zip file (that has been exported from KNIME).

  1. Select File -> Import KNIME Workflow...
  2. If it is a directory, then select 'Select Root Directory' and click 'Browse..'
  3. If it is a zip file, then select 'Select archive file' and click 'Browse...'
  4. If you have downloaded the file with a web-browser it probably is in your 'Downloads' folder
  5. Select the 'Destination' (in your workspace) by clicking 'Browse' in 'Select Destination' tab
  6. Click Finish

Workflow Variables

In KNIME it is possible to have 'Workflows Variables' these are parameters that can be set externally to adjust settings like the 'Noise Level'.

Add a new workspace variable

  1. Right click the workflow you are working on
  2. Select 'Workspace Variables'
  3. Click the 'Add' button
  4. Type a unique name (so you can identify later)
  5. Select the type
  • 'DOUBLE' for a decimal / floating point value
  • 'INTEGER' for a natural / round number
  • 'STRING' for a name or character
  1. Set the default value (this can be changed later)