Skip to content

Commit aa68276

Browse files
authored
Nuance pin integration minor adjustments (#355)
1 parent f0c7b1c commit aa68276

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

integrations/nuance_pin/app/inference.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
LoadImaged,
3636
Orientationd,
3737
ScaleIntensityRanged,
38+
Spacingd,
3839
ToDeviced,
3940
ToTensord,
4041
)
@@ -182,6 +183,7 @@ def pre_process(self, img_reader) -> Compose:
182183
),
183184
ToDeviced(keys=image_key, device="cuda"),
184185
EnsureChannelFirstd(keys=image_key),
186+
Spacingd(keys=image_key, pixdim=(0.703125, 0.703125, 1.25)),
185187
Orientationd(
186188
keys=image_key,
187189
axcodes="RAS",

integrations/nuance_pin/app/post_inference_ops.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,12 @@ def compute(self, op_input: InputContext, op_output: OutputContext, context: Exe
119119
graphic_annotations=[annotation],
120120
institution_name="MONAI",
121121
institutional_department_name="Deploy",
122+
voi_lut_transformations=[
123+
hd.pr.SoftcopyVOILUTTransformation(
124+
window_center=-550.0,
125+
window_width=1350.0,
126+
)
127+
],
122128
)
123129

124130
gsps.save_as(os.path.join(output_path, f"gsps-{inst_num:04d}.dcm"))

0 commit comments

Comments
 (0)