You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: _pages/plugins/bdv/warpy/warpy-extension.md
+46-25Lines changed: 46 additions & 25 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,13 @@ This page documents a way to register whole slide images in Fiji and analyze the
9
9
10
10
If you are registering serial sections, you can modify the registration parameters in order to have a match at the tissue level instead of at a cellular/subcellular level.
## Option 1 - Automated procedure with bash scripts
13
19
14
20
This is an experimental install procedure which is performing all the steps detailed in the Complete procedure below, but with bash scripts. It is the one explained in the video tutorial:
15
21
@@ -33,31 +39,31 @@ This is an experimental install procedure which is performing all the steps deta
33
39
{% include notice icon="warning"
34
40
content="On Mac, If you get an error message, please [grant the terminal application with full disk access](https://osxdaily.com/2018/10/09/fix-operation-not-permitted-terminal-error-macos/)" %}
35
41
36
-
# Installation - Option 2 - Manual procedure
42
+
##Installation - Option 2 - Manual procedure
37
43
38
-
## ImageJ / Fiji
44
+
###ImageJ / Fiji
39
45
40
-
### PTBIOP update site
46
+
####PTBIOP update site
41
47
42
48
Enable the [PTBIOP](https://imagej.github.io/update-sites/following) update site, then restart Fiji.
43
49
44
-
### Elastix - To enable automated registrations capabilities
50
+
####Elastix - To enable automated registrations capabilities
45
51
- Download the [latest release of elastix for your OS](https://github.com/SuperElastix/elastix/releases/tag/5.0.1). This documentation has been tested for elastix 5.0.1.
46
52
- Unzip it somewhere convenient ( `C` drive on windows, in `Applications` for Mac )
47
53
48
-
#### Windows
54
+
#####Windows
49
55
50
56
For windows users, you also need to install [Visual C++ redistributable](https://docs.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist), you'll most probably need `vc_redist.x64.exe`
51
57
52
-
#### Mac
58
+
#####Mac
53
59
54
60
Fiji will be calling the elastix executables, which are recognized as ‘unknown developers’ by Mac OS. Thus you need to [make security exceptions for both elastix and transformix](https://support.apple.com/en-hk/guide/mac-help/mh40616/mac) to avoid clicking indefinitely on the OS warning messages.
55
61
56
-
#### Linux (not tested)
62
+
#####Linux (not tested)
57
63
58
64
Nothing particular should be required for linux system. If it works, please contact the BIOP and let us know!
59
65
60
-
### Indicate `elastix` and `transformix` executable location in Fiji
66
+
####Indicate `elastix` and `transformix` executable location in Fiji
61
67
62
68
- Execute {% include bc path="Plugins|BIOP|Set and Check Wrappers"%} then indicate the proper location of the executable files
63
69
@@ -69,12 +75,12 @@ Nothing particular should be required for linux system. If it works, please cont
69
75
70
76
Once elastix is installed, you can run [the following script](https://gist.githubusercontent.com/NicoKiaru/b91f9f3f0069b765a49b5d4629a8b1c7/raw/0744676341b16ee4f37ed203130f0e0b761c08c8/TestRegister.groovy) in Fiji to test elastix functionality. Save the file with a `.groovy` extension, open it Fiji, and run it.
71
77
72
-
## QuPath
78
+
###QuPath
73
79
74
80
* Install the [latest QuPath version (0.3+)](https://qupath.github.io/)
75
81
* Install the [QuPath Warpy extension by following its readme](https://github.com/BIOP/qupath-extension-warpy).
76
82
77
-
# WSI registration - step by step procedure
83
+
# Step by step registration procedure
78
84
79
85
To follow the WSI registration procedure, a demo dataset, consisting of a fluorescent image which can be registered to a RGB H-DAB image, can be [downloaded from Zenodo](https://doi.org/10.5281/zenodo.5674521). Only the files with the `.ome.tiff` extensions are necessary.
80
86
@@ -302,9 +308,11 @@ Transformation file successfully written to QuPath project: Path\id_moving\trans
302
308
303
309
This means that the result of the registration has been stored as a file into your QuPath project. It can then be used from within QuPath to transfer annotations and or detections from one slide to another one, as explained in the next section.
304
310
305
-
NOTE: the transformation is stored as a json file in the data entry folder of the fixed moving image. It is named by convention `transform_{i}_{j}.json` where `i` and `j` are the entry ids of the fixed and the the moving image in the QuPath project.
311
+
{% include notice icon="info"
312
+
content="the transformation is stored as a json file in the data entry folder of the fixed moving image. It is named by convention `transform_{i}_{j}.json` where `i` and `j` are the entry ids of the fixed and the the moving image in the QuPath project." %}
313
+
306
314
307
-
##Editing a previous registration
315
+
# Editing a previous registration
308
316
309
317
Once the registration has been performed, you may have second thoughts regarding a region which has not been registered well enough. If that's the case, you can go back to Fiji, re-open your QuPath project, and run the command
310
318
`QuPath - Edit Warpy Registration`:
@@ -315,7 +323,7 @@ You will need to select the moving and fixed image (a warning message is display
315
323
316
324
Running this command will launch the BigWarp interface, in which you can modify, remove, or add new landmarks. Click the appropriate button in the BigWarp bigdataviewer window in order to save and override your previous registration (which is lost, unless you save the BigWarp landmark file).
317
325
318
-
##Analysis in QuPath
326
+
# Analysis in QuPath
319
327
320
328
From within QuPath, annotations and or detections can be transferred within registered images, one way or another. Indeed, provided transformations are regular enough, they are invertible.
321
329
@@ -366,20 +374,33 @@ The above scripts consists of two parts:
366
374
367
375
- transfered annotations/detections does not contain the standard measurements provided by QuPath (fluorescent intensity / DAB value, etc.) In order to add the measurements on the target image, the function `Warpy.addIntensityMeasurements` can be called
368
376
369
-
## Troubleshooting
377
+
# Saving the registered image
378
+
379
+
You have several options, but please be aware that computing the fully transformed image is not as safe as working with transfered ROIs. The image can be modified significantly.
380
+
381
+
{% include notice icon="warning"
382
+
content="Computing a fully transformed image, created with ImageCombinerWarpy or with the Fiji Warpy exporter, is a transformation over the pixel contents of the original images! The pixel difference between the original and the transformed image depends on the transformation, the used interpolation as well as the downsampling used in the current viewer. This must be taken into account in all analysis steps performed on such transformed images." %}
383
+
384
+
## With Image Combiner Warpy
385
+
386
+
This requires using QuPath and the Image Combiner capabilities. For more informations, go to
387
+
[export combined image to OME-TIFF.](/plugins/bdv/warpy/warpy-image-combiner-additional-info#project-entry--image-file)
388
+
389
+
## With Warpy in Fiji
390
+
391
+
In Fiji, you can type ‘export warpy’ into Fiji’s search bar and you should get a window like this:
392
+
393
+
{% include img name="Warpy - export choose images" src="/media/plugins/bdv/warpy/warpy-fiji-export-window0.png" %}
394
+
395
+
After clicking ok, you’ll get a second window with writing options:
396
+
397
+
{% include img name="Warpy - export options" src="/media/plugins/bdv/warpy/warpy-fiji-export-window1.png" %}
398
+
399
+
And if everything’s right, you’ll get a progress bar during image writing (click on the bottom right square of Fiji’s main bar):
370
400
371
-
Something's wrong in this documentation ? Please post your issue or question in the [image.sc forum](forum.image.sc).
401
+
{% include img name="Warpy - export progress bar" src="/media/plugins/bdv/warpy/warpy-fiji-export-progress.png" %}
The code to perform this workflow is splitted in several parts:
384
406
385
-
[Qupath warpy extension](https://github.com/BIOP/qupath-extension-warpy) and several repositories for the Fiji side. On the Fiji side, the main components are [Bigdataviewer-playground](https://github.com/bigdataviewer/bigdataviewer-playground) for the management of multiple sources and [Bigdataviewer-biop-tools](https://github.com/BIOP/bigdataviewer-biop-tools).
The code to perform this workflow is splitted in several parts:
64
+
65
+
[Qupath warpy extension](https://github.com/BIOP/qupath-extension-warpy) and several repositories for the Fiji side. On the Fiji side, the main components are [Bigdataviewer-playground](https://github.com/bigdataviewer/bigdataviewer-playground) for the management of multiple sources and [Bigdataviewer-biop-tools](https://github.com/BIOP/bigdataviewer-biop-tools).
0 commit comments