ianheimbuch / tusx

An open-source toolbox to perform acoustic simulations using medical images for transcranial ultrasound experiments
BSD 3-Clause "New" or "Revised" License
12 stars 0 forks source link

Cannot specify 3-element vector for 'trimSize' when 'reorientToGrid' is set to true. #1

Open ianheimbuch opened 2 years ago

ianheimbuch commented 2 years ago

For tusx_sim_setup(), setting individual dimension lengths for optional name-value pair 'trimSize' while 'reorientToGrid' is set to true leads to an error within setLimits().

'reorientToGrid' can still be set to true if 'trimSize' is set with a single scalar (i.e. creates dimensions of equal length).

Leads to error: ... 'reorientToGrid', true, 'trimSize', [512 512 512]... No error: ... 'reorientToGrid', true, 'trimSize', 512...