topaz icon indicating copy to clipboard operation
topaz copied to clipboard

displayed pick doesn't go large with zoom in

Open hellont92 opened this issue 6 years ago • 5 comments

Hi I try to use gui to pick particle. However, the display pick circle doesn't go larger when I zoom in the figure. (I use firefox) Is there any way to solve this issue?

hellont92 avatar May 10 '19 02:05 hellont92

Hello,

This is currently the normal/expected behavior of the GUI. As Topaz GUI is based on VIA and that part of the code is quite convoluted, I have put in a request to the VIA developers here:

https://gitlab.com/vgg/via/issues/186

If they add that feature, I will transfer it to the Topaz GUI.

Best, Alex Noble

alexjnoble avatar May 10 '19 15:05 alexjnoble

The VIA developers say this will be added in the next version. Stay tuned!

alexjnoble avatar May 10 '19 16:05 alexjnoble

I also want this feature. In addition, it would be nice if one can change the circle diameter. Finding a right particle radius for training and extraction would be easier.

biochem-fan avatar Oct 09 '19 16:10 biochem-fan

We would also like these features, but unfortunately we are not web or GUI developers. It took about a month to get the GUI to where it is from where it began as VIA and there things I want to code into it that I don't know how. If anyone wants to add these features, please do so and make a push request.

alexjnoble avatar Oct 09 '19 19:10 alexjnoble

A user-side hack to change the circle size is to open Developer Tool (in Chrome for Firefox) and run VIA_REGION_POINT_RADIUS = 10 (in pixels) and click somewhere.

For zoom-in, one has to modify the _via_draw_point function:

function _via_draw_point(cx, cy, r) {
   _via_reg_ctx.beginPath();
   _via_reg_ctx.arc(cx, cy, r / _via_canvas_scale, 0, 2*Math.PI, false);
   _via_reg_ctx.closePath();
}

The remaining task is to add a field in the setting tab.

I will make a pull request when I have time.

biochem-fan avatar Oct 09 '19 20:10 biochem-fan