clariusdev / mobileapi

Android API Allowing IPC with the Clarius App
https://www.clarius.com
BSD 3-Clause "New" or "Revised" License
12 stars 4 forks source link

Question about ProcessedImageInfo.originX/originY #5

Closed daudrain closed 3 years ago

daudrain commented 3 years ago

Hi,

While testing, I noticed these new fields are set with negative values.

Is it expected?

Thank you, David

clariusk commented 3 years ago

yes, the origin translated from polar co-ordinates may be off the visible pixel surface.

daudrain commented 3 years ago

In my case, the origin is inside the visible pixel surface, I've added 2 white lines to underline the top and bottom: image

daudrain commented 3 years ago

@clariusk From the image I've provided, should originX and originY be negative?

clariusk commented 3 years ago

yes, sorry it's not clear from the documentation, the image is using cartesian quadrant 3, so negatives make sense. to calculate the pixel location of the start/apex of the image, divide the originX/Y parameters by the micronsPerPixel parameter.

daudrain commented 3 years ago

Thank you