knip icon indicating copy to clipboard operation
knip copied to clipboard

Image Viewer: Label values of 0 are indistinguishable from empty labels

Open imagejan opened this issue 8 years ago • 5 comments

In the Image Viewer node, labelings that have a label value of [0] (that you get e.g. when using a Create Labeling aggregation and using an Integer column for the labels) are shown in white and are indistinguishable from the EmptyLabel white background. Also, overlapping labels [0; 1] are indistinguishable from label [1].

The Randomize Label Colors function doesn't change the white color of 0 labels.


In the Interactive Segmentation View, everything works as expected (even without using an Image column), i.e. 0 labels have random colors.

imagejan avatar Mar 22 '17 16:03 imagejan

Unfortunately I can't reproduce this bug.

What I did:

  1. Add a label with Interactive Annotator.
  2. Use Label Transformer and set label to 0. (probably still a string label)
  3. Crop label with Segment Cropper.
  4. Use GroupBy and create a labeling with inttype labels.

Result in Image Viewer: image

tibuch avatar Mar 22 '17 16:03 tibuch

Ok, I tried to build an example workflow and encountered yet another related bug.

Here's my workflow: Label 0 Bug.zip

When I use Annotator > Feature Calculator > GroupBy with Integer labels, the labeling with value 0 extends to the full image dimensions:

image

When joining labels with offsets from other sources, I get the behavior described in the above post:

image

imagejan avatar Mar 22 '17 17:03 imagejan

Wow! That is "fascinating". I will investigate. Thanks for reporting.

tibuch avatar Mar 22 '17 17:03 tibuch

Any news on this? The issue is still the same with KNIME Image Processing 1.6.1.201806190602.

imagejan avatar Jul 04 '18 09:07 imagejan

@tibuch did you ever get around to investigating this? 😉 😆

imagejan avatar Jan 25 '22 20:01 imagejan