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

color_mask not created: change color description #5

Closed
HIN0209 opened this issue Feb 9, 2018 · 6 comments
Closed

color_mask not created: change color description #5

HIN0209 opened this issue Feb 9, 2018 · 6 comments

Comments

@HIN0209
Copy link

HIN0209 commented Feb 9, 2018

Hello, I enjoy this app (v 1.2.0 binary downloaded) with my Ubuntu16.04. I have two issues.

First, I only set 'Manual Mask' option but no 'Watershed Mask' option, mask with one of the colors manually, and 'Save current image'. Then, the created xx_color_mask.png is completely dark, while _mask.png shows the mask (based on a jpg RGB image). Please advise how I can get a color mask image. My goal is to mask small areas with 2-3 classes, so watershed mask is not necessarily needed.

The second issue is whether I can change the color labeling description (e.g., red for 'rider', white for 'road marking'), because I am using this for non-driving images, such that custom color description would be more clear for me to label.

Edit: I notice that no area should be unmasked. If so, other areas should be masked as 'neutral'. How do I mask the rest of the area to neutrally mask?

@abreheret
Copy link
Owner

abreheret commented Feb 14, 2018

For your first issues, The xx_mask.png is gray image. It contains the "R/G/B" with "id/id/id" of labels mask for each pixels. To generate color_mask click on watershed button or press "SPACE BAR" and save. The xx_mask.png image just serves to reproduce the result image color and image watershed

Your second issues, you can change and load (Edit->load) (Tools->Open Config File) a file.json (config.json) which contain the color/id/name/... of each label. The only constraint is to have a unique id between 0 and 255 for your labels.

@HIN0209
Copy link
Author

HIN0209 commented Feb 14, 2018

Thank you!! I will try as instructed.

@HIN0209
Copy link
Author

HIN0209 commented Feb 16, 2018

Hello,

For the first issue, it works fine by pressing "Watershed" to yield a color mask image. Thanks.

For the second issue, I tried both binary versions by Ubuntu and Windows. "Edit" only has Undo and Redo, so there is no "load" option. In "Tool", there is "Open config file", but opening the revised config file did not change the color description. Does your advice works only to a build version??

abreheret added a commit that referenced this issue Feb 16, 2018
@abreheret
Copy link
Owner

Sorry try with this zip release (in attachement). With this release, I test and its works with my color_test

PixelAnnotationTool_x64_v1.2.0-7-gfd39e25.zip

@abreheret abreheret reopened this Feb 16, 2018
@abreheret
Copy link
Owner

abreheret commented Feb 16, 2018

tell me if ok for you, to create en new tag release.

@HIN0209
Copy link
Author

HIN0209 commented Feb 16, 2018

How quick!! I tried this with my Windows 10 and works fine. Appreciate it.

@HIN0209 HIN0209 closed this as completed Feb 16, 2018
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