Closed CorBer closed 2 months ago
The already existing batching works mostly like that, except the color reassignment map is collected from all images.
Additional way to reduce memory use would be to divide the images to e.g. quarters after alignment, and process one section at a time.
Adding CXXFLAGS += -DUSE_MALLINFO
will log the memory usage of the process at different points of the stacking. Unfortunately there isn't a portable way to get the amount of available memory, otherwise focus-stack could avoid starting new tasks until there is enough memory.
Hi Peter,
But I do not get intermediate results stored. My topics for focus-stacking are alive and often dont keep position. When you process a stack in "substacks" and allow these results to be stored (preferably in 16bit PNG) these substacks can than be combined by the user but more selective. As stated your software seems to work great as it is now. I am setting up my programming environment (Lazarus) to build a simple GUI around your application. This way I hope to exploit substacks (will call the application multiple times with different sets of images) and create an "multi-image" editor as Zerene allows.
Thanks for the fast answer, I will check what CXXflags reports.
EDIT: CXXFLAGS need to be added when compiling the software it seems (Ive never worked in C++ in this way so sorry for the lack of knowledge). Currently I will just prevent this from happening by using substacks.
cheers
Cor
My initial GUI is work and I can create slabs (substacks) easily. But I have a question, is it possible to align all image first and then only stack so alignment is not needed again ? I have tried align-only but that only creates a set of images that are aligned. This would allow users to experiment with different stack settings easily as alignment does not have to be recalculated all the time.
Hi,
From the lack of a further response its my guess that this option is not there. I will experiment further.
cheers Cor
Hi
I just discovered your focus-stacking code and the quality of the alignment/stacking looks really good. But I do have issues on my machine (Linux). It seems that it can easily run out of memory (at least it seems like that) .. last section of the verbose output (stacking 30 image)
I get around that by simply closing all software and only using thread=1.
My feature request is "slabbing", I havent seen that mentioned but it can be very handy for larger stacks. This is used for instance also in Zerene Stacker. You create multiple sub-stacks that use N frames and have M frames overlap between them. After this you can then join these sub-stacks into a final stack.
Thanks for working on this topic and producing working code !!
cheers Cor
waveSharp Free Image sharpen Software https://github.com/CorBer/waveSharp
TeensyBat Bat Detector https://github.com/CorBer/teensy_batdetector
RegiStax Free Image Processing Software http://www.astronomie.be/registax