There is a new KNIME forum. You can still browse and read content from our old forum but if you want to create new posts or join ongoing discussions, please visit our new KNIME forum: https://forum.knime.com

Count "Circles" of an PES Fiber membran generator

Member for

1 year 7 months Deathlezz

Hello all,

I was asked to do Image Processing with the picture of a generator filled with PES Fiber membranes. So till I have no clou about KNIME, I was a bit overwhelmed. Till now I used the given workflow for cell counting, but it stops and got a problem with the "Waehlby Cell Clump Splitter" with the notification you see in the file. It seems like I miss a second collumn with the information needed. Do you have an Idea what is the problem?

Thanks

Comments
Fri, 12/22/2017 - 10:54

Member for

6 years 4 months

gab1one

Hi Deathlezz,

The error indicates that you are missing a column that contains images (ImgPlusValue is the internal name for images).

I have a few resources for you to get an easier start with KNIME:

If you have any more questions feel free to ask them here!

best,

Gabriel

Tue, 01/02/2018 - 01:32

Member for

1 year 7 months

Deathlezz

Hey Gabriel,

thank you so far. Now I got the problem that the "easy" picture I test the workflow with is segmented in to many parts. Ich just want to count and segment the "circles" at the end. Is there a way to reach the goal. Cause like it is now, the counted number is much higher than I want it to be.

Best regards!

Files
Try1.PNG8.73 KB
Wed, 01/03/2018 - 10:39

Member for

6 years 4 months

gab1one

There are two ways you can deal with this:

  1. You can use the Labeling Filter  node to filter out segments that touch the border of the image, this should get rid of the large rectangular regions.
  2. You can use the Image Segment Features node to calculate the circularity feature and use it to filter out only the round enough segments.

I have attached an example workflow that demonstrates this using the image you uploaded. I also included how I got to the selection criterion by using a decision tree.

best,

Gabriel

 

Files
Thu, 01/04/2018 - 12:22

Member for

1 year 7 months

Deathlezz

Thank you, so far the segmentation works, but at the end I count the "Number of Unique Labels" and it counts 24. I do not know how to make it count the values so that the result is correct (8)?

Best regards

Files
Try2.2.PNG2.64 KB
Try2.PNG17.48 KB
Thu, 01/04/2018 - 05:01

Member for

6 years 4 months

gab1one

You are probably running your analysis on a 3 channel image (RGB colors), resulting in each "circle" being detected in each channel which results in 3x8 = 24 unique labels. You have several options to deal with this:

  • Flatten your image to one dimension using the Projector node, using the projection operation AVG_INTENSITY and the projection direction Channel, worked very well for me.
  • Only work on one channel, you can split the image using the Spliter node and use the Column Filter to remove the dimensions you don't need (you can see how I did that in the Create Labeling metanode in the  example workflow I added to my last post.
Thu, 01/18/2018 - 10:51

Member for

1 year 7 months

Deathlezz

Is there a possibility that KNIME can recognise a shape. In a way that it only holds shapes that are close to circles?

Thu, 01/18/2018 - 12:08

Member for

6 years 4 months

gab1one

Yes you can, I already included this in my workflow, see my earlier answer:

You can use the Image Segment Features node to calculate the circularity feature and use it to filter out only the round enough segments.

The circularity feature is based on a mathematical function that tries to measure how "circle-like" a shape is. If it is not sufficient to distinguish between your shapes, you will need to find other features that do, take a look at the Geometric features available in the Image Segments Features node.

Thu, 01/18/2018 - 03:06

Member for

1 year 7 months

Deathlezz

I segmented the Image and got the circularity, but how do I tell the software to just use the ones with a certain value? Sry if it is described in the Workflow you posted, I can't open it, because of IT "safety issues".

Thu, 01/18/2018 - 03:36

Member for

6 years 4 months

gab1one

I just used a Row Filter node, see following image for the values I used:

Files
Thu, 01/18/2018 - 03:36

Member for

6 years 4 months

gab1one

I just used a Row Filter node, see following image for the values I used:

Files
Files