image_detail_screen
anomaly_match_ui.screens.image_detail_screen
¶
Image detail screen — full-size viewer with transforms for a single prediction result.
ImageDetailScreen(app)
¶
Bases: BaseScreen
Full-screen image viewer with transform controls.
Reads image data from app._detail_context which is set by the
prediction screen before navigating here. Embeds a
:class:NormalisationConfigWidget next to :class:ImageToolbar so
the user can retune the upstream normalisation (method, channel
combination, resolution, fitsbolt padding) and watch the cutout
redraw in place — without leaving the screen and without writing
back to cfg.normalisation (#443). The display-only transforms
(log / zscale / percentile clip) stay on the toolbar.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
app
|
AnomalyMatchApp
|
The parent application instance used for navigation. |
required |
Source code in anomaly_match_ui/screens/image_detail_screen.py
build()
¶
Build and return the image detail layout.
Returns:
| Type | Description |
|---|---|
Widget
|
The root VBox widget for the detail screen. |
Source code in anomaly_match_ui/screens/image_detail_screen.py
on_enter()
¶
Load image from detail context and display it.
Source code in anomaly_match_ui/screens/image_detail_screen.py
151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 | |
on_leave()
¶
Clear the stored image array to free memory.