Open bdiggines opened 1 year ago
I have done a preliminary exploration of the issue, and found the following:
The reason that they won’t flatten nicely I think is due to the grains taking up so much of the image. Due to this, the initial median row alignment stage considers the rows where the grain is thickest, to have a median that lies on the grain rather than the background. This results in part of the image being centred incorrectly. (See image attached). There was an assumption made during development that any image would not be more grain than background, as that is how we determine which is which. I will consider this and speak with Alice to try to come up with a solution. I know that this is not a solution, however if you are doing more imaging, taking more zoomed out images (or just larger images) so that any grain is not more than say 1/4 of the image, would prevent this from occurring I think. You wouldn’t have to sacrifice on resolution, but it would take longer to scan 😞
TLDR: I know why it happens Going to talk to people about potential solutions, but it will probably mean major-ish changes, so I don’t think it will be quick… Taking bigger images or ensuring the grains are 1/4 of the image or less should prevent this in future
Describe the bug I have some images of samples which have a large variation in height. The molecule has some sections at 2-3nm and others at 10-15nm. Therefore when flattening with TopoStats, streaks are still present where some of the low sections are. The config file also doesn't seem to facilitate the variation in threshold required to form the correct mask.
To Reproduce
python pygwytracing.py
/python topostats/topotracing.py
Expected behavior Flattening of the background around the whole molecule
Output