I performed the tfm analysis with ROIs. But the output in the h5 file under traction_map still lists all measured forces.
I would like to only get the forces from the cell meaning inside the ROI, so I wrote some code in R to do this. It works, but is a bit tricky since the coordinates of the mask_roi are related to the image pixels and the coordinates of the traction map is something else (related to window size?). It basically requires some rescaling, which can't be done with a constant as far as I see..
So I was wondering if there is a native way inside pytraction or the h5 output file to filter out forces outside the ROI, that I might have missed.
I performed the tfm analysis with ROIs. But the output in the h5 file under traction_map still lists all measured forces.
I would like to only get the forces from the cell meaning inside the ROI, so I wrote some code in R to do this. It works, but is a bit tricky since the coordinates of the mask_roi are related to the image pixels and the coordinates of the traction map is something else (related to window size?). It basically requires some rescaling, which can't be done with a constant as far as I see..
So I was wondering if there is a native way inside pytraction or the h5 output file to filter out forces outside the ROI, that I might have missed.