> > I see that the sort_u8() func into schrofilter.c use a basic bubble > > sort scheme > > => is it volontary ? > > ...
> This is only used in the center-weighted median code, which must > be specifically enabled. CWM is particularly bad at filtering out > noise in video, especially the kind of noise that make video encoders > less efficient. Where is the source file that store the center-weighted median code ? > Sorting neighboring pixel values is a particularly dumb method of > doing a CWM filter (when all you want is the median), so fixing the > dumb method of sorting is not really going to make the code good. > The correct way to do CWM is roughly min(max(center,min(neighbors), > max(neighbors)), at least for weight=4. (IIRC, this is from memory) ??? lapatoucompri :( What is the signication of "min(max(center,min(neighbors), max(neighbors)), at least for weight 4" ??? If I have understand, this is something like sorting color fragments intensities for to find the median and min/max colors/intensities of a zone for to apply on it a more adapted denoising ? > I'm only going to apply patches to this code to a) remove it, or b) > rewrite it in Orc. The latter clearly requires using something > SIMDable for median filtering. Interestingly, bubble sort can be > implemented in SIMD, which may provide insight into why it was > originally chosen. (But my guess is that the reason why it was > chosen is that it took <5 minutes to implement.) I take a look about how to make median filtering / denoising into a SIMD way and come back when I have find enough interesting infos on the subject @+ Yannoo ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Schrodinger-devel mailing list Schrodinger-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/schrodinger-devel