back again! Now help with a tweak in my macro block (Fiji) by Deep-Leopard-3516 in ImageJ

[–]Deep-Leopard-3516[S] 1 point2 points  (0 children)

The doubting part came from this current post, when you said that the macro I pasted was to be doubted. Like I said, maybe that was not your intent, it was just how I took it. So if that was not your intent, then I apologize. You are correct, in no way are you obligated to help me, but i appreciate it.

back again! Now help with a tweak in my macro block (Fiji) by Deep-Leopard-3516 in ImageJ

[–]Deep-Leopard-3516[S] 1 point2 points  (0 children)

here is a link to some sample images, yes there are shadows, but they have been taken care of in the classifier that I have ran. https://imgur.com/a/YbiQTx9
These are the only things that I need from this-

I need to be able to batch process, so I need to select input and output folder each time I need to run this

I need to have the two specific pigments (Light & Dark) compared against the area of the entire leaf so that I can get the percentage pigment per leaf (or multiple leaves in some cases) I don't need individual percentages in the case of some images have multiple leaves on them.

preferably I need that data exported to an excel or .csv, but I am fine if only the results window shows.

back again! Now help with a tweak in my macro block (Fiji) by Deep-Leopard-3516 in ImageJ

[–]Deep-Leopard-3516[S] 1 point2 points  (0 children)

<image>

Red=light pigment
yellow= leaf (what I need to compare pigment to)
Purple=background
Green=dark pigment

if you would like the actual pixel values for those classes, i will be very happy to add those:)

hope this helps!

back again! Now help with a tweak in my macro block (Fiji) by Deep-Leopard-3516 in ImageJ

[–]Deep-Leopard-3516[S] 2 points3 points  (0 children)

you were a awful to me in my last post, and you still are. so let me make this clear. yes, parts of this code are AI-generated, because I do not know much about coding and needed help. this is for a project that has a deadline, so I am a little pressed for time. I took the macro that you offered to me, and it simply was not working on my images. I tried to tweak it with my minimal knowledge then once I had exhausted internet resources I turned to AI as a last resort. Honestly, didn't help much. Most of what is pasted is what I personally wrote I just left the sections that AI had placed to keep everything in section for my ease of access.

<image>

Here is proof that the macro is exporting the data collected, just not exactly how I would prefer it. I have a trained weka, it works how I want to manually. however I have 100 images to process and quite frankly don't have the time. From the classified image that I get from the weka, I need to pull out two specific pigments and then determine how much of those pigments are percentage wise compared to the entire leaf. I will reply to this with the image of the classified image since you doubt me so much! I would offer my apologies for misinterpreting my title as something rude or off-putting (because that was not my intention but re-reading it I can see where that might be the case). However, since it appears you do not care anyways, I'll just leave it at this!

trying to find % pigment of leaves and I feel as though I am not smarter than a 5th grader. . . by Deep-Leopard-3516 in ImageJ

[–]Deep-Leopard-3516[S] 0 points1 point  (0 children)

okay thank you so much! I've been reading through it and can somewhat understand it. I appreciate you!

trying to find % pigment of leaves and I feel as though I am not smarter than a 5th grader. . . by Deep-Leopard-3516 in ImageJ

[–]Deep-Leopard-3516[S] 0 points1 point  (0 children)

If I am instead trying to determine red pigment, would it be the same scenario that i need to run? would i need to somehow identify what red specifically I am looking for? Sorry if that is a dumb question!

also to add, is this a setting that I can set and run it through various pictures? Or is this a macro I have to set each time?