Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

displayed pick doesn't go large with zoom in #18

Open
hellont92 opened this issue May 10, 2019 · 5 comments
Open

displayed pick doesn't go large with zoom in #18

hellont92 opened this issue May 10, 2019 · 5 comments

Comments

@hellont92
Copy link

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?

@alexjnoble
Copy link
Contributor

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
Copy link
Contributor

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

@biochem-fan
Copy link
Contributor

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.

@alexjnoble
Copy link
Contributor

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.

@biochem-fan
Copy link
Contributor

biochem-fan commented Oct 9, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants