Skip to content

Working with multi channel images #52

Description

@tischi

Sorry, for putting so many issues!
It's a lot of fun to use the assistant! Great concept!

I am confused by working on a two channel image. I was using Extract channel two times within the workflow, but then I cannot see those steps in the recorded workflow (see below). The funny thing though is that the workflow seems to run correctly, but I don't understand how from reading the code. I assume the channel splitting happens during the // Copy steps?

// To make this script run in Fiji, please activate 
// the clij and clij2 update sites in your Fiji 
// installation. Read more: https://clij.github.io

// Generator version: 0.4.2.24

// Init GPU
run("CLIJ2 Macro Extensions", "cl_device=");

// Load image from disc 
open("/Users/tischer/Downloads/Tischi-RPbodies/Exp9-01(4).czi");
image1 = getTitle();
Ext.CLIJ2_pushCurrentZStack(image1);
// The following auto-generated workflow is made for processing a 2D or 3D dataset.
// For processing multiple channels or time points, you need to program a for-loop.
// You can learn how to do this online: https://www.youtube.com/watch?v=ulSq-x5_in4

// Copy
Ext.CLIJ2_copy(image1, image2);
Ext.CLIJ2_release(image1);

Ext.CLIJ2_pull(image2);

// Sum Z Projection
Ext.CLIJ2_sumZProjection(image2, image3);
Ext.CLIJ2_release(image2);

Ext.CLIJ2_pull(image3);

// Copy
Ext.CLIJ2_copy(image3, image4);

Ext.CLIJ2_pull(image4);

// Threshold Otsu
Ext.CLIJ2_thresholdOtsu(image4, image5);

Ext.CLIJ2_pull(image5);

// Binary Fill Holes
Ext.CLIJ2_binaryFillHoles(image5, image6);
Ext.CLIJ2_release(image5);

Ext.CLIJ2_pull(image6);

// Connected Components Labeling Box
Ext.CLIJ2_connectedComponentsLabelingBox(image6, image7);
Ext.CLIJ2_release(image6);

Ext.CLIJ2_pull(image7);
run("glasbey_on_dark");

// Extend Labels With Maximum Radius
radius = 20.0;
Ext.CLIJx_extendLabelsWithMaximumRadius(image7, image8, radius);
Ext.CLIJ2_release(image7);

Ext.CLIJ2_pull(image8);
run("glasbey_on_dark");

// Copy
Ext.CLIJ2_copy(image3, image9);
Ext.CLIJ2_release(image3);

Ext.CLIJ2_pull(image9);
Ext.CLIJ2_release(image9);

// Label Mean Intensity Map
Ext.CLIJx_labelMeanIntensityMap(image4, image8, image10);
Ext.CLIJ2_release(image4);
Ext.CLIJ2_release(image8);

Ext.CLIJ2_pull(image10);
run("glasbey_on_dark");
Ext.CLIJ2_release(image10);

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions