<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"><html><head><meta name="qrichtext" content="1" /><style type="text/css">p, li { white-space: pre-wrap; }</style></head><body style=" font-family:'DejaVu Sans'; font-size:9pt; font-weight:400; font-style:normal;">On Tuesday 21 July 2009, Dmitry Kazakov wrote:<br>
> Well, yes. It's more theoretical and experimental issue =). Even<br>
> colors filters would suffer much because of that. In theory we could<br>
> ask a filter whether he could work with downsampled input and,<br>
> conforming to it's decision, stop or continue running merge strategy<br>
> on mipmapped tree. In theory...<br>
><br>
> Mipmapping would create too much overhead here. Nevertheless, i think<br>
> that our filter preview algo should support preview on downsampled<br>
> image. I don't know how about all filters in Photoshop, but Color<br>
> adjustment tools are cirtainly applied to downsampled image first. And<br>
> only when you press OK, it applies as usual.<br>
It's about previewing, I don't think users would see a problem if we first show something not very accurate but quickly, and then later in the background compute the real deal.<br>
In fact we have three classes of filters:<br>
* pixel-base (color adjustment...): their parameters aren't dependent on the zoom level, results are going to be in 99% of the situation very close when zoomed<br>
* kernels (blur...): the parameters are dependent of the zoom, but we can give the zoom to the filter to adjust the parameter, it's likely to be insufficient to give an accurate result<br>
* demosaicing: zooming an unmosaiced image gives unexpected results anyway :) but the filter always have to be computed at zoom = 100%<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>That said, the pyramid might not be the best answer to the preview problem. And I am not sure if the drawbacks mentioned by Dmitry are not worth the trouble. So we will have to keep being imaginative on the subject :) And investigate region of interest, priority, or "scaling down to the zoom size the layer, filtering, and the scaling up, compose, display, then in the background the real deal", or whatever else idea we can come up with.<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>-- <br>
Cyrille Berger<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p></body></html>