Currently when I scale down image layer it seems to use nearest neighbor to display the result, also the look differs relatively if Pixel Model is on or off.
Here is the experiment, with the following 256x256 image:
Scaling it down to 64x64 I get following result with Pixel Mode on:
However when I fix the layer I get:
Any reason of such behavior Is there any way to control the method layer gets scaled (both for preview and Fix Layer) ?
This is pretty annoying because unless I ensure all bitmap layers are Fixed, I get different output that what I see.
Ability to select image layer scaling method
-
ono
- Mitglied
- Beiträge: 148
- Registriert: Mi 21 Jul 2010 23:50
- Wohnort: Baden, Switzerland
Ability to select image layer scaling method
Du hast keine ausreichende Berechtigung, um die Dateianhänge dieses Beitrags anzusehen.
Adam Strzelecki | nanoant.com | CBCT/PET tomography engineer
-
Herbert123
- Mitglied
- Beiträge: 2452
- Registriert: Sa 12 Mai 2012 21:38
Re: Ability to select image layer scaling method
Yes, I totally agree - I have also asked about this: when we fix a layer currently Lanczos is applied, but that is the worst one for that type of imagery. When we fix a layer, we should get an option to choose the sampling method.
Currently I workaround this by only using the layer resize option in the menu. It means I scale the layer down visually, take note of the dimensions, then undo the scaling, and use the menu option which does include a choice of downsample algorithms (at least, in the newer beta versions).
For scaling down and up layers there should be some sort of option to control the sampling algorithm. And then there's the lack of an overall pixel alignment option for all layers...
Currently I workaround this by only using the layer resize option in the menu. It means I scale the layer down visually, take note of the dimensions, then undo the scaling, and use the menu option which does include a choice of downsample algorithms (at least, in the newer beta versions).
For scaling down and up layers there should be some sort of option to control the sampling algorithm. And then there's the lack of an overall pixel alignment option for all layers...
/*---------------------------------------------*/
System: Win10 64bit - i7 920@3.6Ghz, p6t Deluxe v1, 48gb (6x8gb RipjawsX), Nvidia GTX1080 8GB, Revodrive X2 240gb, e-mu 1820, 2XSamsung SA850 (2560*1440) and 1XHP2408H 1920*1200 portrait
System: Win10 64bit - i7 920@3.6Ghz, p6t Deluxe v1, 48gb (6x8gb RipjawsX), Nvidia GTX1080 8GB, Revodrive X2 240gb, e-mu 1820, 2XSamsung SA850 (2560*1440) and 1XHP2408H 1920*1200 portrait
-
Martin Huber
- Entwickler

- Beiträge: 4298
- Registriert: Di 19 Nov 2002 15:49
Re: Ability to select image layer scaling method
High-quality scaling is too slow for dynamic on-screen rendering.ono hat geschrieben:Any reason of such behavior
Currently not.ono hat geschrieben:Is there any way to control the method layer gets scaled (both for preview and Fix Layer) ?
I don't recommend fixing the image layers, because you will lose information. If you want to resize the image layer later, you may need that information.ono hat geschrieben:This is pretty annoying because unless I ensure all bitmap layers are Fixed, I get different output that what I see.
Martin
-
ono
- Mitglied
- Beiträge: 148
- Registriert: Mi 21 Jul 2010 23:50
- Wohnort: Baden, Switzerland
Re: Ability to select image layer scaling method
Understood.Martin Huber hat geschrieben:High-quality scaling is too slow for dynamic on-screen rendering.ono hat geschrieben:Any reason of such behavior
Okay, the problem here however is that Lanczos sampling sometimes gives worse results (more blur) than Bilinear when downsampling. Would be nice if one can control the sampling of the particular layer, currently I can only switch Nearest Neighbor (no antialiasing)/ Lanczos. Or at least to have some global setting:Martin Huber hat geschrieben:Currently not.ono hat geschrieben:Is there any way to control the method layer gets scaled (both for preview and Fix Layer) ?
- Preview sampling method: [ Bilinear V] (by default, but why not let someone choose something else if one has decent CPU)
- Output sampling method: [ Lanczos V] (by default)
That's why inability to control way the layers are downsampled makes it even worse.Martin Huber hat geschrieben:I don't recommend fixing the image layers, because you will lose information. If you want to resize the image layer later, you may need that information.ono hat geschrieben:This is pretty annoying because unless I ensure all bitmap layers are Fixed, I get different output that what I see.
Adam Strzelecki | nanoant.com | CBCT/PET tomography engineer