@@ -84,6 +84,10 @@ int main(int argc, char* argv[])
84
84
" Do NOT convert RAS to LPS (or LPS to RAS) for the 3D landmarks; "
85
85
" RAS to LPS conversion negates the first and second components." )
86
86
<< false ;
87
+
88
+ po.add (" no-log-remap" , ProgOpts::kNO_SHORT_FLAG , ProgOpts::kSTORE_TRUE , " no-log-remap" ,
89
+ " Do NOT perform log remapping of the projection intensities during pre-processing." )
90
+ << false ;
87
91
88
92
po.add_backend_flags ();
89
93
@@ -127,6 +131,8 @@ int main(int argc, char* argv[])
127
131
const bool ras2lps = !po.get (" no-ras2lps" ).as_bool ();
128
132
129
133
const size_type proj_idx = po.get (" proj-idx" ).as_uint32 ();
134
+
135
+ const bool no_log_remap = po.get (" no-log-remap" );
130
136
131
137
if ((regi_method_id < 1 ) || (regi_method_id > 3 ))
132
138
{
@@ -138,8 +144,8 @@ int main(int argc, char* argv[])
138
144
139
145
if ((regi_method_id > 1 ) && !read_proj_seg)
140
146
{
141
- std::cerr << " ERROR: must use 2D segmentation for methods 2 or 3! " << std::endl;
142
- return kEXIT_VAL_BAD_USE ;
147
+ std::cerr << " WARNING: 2D segmentation is needed for methods 2 or 3 in order to "
148
+ " match IPCAI paper! " << std::endl ;
143
149
}
144
150
145
151
// ////////////////////////////////////////////////////////////////////////////
@@ -227,7 +233,8 @@ int main(int argc, char* argv[])
227
233
pd, read_proj_seg ? &proj_seg : nullptr , save_debug,
228
234
ProgOptsLineIntRayCasterFactory (po),
229
235
ProgOptsSimMetricFactory (po),
230
- vout);
236
+ vout,
237
+ no_log_remap);
231
238
232
239
vout << " writing pelvis regi pose to disk..." << std::endl;
233
240
WriteITKAffineTransform (dst_pelvis_regi_pose_path, ml_mo_regi.cur_cam_to_vols [0 ]);
0 commit comments