LBEM-CH / focus

High Throughput Electron Microscopy Image Processing Software
http://www.focus-em.org
GNU General Public License v2.0
35 stars 14 forks source link

Library: Preview of Image/FFT/Final Map should be smoothed with Qt::IgnoreAspectRatio, Qt::SmoothTransformation #151

Closed sthennin closed 7 years ago

sthennin commented 7 years ago

Could this still be implemented also in the "Library" preview?

Such as: pixmap = sourceImage->getPixmap().scaled((int) (scale * image->width()), (int) (scale * image->height()), Qt::IgnoreAspectRatio, Qt::SmoothTransformation);

sthennin commented 7 years ago

Also, we calculate a 400x400 px preview into every MRC file, by adding that together with a second copy of the header to the end of the MRC file. When calculating this within 2dx, we should probably apply smoothing also, to increase the SNR. Smoothing should ideally be done with a Lanczos filter in real space, which is the same (?) as a Butterworth filter in Fourier space.

nikhilbiyani commented 7 years ago

Done, now with PNG