nion-software / nionswift

Nion Swift is open source scientific image processing software integrating hardware control, data acquisition, visualization, processing, and analysis using Python. Nion Swift is easily extended using Python. It runs on Windows, Linux, and macOS.
http://nion.com/swift
GNU General Public License v3.0
45 stars 33 forks source link

Add command to rebin data by an integer (default two) #647

Open cmeyer opened 3 years ago

cmeyer commented 3 years ago

Initially should work in the datum dimensions; but eventually user should be able to choose which dimensions are being decimated. Also, consider implementing the general decimation algorithm (currently used in displays).

Brow71189 commented 3 years ago

I think this should simply replace the current "Rebin" functionality. Right now, "Rebin" does (only) allow to rebin by an integer, but it requires the user to input the final height/width of the result. So if you want to bin by 2, you have to calculate how big your image will be. This works but is a bit awkward. So simply changing the UI of the exisiting Rebin should do it.