Open jeremieglt opened 21 hours ago
The problem is that you're defining the detector position at z-position=0. The origin of the CurvedArrayDetectionGeometry
is the focus. So you're setting the focus inside the very first voxel in the volume. Since it has a radius of 40mm, it will put all the sensor elements above the volume, i.e. outside of the grid that is simulated. You either have to define your volume differently such that you make it big enough to make your device fit into it, like adding 40mm to your z-dim and then set the device position at z=40 or you use the update_settings_for_use_of_model_based_volume_creator
method of the MSOTAcuityEcho
to increase the volume after the fact like in the paper experiment repo.
Ok thank you for your answer, that was a big misunderstanding from my side on the device positoning.
Describe the bug
I am simulating a very simple example with kWave as only module in my pipeline with an artificial image as input (see device visualisation for the geometry below) : I want to image three thin vessels in a normal background with MSOT Acuity Echo, but I get a problem related to the "sensor mask" from the simulate_2D Matlab code (see log below).
Specify a priority (low, medium, high) Medium
Current Behavior
The problem seems to be related somewhat to the pitch of the sensor : when I modify the pitch to 0.5 mm (not default for MSOT Acuity, but default for the CurvedArrayDetectionGeometry), the simulation runs but I only get the value(s) from the first element(s) on both ends of the curvilinear array (see output below, for the moment I am just imaging one point, see code below, but it doesn't matter to the problem), but when I set it to 0.34 mm (default value for MSOT Acuity), I have this mask problem.
I went and see into the simulate_2D.m script, and it seems like, in the sensor definition part, the pitch used is 0.5 :
So I tried to modify it to 0.34 mm but I still have the same problems so I guess the problem is not only there or not there at all.
Expected behavior
No more mask error.
Additional context
My function :
Thanks in advance for your help !