navinlabcode / CellTrek

95 stars 18 forks source link

The error of CellTrek #1

Closed jincanke closed 2 years ago

jincanke commented 2 years ago

Hi, thank you for your code sharing. When I used the CellTrek, I found that there are some errors in the calculation of coordinates. coord_x <- row_x[1] + (spot_dis/2)sin(theta)alpha coord_y <- row_x[2] + (spot_dis/2)cos(theta)alpha I think it may be coord_x <- row_x[1] + (spot_dis/2)cos(theta)alpha coord_y <- row_x[2] + (spot_dis/2)sin(theta)alpha Best wishes.

WandeRum commented 2 years ago

Thank you. But actually, the coord_x and coord_y here will be reversed to the final coordinates (coord1=coord_y, coord2=max(coord_x)+min(coord_x)-coord_x) since the image and plot coordinate systems are not the same.

jincanke commented 2 years ago

I see...Thank you for your reply.👍