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

Differentiation Between Each Point For Click Based Instance Segmentation #10

Open
JB4Jaison opened this issue May 2, 2023 · 6 comments

Comments

@JB4Jaison
Copy link

Hello team!

First of all, amazing job on the napari plugin for SAM! Makes annotation tasks much simpler and my workload is almost halved as compared to previous workflows!

I had one concern though. Currently as I am performing instance segmentation using the click annotation mode, is it really difficult to discern which point is a positive click and which ones are negative. There are cases where two points are to be close to each other (such as boundaries) where one might be a positive one and the other one negative but, there is no way of confirming which one's which. One should currently rely on memory or going for a full-on undo streak till you reach that point. Is there a way of adding another color or shape for each point to differentiate between each click?

Also, a similar problem is when you have multiple labels in the same image. Every single click is a white dot which can cause similar problems as above.

@Karol-G
Copy link
Collaborator

Karol-G commented May 3, 2023

Hey,

Thanks for noticing this problem! Usually, the points should be colored with the respective labels. However, at the moment points don't scale with the image size appropriately. So it might be that you are working with a relatively large image, which results in small white points. Could you maybe screenshot and upload an example image with points to confirm this issue? Could you also give me some exemplary image sizes you are working with?

In normal circumstances, the points should look like this:

image

Best,
Karol

@JB4Jaison
Copy link
Author

An example image with the dots would be the one below:

github_sam_issue_image

Images sizes vary from 60MB to 130MB. They are 3D tiff files with around 300 images in a stack.

@Karol-G
Copy link
Collaborator

Karol-G commented May 10, 2023

Have you tried to increase the point size? This might solve your problem.

image

@JB4Jaison
Copy link
Author

I might need a bit more help on where these settings are located. I have tried changing the point size in the "Ignore this layer" layer but then it defaults to size 3 the next time I do a middle mouse click.

@Karol-G
Copy link
Collaborator

Karol-G commented May 10, 2023

The point size options are on the napari-sam widget itself on the right sight below the activate button.

@JB4Jaison
Copy link
Author

JB4Jaison commented Jun 29, 2023

I had to update napari to see these options. Now that I did, I have tried changing the size and it seems to have no effect.

I have noticed that the point's face and edge colors are white on the "Ignore this layer1" layer. Is this supposed to automatically update to the color of the label? (I am using the same label color as in the previous image)

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

No branches or pull requests

2 participants