starfish
starfish copied to clipboard
Add pad/crop pipeline component
I order to properly register images, a preprocessing step of either padding or cropping your stack to make may be required
This would definitely be nice to have!
- Will it be possible to pad an
ImageStack
, do spot-finding, and then 'crop' the resulting spot table (IntensityTable
)?
To give context: The trackpy localmaxpeakfinder avoids doing spot finding along ImageStack
edges, so being able to pad the ImageStack
(x, y, z dimensions), find spots, and then crop everything back to original dimensions would be nice for recovering those edge spots.
- Will this essentially be bringing numpy's pad to starfish?
The way I has originally been thinking about it was that someone would pad/crop their list of alignedImagestacks so that they could be transformed into one object instead of a list. And then maybe run that object through registration. But your use case sounds equally valid! I was planning on using numpy.pad so I will try and build it in a way that can be used for both use cases
I could see changing the dimensions of ImageStacks
potentially opening up a can of worms though so if it doesn't work out, no worries.
Are there other edge effects that arise from padding with zeros?
The biggest challenge here is probably that we'll be doing a lot of copying.