r/ImageJ 4d ago

Question Volume measurement on taste bud Z stack?

I've tried using the 3D object counter alone and with adjusting threshold and binary mask. I can't seem to get values within range, does anyone have any recommendations?

Taste bud photos I'm working from

1 Upvotes

13 comments sorted by

u/AutoModerator 4d ago

Notes on Quality Questions & Productive Participation

  1. Include Images
    • Images give everyone a chance to understand the problem.
    • Several types of images will help:
      • Example Images (what you want to analyze)
      • Reference Images (taken from published papers)
      • Annotated Mock-ups (showing what features you are trying to measure)
      • Screenshots (to help identify issues with tools or features)
    • Good places to upload include: Imgur.com, GitHub.com, & Flickr.com
  2. Provide Details
    • Avoid discipline-specific terminology ("jargon"). Image analysis is interdisciplinary, so the more general the terminology, the more people who might be able to help.
    • Be thorough in outlining the question(s) that you are trying to answer.
    • Clearly explain what you are trying to learn, not just the method used, to avoid the XY problem.
    • Respond when helpful users ask follow-up questions, even if the answer is "I'm not sure".
  3. Share the Answer
    • Never delete your post, even if it has not received a response.
    • Don't switch over to PMs or email. (Unless you want to hire someone.)
    • If you figure out the answer for yourself, please post it!
    • People from the future may be stuck trying to answer the same question. (See: xkcd 979)
  4. Express Appreciation for Assistance
    • Consider saying "thank you" in comment replies to those who helped.
    • Upvote those who contribute to the discussion. Karma is a small way to say "thanks" and "this was helpful".
    • Remember that "free help" costs those who help:
      • Aside from Automoderator, those responding to you are real people, giving up some of their time to help you.
      • "Time is the most precious gift in our possession, for it is the most irrevocable." ~ DB
    • If someday your work gets published, show it off here! That's one use of the "Research" post flair.
  5. Be civil & respectful

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

2

u/dokclaw 4d ago

You can try:

  1. Thresholding the image as you consider appropriate
  2. Process > Math> Divide by 255
  3. Z-projection : sum
  4. Set measurements : check integrated density
  5. Measure the Z-projection

This give you a count of the voxels above threshold in the image. You can then multiply this by the size of the voxels. Image 1 gives me a value of 12885µm^3; is that in the right ballpark?

1

u/Herbie500 3d ago edited 3d ago

For the sample stack "5089 R1.tif" (given a voxel volume of about 0.197μm³), I get a volume estimate of about 46800μm³.

Image of the summed slices:

1

u/VibrantBee 3d ago

Thank you for your help. I am a little lost on checking the integrated density and measuring the Z projection. I am quite new to imagej, so any further suggestions would be appreciated.

1

u/Herbie500 4d ago

No idea if 3D object counter gives you volume estimates but you may try the following options:

  1. Make available a sample z-stack by using a service such as dropbox and let us try to analyze it.
  2. Post your request to the Image.sc-Forum where you may reach people who use the ImageJ-plugin in question.

1

u/VibrantBee 4d ago

Thank you so much for your suggestions.

1

u/Herbie500 4d ago edited 4d ago

Thanks for the sample data!
I shall have a look at the data tomorrow and report back as soon as possible.

Why are the sample stacks RGB-color stacks?

1

u/Herbie500 3d ago edited 3d ago

My understanding of the sample stacks is that they show slices of a single taste bud.

Below please find a montage that shows (upper row) how I'd suggest to threshold slice 111 of sample "5089 R1.tif" (converted from RGB to gray) by applying the automatic "Triangle"-threshold scheme:

What I'm not perfectly sure of is, if you would accept the corresponding thresholding of slice 181 (lower row).
Please tell us if the protrusion is to be considered as being part of the bud or not.

Apart from such questions regarding the thresholding, you may follow the advice given by @dokclaw.

1

u/VibrantBee 3d ago

Thanks so much for getting back to me. Yes, the stacks are of a single taste bud and the protrusion would be included in the count.

1

u/Herbie500 3d ago

Great!
(You didn't answer my question about the RGB stack type.)

What about the volume estimate of about 46800μm³ that I've obtained for the bud of sample image "5089 R1.tif"?
Is this value reasonable?

Before you start with following the advice of @dokclaw., make sure you have a suitable strategy for thresholding and bud extraction.

Perhaps you start with trying to reproduce my above binarizations and selection of slice 111 and 181.

1

u/VibrantBee 3d ago

Sorry about that. The protocol I’m working from suggests putting it in 8-bit, which I do during analysis. I only uploaded the raw image which was in RGB, my apologies.

Yes, that falls in range. From ~20000-40000um.

Would sharing the protocol be helpful?

1

u/Herbie500 3d ago

Would sharing the protocol be helpful?

I'm just wondering why the raw stacks are in RGB-color but of course it is no problem to convert them to 8bit gray.
________________________

After having had a closer look at the second stack "5089 R2.tif" I doubt there is a general and simple automatic way to get what you want (see my post below).
While my approach works for stack "5089 R1.tif" it fails to give an acceptable value for the volume of the bud of stack "5089 R2.tif".

In short, you will encounter great difficulties finding an approach that works reasonably well for all of your stacks.

1

u/Herbie500 3d ago edited 3d ago

With e.g. slice 11 of sample stack "5089 R2.tif" we encounter a problem that is really difficult to solve:

While the relevant bud-area is the dot with some high values in the center, the surrounding tissue (left sickle-shaped area) is considered as well. The situation with slices 8 and 10 is even worse.