Skip to content

Commit a35617e

Browse files
author
haesleinhuepf
committed
regenerated docs, now with clickable examples
1 parent 2e0b89e commit a35617e

File tree

72 files changed

+879
-117
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

72 files changed

+879
-117
lines changed

md/applyVectorFieldMD/readme.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,10 @@ Ext.CLIJ2_push(shiftY);
5656
for (i = 0; i < 36; i += 6) {
5757

5858
// change the shift from slice to slice
59-
Ext.CLIJ2_affineTransform2D(shiftX, rotatedShiftX, "-center rotate=" + (i * 10) + " center");
59+
Ext.[CLIJ2_affineTransform2D](https://clij.github.io/clij2-docs/reference_affineTransform2D)(shiftX, rotatedShiftX, "-center rotate=" + (i * 10) + " center");
6060

6161
// apply transform
62-
Ext.CLIJ2_applyVectorField2D(input, rotatedShiftX, shiftY, transformed);
62+
Ext.[CLIJ2_applyVectorField2D](https://clij.github.io/clij2-docs/reference_applyVectorField2D)(input, rotatedShiftX, shiftY, transformed);
6363

6464
// get result back from GPU
6565
Ext.CLIJ2_pull(transformed);

md/basics/readme.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ If we blur the input image, another `result` image is allocated in GPU memory.
6262
sigma = 5;
6363
//// you can, but you don't have to define the result image name:
6464
//result = "blurred_image";
65-
Ext.CLIJ2_gaussianBlur2D(input_image, result, sigma, sigma);
65+
Ext.[CLIJ2_gaussianBlur2D](https://clij.github.io/clij2-docs/reference_gaussianBlur2D)(input_image, result, sigma, sigma);
6666
```
6767

6868
## Showing a result image

md/benchmarking/readme.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ run("Close All");
8686
// Local mean filter in GPU
8787
for (i = 1; i <= 10; i++) {
8888
time = getTime();
89-
Ext.CLIJ2_mean3DBox(input, blurred, 3, 3, 3);
89+
Ext.[CLIJ2_mean3DBox](https://clij.github.io/clij2-docs/reference_mean3DBox)(input, blurred, 3, 3, 3);
9090
print("CLIJ2 GPU mean filter no " + i + " took " + (getTime() - time) + " msec");
9191
}
9292
```

md/blur/readme.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ run("Close All");
3737
Apply a Gaussian blur filter in GPU
3838

3939
```java
40-
Ext.CLIJ2_gaussianBlur3D(input, blurred, 5, 5, 1);
40+
Ext.[CLIJ2_gaussianBlur3D](https://clij.github.io/clij2-docs/reference_gaussianBlur3D)(input, blurred, 5, 5, 1);
4141

4242
// Get results back from GPU
4343
Ext.CLIJ2_pull(blurred);

md/compare_workflows/readme.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,12 @@ Ext.CLIJ2_push(input_clij);
5656
// subtract background in the image
5757
radius = 25;
5858
background_subtracted_clij = "background_subtracted_clij";
59-
Ext.CLIJ2_topHatBox(input_clij, background_subtracted_clij, 25, 25, 0);
59+
Ext.[CLIJ2_topHatBox](https://clij.github.io/clij2-docs/reference_topHatBox)(input_clij, background_subtracted_clij, 25, 25, 0);
6060
Ext.CLIJ2_pull(background_subtracted_clij);
6161

6262
// threshold the image
6363
thresholded_clij = "thresholded_clij";
64-
Ext.CLIJ2_automaticThreshold(background_subtracted_clij, thresholded_clij, "Default");
64+
Ext.[CLIJ2_automaticThreshold](https://clij.github.io/clij2-docs/reference_automaticThreshold)(background_subtracted_clij, thresholded_clij, "Default");
6565
Ext.CLIJ2_pullBinary(thresholded_clij);
6666

6767
end_time_clij = getTime();

md/filtering_in_graphs/readme.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Ext.CLIJ2_create2D(pointlist, number_of_points, number_of_dimensions, bit_depth)
3030
random_min = 0;
3131
random_max = 100;
3232
seed = getTime();
33-
Ext.CLIJ2_setRandom(pointlist, random_min, random_max, seed);
33+
Ext.[CLIJ2_setRandom](https://clij.github.io/clij2-docs/reference_setRandom)(pointlist, random_min, random_max, seed);
3434
Ext.CLIJ2_pull(pointlist);
3535
zoom(10);
3636

@@ -40,7 +40,7 @@ zoom(10);
4040
## Draw the spots labelled (1, 2, 3, ...) in 2D space
4141

4242
```java
43-
Ext.CLIJ2_pointlistToLabelledSpots(pointlist, spots_image);
43+
Ext.[CLIJ2_pointlistToLabelledSpots](https://clij.github.io/clij2-docs/reference_pointlistToLabelledSpots)(pointlist, spots_image);
4444
Ext.CLIJ2_pull(spots_image);
4545
zoom(4);
4646
run("glasbey_on_dark");
@@ -68,7 +68,7 @@ for (i = 0; i < number_of_points; i += 1) {
6868
}
6969
measurement_array[number_of_points / 2] = 20;
7070

71-
Ext.CLIJ2_pushArray(measurement, measurement_array, number_of_points, 1, 1);
71+
Ext.[CLIJ2_pushArray](https://clij.github.io/clij2-docs/reference_pushArray)(measurement, measurement_array, number_of_points, 1, 1);
7272
Ext.CLIJ2_pull(measurement);
7373
zoom(10);
7474

@@ -78,7 +78,7 @@ zoom(10);
7878
## Make a parametric image showing measurements in 2D space
7979

8080
```java
81-
Ext.CLIJ2_replaceIntensities(labelled_voronoi, measurement, parametric_image);
81+
Ext.[CLIJ2_replaceIntensities](https://clij.github.io/clij2-docs/reference_replaceIntensities)(labelled_voronoi, measurement, parametric_image);
8282
Ext.CLIJ2_pull(parametric_image);
8383
zoom(4);
8484
setMinAndMax(0, 20);
@@ -92,13 +92,13 @@ run("Fire");
9292
```java
9393

9494
// determine the touch matrix
95-
Ext.CLIJ2_generateTouchMatrix(labelled_voronoi, touch_matrix);
95+
Ext.[CLIJ2_generateTouchMatrix](https://clij.github.io/clij2-docs/reference_generateTouchMatrix)(labelled_voronoi, touch_matrix);
9696

9797
/// determine median value of each nodes neighbors
98-
Ext.CLIJ2_medianOfTouchingNeighbors(measurement, touch_matrix, median_measurement);
98+
Ext.[CLIJ2_medianOfTouchingNeighbors](https://clij.github.io/clij2-docs/reference_medianOfTouchingNeighbors)(measurement, touch_matrix, median_measurement);
9999

100100
// draw the median measurement, again as parametric image
101-
Ext.CLIJ2_replaceIntensities(labelled_voronoi, median_measurement, parametric_image);
101+
Ext.[CLIJ2_replaceIntensities](https://clij.github.io/clij2-docs/reference_replaceIntensities)(labelled_voronoi, median_measurement, parametric_image);
102102
Ext.CLIJ2_pull(parametric_image);
103103
zoom(4);
104104
setMinAndMax(0, 20);

md/labeling/readme.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ run("Close All");
3939
Create a mask using a fixed threshold and label connected components
4040

4141
```java
42-
Ext.CLIJ2_automaticThreshold(input, mask, "Otsu");
42+
Ext.[CLIJ2_automaticThreshold](https://clij.github.io/clij2-docs/reference_automaticThreshold)(input, mask, "Otsu");
4343

4444
// label
45-
Ext.CLIJ2_connectedComponentsLabelingBox(mask, labelmap);
45+
Ext.[CLIJ2_connectedComponentsLabelingBox](https://clij.github.io/clij2-docs/reference_connectedComponentsLabelingBox)(mask, labelmap);
4646

4747
// show result
4848
Ext.CLIJ2_pull(mask);

md/matrix_multiply/readme.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ array1 = newArray(1, 2, 3, 4, 5);
2525
array2 = newArray(6, 7, 8, 9, 10);
2626

2727
// push arrays to GPU
28-
Ext.CLIJ2_pushArray(vector1, array1, 5, 1, 1);
29-
Ext.CLIJ2_pushArray(vector2, array2, 5, 1, 1);
28+
Ext.[CLIJ2_pushArray](https://clij.github.io/clij2-docs/reference_pushArray)(vector1, array1, 5, 1, 1);
29+
Ext.[CLIJ2_pushArray](https://clij.github.io/clij2-docs/reference_pushArray)(vector2, array2, 5, 1, 1);
3030

3131
```
3232

@@ -35,7 +35,7 @@ Therefore, we transpose one of our vectors
3535

3636
```java
3737
// transpose first input vector and show it
38-
Ext.CLIJ2_transposeXY(vector1, vector1transposed);
38+
Ext.[CLIJ2_transposeXY](https://clij.github.io/clij2-docs/reference_transposeXY)(vector1, vector1transposed);
3939
Ext.CLIJ2_pull(vector1transposed);
4040
zoom(100);
4141

@@ -50,7 +50,7 @@ zoom(100);
5050
## Matrix multiplication
5151

5252
```java
53-
Ext.CLIJ2_multiplyMatrix(vector1transposed, vector2, matrix);
53+
Ext.[CLIJ2_multiplyMatrix](https://clij.github.io/clij2-docs/reference_multiplyMatrix)(vector1transposed, vector2, matrix);
5454
Ext.CLIJ2_pull(matrix);
5555
zoom(100);
5656

@@ -62,15 +62,15 @@ zoom(100);
6262
```java
6363

6464
// generate another matrix of the same size with random values
65-
Ext.CLIJ2_getDimensions(matrix, width, height, depth);
65+
Ext.[CLIJ2_getDimensions](https://clij.github.io/clij2-docs/reference_getDimensions)(matrix, width, height, depth);
6666
bitDepth_float = 32;// 32-bit float type
6767
Ext.CLIJ2_create2D(another_matrix, width, height, bitDepth_float);
6868

6969
// random values between 0 and 1; seed is 5
70-
Ext.CLIJ2_setRandom(another_matrix, 0, 1, 5);
70+
Ext.[CLIJ2_setRandom](https://clij.github.io/clij2-docs/reference_setRandom)(another_matrix, 0, 1, 5);
7171

7272
// element wise multiplication
73-
Ext.CLIJ2_multiplyImages(matrix, another_matrix, matrix_element_wise_multiplied);
73+
Ext.[CLIJ2_multiplyImages](https://clij.github.io/clij2-docs/reference_multiplyImages)(matrix, another_matrix, matrix_element_wise_multiplied);
7474
Ext.CLIJ2_pull(matrix_element_wise_multiplied);
7575
zoom(100);
7676

@@ -80,7 +80,7 @@ zoom(100);
8080
## Element wise multiplication of the matrix with a scalar
8181

8282
```java
83-
Ext.CLIJ2_multiplyImageAndScalar(matrix, elements_times_2, 2);
83+
Ext.[CLIJ2_multiplyImageAndScalar](https://clij.github.io/clij2-docs/reference_multiplyImageAndScalar)(matrix, elements_times_2, 2);
8484
Ext.CLIJ2_pull(elements_times_2);
8585
zoom(100);
8686

md/maximumProjection/readme.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -38,18 +38,18 @@ close();
3838
We can use the classical maximum intensity projection in Z:
3939

4040
```java
41-
Ext.CLIJ2_maximumZProjection(input, maximum_z_projected);
41+
Ext.[CLIJ2_maximumZProjection](https://clij.github.io/clij2-docs/reference_maximumZProjection)(input, maximum_z_projected);
4242
Ext.CLIJ2_pull(maximum_z_projected);
4343
```
4444
<a href="image_1587404232000.png"><img src="image_1587404232000.png" width="250" alt="CLIJ2_maximumZProjection_result71"/></a>
4545

4646
But we can also project in X and Y direction:
4747

4848
```java
49-
Ext.CLIJ2_maximumYProjection(input, maximum_y_projected);
49+
Ext.[CLIJ2_maximumYProjection](https://clij.github.io/clij2-docs/reference_maximumYProjection)(input, maximum_y_projected);
5050
Ext.CLIJ2_pull(maximum_y_projected);
5151

52-
Ext.CLIJ2_maximumXProjection(input, maximum_x_projected);
52+
Ext.[CLIJ2_maximumXProjection](https://clij.github.io/clij2-docs/reference_maximumXProjection)(input, maximum_x_projected);
5353
Ext.CLIJ2_pull(maximum_x_projected);
5454
```
5555
<a href="image_1587404232083.png"><img src="image_1587404232083.png" width="250" alt="CLIJ2_maximumYProjection_result72"/></a>
@@ -60,7 +60,7 @@ Furthermore, we can frame the range from which the projection is drawn:
6060
```java
6161
min_z = 90;
6262
max_z = 100;
63-
Ext.CLIJ2_maximumZProjectionBounded(input, bound_projection, min_z, max_z);
63+
Ext.[CLIJ2_maximumZProjectionBounded](https://clij.github.io/clij2-docs/reference_maximumZProjectionBounded)(input, bound_projection, min_z, max_z);
6464
Ext.CLIJ2_pull(bound_projection);
6565
```
6666
<a href="image_1587404232142.png"><img src="image_1587404232142.png" width="250" alt="CLIJ2_maximumZProjectionBounded_result74"/></a>

md/mean_of_touching_neighbors/readme.md

+15-15
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ run("Close All");
3737
Create a mask using the Otsu threshold algorithm
3838

3939
```java
40-
Ext.CLIJ2_thresholdOtsu(input, mask);
40+
Ext.[CLIJ2_thresholdOtsu](https://clij.github.io/clij2-docs/reference_thresholdOtsu)(input, mask);
4141
Ext.CLIJ2_pull(mask);
4242

4343
```
@@ -47,9 +47,9 @@ Draw a Voronoi diagram and invert it
4747

4848
```java
4949

50-
Ext.CLIJ2_voronoiOctagon(mask, voronoi_diagram);
50+
Ext.[CLIJ2_voronoiOctagon](https://clij.github.io/clij2-docs/reference_voronoiOctagon)(mask, voronoi_diagram);
5151
// invert
52-
Ext.CLIJ2_binaryNot(voronoi_diagram, inverted_voronoi);
52+
Ext.[CLIJ2_binaryNot](https://clij.github.io/clij2-docs/reference_binaryNot)(voronoi_diagram, inverted_voronoi);
5353

5454
Ext.CLIJ2_pullBinary(voronoi_diagram);
5555
Ext.CLIJ2_pullBinary(inverted_voronoi);
@@ -61,10 +61,10 @@ Ext.CLIJ2_pullBinary(inverted_voronoi);
6161
Generate a label map and extend it to make labels touch
6262

6363
```java
64-
Ext.CLIJ2_connectedComponentsLabelingBox(inverted_voronoi, labelled);
64+
Ext.[CLIJ2_connectedComponentsLabelingBox](https://clij.github.io/clij2-docs/reference_connectedComponentsLabelingBox)(inverted_voronoi, labelled);
6565

6666
// Extend labels so that they touch
67-
Ext.CLIJ2_maximum2DBox(labelled, labelled_extended, 2, 2);
67+
Ext.[CLIJ2_maximum2DBox](https://clij.github.io/clij2-docs/reference_maximum2DBox)(labelled, labelled_extended, 2, 2);
6868

6969
Ext.CLIJ2_pull(labelled);
7070
Ext.CLIJ2_pull(labelled_extended);
@@ -76,7 +76,7 @@ Ext.CLIJ2_pull(labelled_extended);
7676
Determine touch matrix
7777

7878
```java
79-
Ext.CLIJ2_generateTouchMatrix(labelled_extended, touch_matrix);
79+
Ext.[CLIJ2_generateTouchMatrix](https://clij.github.io/clij2-docs/reference_generateTouchMatrix)(labelled_extended, touch_matrix);
8080
Ext.CLIJ2_pullBinary(touch_matrix);
8181

8282
```
@@ -87,16 +87,16 @@ Do statistics on the label map
8787

8888
```java
8989
run("Clear Results");
90-
Ext.CLIJ2_statisticsOfBackgroundAndLabelledPixels(input, labelled_extended);
90+
Ext.[CLIJ2_statisticsOfBackgroundAndLabelledPixels](https://clij.github.io/clij2-docs/reference_statisticsOfBackgroundAndLabelledPixels)(input, labelled_extended);
9191

92-
Ext.CLIJ2_resultsTableColumnToImage(intensity_values, "MEAN_INTENSITY");
92+
Ext.[CLIJ2_resultsTableColumnToImage](https://clij.github.io/clij2-docs/reference_resultsTableColumnToImage)(intensity_values, "MEAN_INTENSITY");
9393

9494
```
9595

9696
Show Mean intensity per label as parametric image
9797

9898
```java
99-
Ext.CLIJ2_replaceIntensities(labelled_extended, intensity_values, intensity_map);
99+
Ext.[CLIJ2_replaceIntensities](https://clij.github.io/clij2-docs/reference_replaceIntensities)(labelled_extended, intensity_values, intensity_map);
100100
Ext.CLIJ2_pull(intensity_map);
101101
rename("label intensity");
102102

@@ -107,8 +107,8 @@ Determine mean (mean) intensity of local neighbors and draw another parametric i
107107

108108
```java
109109

110-
Ext.CLIJ2_meanOfTouchingNeighbors(intensity_values, touch_matrix, local_mean_intensity_values);
111-
Ext.CLIJ2_replaceIntensities(labelled_extended, local_mean_intensity_values, local_mean_intensity_map);
110+
Ext.[CLIJ2_meanOfTouchingNeighbors](https://clij.github.io/clij2-docs/reference_meanOfTouchingNeighbors)(intensity_values, touch_matrix, local_mean_intensity_values);
111+
Ext.[CLIJ2_replaceIntensities](https://clij.github.io/clij2-docs/reference_replaceIntensities)(labelled_extended, local_mean_intensity_values, local_mean_intensity_map);
112112
Ext.CLIJ2_pull(local_mean_intensity_map);
113113
rename("mean neighbor intensity");
114114

@@ -120,14 +120,14 @@ Determine min and max (mean) intensity of local neighbors and draw two more para
120120
```java
121121

122122
// min
123-
Ext.CLIJ2_minimumOfTouchingNeighbors(intensity_values, touch_matrix, local_minimum_intensity_values);
124-
Ext.CLIJ2_replaceIntensities(labelled_extended, local_minimum_intensity_values, local_minimum_intensity_map);
123+
Ext.[CLIJ2_minimumOfTouchingNeighbors](https://clij.github.io/clij2-docs/reference_minimumOfTouchingNeighbors)(intensity_values, touch_matrix, local_minimum_intensity_values);
124+
Ext.[CLIJ2_replaceIntensities](https://clij.github.io/clij2-docs/reference_replaceIntensities)(labelled_extended, local_minimum_intensity_values, local_minimum_intensity_map);
125125
Ext.CLIJ2_pull(local_minimum_intensity_map);
126126
rename("minimum neighbor intensity");
127127

128128
// max
129-
Ext.CLIJ2_maximumOfTouchingNeighbors(intensity_values, touch_matrix, local_maximum_intensity_values);
130-
Ext.CLIJ2_replaceIntensities(labelled_extended, local_maximum_intensity_values, local_maximum_intensity_map);
129+
Ext.[CLIJ2_maximumOfTouchingNeighbors](https://clij.github.io/clij2-docs/reference_maximumOfTouchingNeighbors)(intensity_values, touch_matrix, local_maximum_intensity_values);
130+
Ext.[CLIJ2_replaceIntensities](https://clij.github.io/clij2-docs/reference_replaceIntensities)(labelled_extended, local_maximum_intensity_values, local_maximum_intensity_map);
131131
Ext.CLIJ2_pull(local_maximum_intensity_map);
132132
rename("maximum neighbor intensity");
133133

md/measure_overlap/readme.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ run("Close All");
3939

4040
```java
4141

42-
Ext.CLIJ2_automaticThreshold(input, mask1, "Otsu");
43-
Ext.CLIJ2_automaticThreshold(input, mask2, "MinError");
42+
Ext.[CLIJ2_automaticThreshold](https://clij.github.io/clij2-docs/reference_automaticThreshold)(input, mask1, "Otsu");
43+
Ext.[CLIJ2_automaticThreshold](https://clij.github.io/clij2-docs/reference_automaticThreshold)(input, mask2, "MinError");
4444

4545
Ext.CLIJ2_pullBinary(mask1);
4646
Ext.CLIJ2_pullBinary(mask2);
@@ -52,8 +52,8 @@ Ext.CLIJ2_pullBinary(mask2);
5252
## measure overlap between the two masks
5353

5454
```java
55-
Ext.CLIJ2_getJaccardIndex(mask1, mask2, jaccardIndex);
56-
Ext.CLIJ2_getSorensenDiceCoefficient(mask1, mask2, diceIndex);
55+
Ext.[CLIJ2_getJaccardIndex](https://clij.github.io/clij2-docs/reference_getJaccardIndex)(mask1, mask2, jaccardIndex);
56+
Ext.[CLIJ2_getSorensenDiceCoefficient](https://clij.github.io/clij2-docs/reference_getSorensenDiceCoefficient)(mask1, mask2, diceIndex);
5757

5858
// output result
5959
IJ.log("Overlap (Jaccard index): " + (jaccardIndex*100) + "%");

md/measure_statistics/readme.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@ run("Close All");
4242
## Segment the image and create a label mask
4343

4444
```java
45-
Ext.CLIJ2_thresholdOtsu(input, mask);
45+
Ext.[CLIJ2_thresholdOtsu](https://clij.github.io/clij2-docs/reference_thresholdOtsu)(input, mask);
4646

4747
// connected components analysis
48-
Ext.CLIJ2_connectedComponentsLabeling(mask, labelmap);
48+
Ext.[CLIJ2_connectedComponentsLabeling](https://clij.github.io/clij2-docs/reference_connectedComponentsLabeling)(mask, labelmap);
4949

5050
// show labelling
5151
Ext.CLIJx_pull(labelmap);
@@ -59,7 +59,7 @@ run("glasbey on dark");
5959

6060

6161
```java
62-
Ext.CLIJ2_statisticsOfLabelledPixels(input, labelmap);
62+
Ext.[CLIJ2_statisticsOfLabelledPixels](https://clij.github.io/clij2-docs/reference_statisticsOfLabelledPixels)(input, labelmap);
6363

6464

6565
```

md/rotate_comparison/readme.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ rotated_cpu = getTitle();
4747
## Rotate image on GPU
4848

4949
```java
50-
Ext.CLIJ2_affineTransform2D(input, rotated_gpu, "-center rotate=45 center");
50+
Ext.[CLIJ2_affineTransform2D](https://clij.github.io/clij2-docs/reference_affineTransform2D)(input, rotated_gpu, "-center rotate=45 center");
5151

5252
// show results
5353
Ext.CLIJ2_pull(rotated_gpu);

0 commit comments

Comments
 (0)