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: docs/visualization.rst
+49Lines changed: 49 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -119,6 +119,55 @@ A filter can be applied to annotations using the filter box. For example, enteri
119
119
120
120
The main slide view can be made fullscreen by clicking the fullscreen icon in the small toolbar to the immediate right of the main window. This toolbar also provides a button to save the current view as a .png file.
121
121
122
+
Visualising Image Registration/Transformation
123
+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
124
+
125
+
.. image:: images/dual_win_reg.png
126
+
:width:100%
127
+
:align:center
128
+
:alt:dual window example
129
+
130
+
131
+
TIAToolbox provides a powerful registration visualization feature that enables intuitive alignment and comparison of histopathology images—such as H&E and IHC-stained slides—without requiring full whole-slide registration. This is particularly useful for quickly inspecting the accuracy of precomputed registration results.
132
+
133
+
To use this feature, you must supply a precomputed registration matrix (e.g., .mha or .npy file) generated from an affine or deformable registration process. This matrix is used to align the images visually.
134
+
135
+
Dual Window Mode:
136
+
"""""""""""""""""
137
+
138
+
This mode allows side-by-side comparison of registered images.
139
+
140
+
**Steps:**
141
+
142
+
* Open **Dual Window Mode** and load the images.
143
+
144
+
* In one window, open the H&E (source) image.
145
+
146
+
* In the other window, open the IHC (target) image.
147
+
148
+
* Load the registration file (e.g., an .mha or .npy file) as an overlay on the source image.
149
+
150
+
Overlay Mode:
151
+
"""""""""""""
152
+
153
+
This mode overlays the registered image directly on top of the source image for visual inspection.
154
+
155
+
156
+
**Steps:**
157
+
158
+
* Open the H&E (source) image.
159
+
160
+
* Overlay the IHC (target) image on the source image.
161
+
162
+
* Load the registration file (e.g., an .mha or .npy file) as an overlay on the source image.
163
+
164
+
.. note::
165
+
Always load the **target image first** when using overlays. If not, the system may incorrectly assume both images are the same, leading to inaccurate transformations. Incorrect ordering may result in misaligned overlays or misleading visualizations.
166
+
167
+
168
+
The **order** of source and target images must remain consistent with how the registration matrix was computed. This is as most registration algorithms require the dimensions of both the source and target images to perform the registration transformation. The above examples assume that the H&E image is registered to the IHC images, but if instead you have registered the IHC to the H&E image then please change the order of image loading accordingly.
0 commit comments