fredmiranda.com
Login

Moderated by: Fred Miranda
  New fredmiranda.com Mobile Site
  New Feature: SMS Notification alert
  New Feature: Buy & Sell Watchlist
  

FM Forums | Leica & Alternative Gear | Join Upload & Sell

1       2              end
  

Archive 2012 · Zeiss Thread Image Processing/Shooting Techniques

  
 
Samuli Vahonen
Offline
• • • •
Upload & Sell: Off
p.3 #1 · Zeiss Thread Image Processing/Shooting Techniques


Here is comparison tool for posted images:
http://www.vahonen.com/2012/temp/Toothwalker_resizesharpen/compare.html

Since some have forbitten their images to be referenced outside Fred Miranda you may need to do quite big effort to display all the images.

EDIT: it was quite simple:
1. Load the comparison page to it's own web browser tab
2. Reload page 2 from this thread in other tab
3. Go to the tab where comparison page is and use mouse over and the big images are displayed even thumbnails won't show up

EDIT2: even easier wayaround to display some of these images, which don't always display:
1. Save the comparison page to your hard drive
2. Open the compare.html locally from your hard drive
(if I change the compare.html then you need to load it again to reflect changes)

Samuli



May 26, 2012 at 06:51 AM
Mescalamba
Offline
• • • •
Upload & Sell: Off
p.3 #2 · Zeiss Thread Image Processing/Shooting Techniques


Whoa.. thats interesting.

So you output photo in gamma 1.0 and then process it and then revert back to gamma 2.2?

Might try this. I guess it wont avoid moiré? :/ (moiré caused by camera..)

Edit:

Just tested it. Pretty impressive. Near zero artifacts.



May 26, 2012 at 08:01 AM
davidearls
Offline
• • • •
Upload & Sell: Off
p.3 #3 · Zeiss Thread Image Processing/Shooting Techniques


I'm not a LR user. I assume it uses Adobe Camera RAW, which I and many others abandoned long ago. I moved to DPP first and have since ended up with BibblePro. Even starting from Bibble, I can see color shift when mages are opened in Photoshop for final processing. Luckily, I can recover the changes fairly simply in Photoshop, but I'm sort of underimpressed by Photoshop, personally.


May 26, 2012 at 02:54 PM
Toothwalker
Offline
• • •
Upload & Sell: Off
p.3 #4 · Zeiss Thread Image Processing/Shooting Techniques


Samuli Vahonen wrote:
All of this comes to basics of processing images "naturally" or "unnaturally". In "nature" light and these things are linear. In computer due to using CRT tubes in past we have ended up to using gamma to display images correctly. However all formulas in world are linear unless they have been "compensated"/"corrected" to take the gamma into account. However in graphics almost all software does the tricks without this "compensation"/"correction" while most of the people only process only gamma raped images. Weird, but many things man have created are weird and not very logical... BTW. Also if you work
...Show more

When I say that I don't do color management I mean that I do not actively bother with it and just use all available tools with their default settings. At one point I started to look into these matters, and got an incredible headache as well as a system crash. For instance, if you say that all formulas in the world are linear, I wonder "linear in what?" You may answer "Linear in the pixel value if the specified gamma value is one," but that does not really answer my question as I want to know what physical or other quantity these pixel values represent. Should the input to the formula be linear in the amplitude, or linear in the intensity of the light wave incident on the sensor? Is the sensor response linear, and what about the RAW converter? Usually the downscaling is the last step in a process involving adjustment of levels, contrast, curves, and whatever. What do these operations do to the linearity of whatever goes into the formula? To me, the gamma factor is only one of many unknown distortions.

Anyway, my whole color management consists of opening a Canon RAW file with LR4 and outputting an sRGB TIFF file. DPP offers the option to embed an ICC profile, but I can't find this option in LR4. Perhaps it is included by default, but then it is lost again after I do some bookkeeping tasks with Matlab. My apologies for that.



I asked color managed and 16-bit in order to process images in controlled manner with "civilized" and commonly used tools (e.g. PhotoShop). However 16-bit source image is not color managed so I have to use very basic and very hard to use tools (for common population). Commonly used tools (e.g. PhotoShop) don't have good and accurate ways to adjust gamma unless you do it via color management (well considering the level of average software user that is just a good thing...). Having image in 16-bit allows one to do translations between ICC-profiles (or different gammas) without losing image quality, this is
...Show more

The ring pattern is a stranger in the set, because it is not a photographic image but a computer-generated radial frequency sweep. The associated gamma value is 1, and your gamma 2.2 output is actually the correct result for gamma 1.0 processing.


And if then take a look at Your lanczos (the 2nd one, without sharpening) the same error seen in ring chart as example above, creating this "box" in center and darkening the surroundings:


The box is not an error, because a square central area is the proper response. The surroundings have a gray value of 0.5, as it should be for linear (gamma 1.0) processing.



Here is the same with ImageMagick and using gamma 1.0 (or thereabouts) to process the whole image (Lanczos resizing like in your image - Matlab Lanczos may be better than ImageMagick, I don't have any idea of Lanczos version in ImageMagick):


I assume you took the soft 16-bit original. In that case your result is virtually the same as what I get.


I find the selection of 4 of 5 photos in panels is done using only one goal in mind: finding artifacts of sharpened images.


That is not true. The buildings, yes, but the other ones are just a selection of different types of subjects. If I omit houses and buildings with roofs, vegetation, and people wearing clothes, there is not much left to choose from except barren landscapes. I was actually looking for a photo with text in it, which would just or just not be legible after the downscaling, but did not find it. I think that might be a particularly suitable subject to get a grip on original detail vs. artifacts, although I don't know whether it would work at all considering the generally small differences between the various approaches.


If I would shoot this kind of stuff it would be damn same what sharpening is used as long as it won't cause artifacts.


I don't care what the subject matter is. If there are aliasing artifacts with one subject, then the same treatment yields artifacts with any other subject even if these are not readily noticed. (Assuming that the original has frequency contents beyond the Nyquist frequency of the downscaled image.)


The only one photo had some depth of field, but it's blurry (original) and there isn't much to talk about the transition from focus to bokeh. Past years I have been evaluating sharpening and resize scripts based on "do they look the same as large non-resized or much less resized images" and "will I get same feeling of looking web photo as looking the real thing". The most important area I have been working with has been how depth of field is rendered in websize image. Typically "resize and then sharpen" will result to that the apparent DOF is multiple stops
...Show more

That is natural, because DOF is a function of the image size at a given viewing distance.



I tried few of my scripts to your image, but none of them work since made for images, which are 5600px on long side and resizing them to 975px (or 972px recently due to Fred Miranda forum bug). This is 1:5.9 resizing ration, while in your example image we are using 1:3 ratio.


Proper handling of only a specific resampling factor is not a strong selling point.


Also the original is sharpened, and having obvious sharpening caused artifacts, which my original images won't have.


The 16-bit version has zero sharpening. If that is still too sharp, there is nothing I can do except misfocus.

You are of course free to prepare an original yourself that suits your requirements, but if it does not contain 'difficult' subject matter the issue of original detail vs. artifact will most likely be unresolved and the look-good factor is all that is left.



May 26, 2012 at 07:56 PM
Samuli Vahonen
Offline
• • • •
Upload & Sell: Off
p.3 #5 · Zeiss Thread Image Processing/Shooting Techniques


Toothwalker wrote:
The box is not an error, because a square central area is the proper response. The surroundings have a gray value of 0.5, as it should be for linear (gamma 1.0) processing.

The box in center, which is clearly brighter than surroundings is artifact, or just doesn't look right. If put the ring pattern into 100% scaled to screen and go to other end of the room and take off my eye glasses (or take photo of screen which is clearly misfocused) the pattern looks equal gray, it doesn't have brighter box in middle. The bright box is clearly caused by scaling down it doesn't exist in fullsize image, so even it's mathematically proper response it's perceptually artifact. I'm scaling photos for people and not for computer to analyze... (yes yes, people won't like the artifact circles either...)

Toothwalker wrote:
That is not true. The buildings, yes, but the other ones are just a selection of different types of subjects. If I omit houses and buildings with roofs, vegetation, and people wearing clothes, there is not much left to choose from except barren landscapes. I was actually looking for a photo with text in it, which would just or just not be legible after the downscaling, but did not find it. I think that might be a particularly suitable subject to get a grip on original detail vs. artifacts, although I don't know whether it would work at all considering
...Show more
They are all still just concentrating to what happens to elements, which are in focus. No matter what tools or what methods I use I get more or less same results for the stuff what is in focus, the differences between methods are usually seen in focus-bokeh transition and bokeh area. (reading this keep in mind, I'm not concerned of artifacts as long as they don't distract, but instead keeping the same look in image as it appears in larger size - what you prefer is mathematical correctness approach, while my approach is based on perceptual matters/appearance based)

There is very little differences between good lenses "in focus"-area, however good lenses may have completely different rendering style, which typically is caused by focus-bokeh transition differences. What I prefer is to maintain the same appearance of rendering style, what is characteristic to the lens, also in small web display sizes.

Toothwalker wrote:
Proper handling of only a specific resampling factor is not a strong selling point.

I'm not selling... I doubt neither of us is selling sharpening methods, if we would both of us would fail:
- Lanczos not available in common tools (PhotoShop, LR, Aperture) [could be easily added, maybe some licensing thing since it has not been done]. Using Lanczos would improve >95% of shooters web photos, compared to how they post their photos at the moment.
- Step sharpening is not the easiest to setup or if done manually causes lot's of process steps. Also on slow machines would take forever since sharpening full-size image takes a long time.

The reason why I adjust scripts based on image is that I can adjust the frequency/size of detail to the step sharpening script is affecting the most. Doing only 1:3 instead of 1:6 gives me much less possibilities to adjust since there are less steps.

Toothwalker wrote:
You are of course free to prepare an original yourself that suits your requirements, but if it does not contain 'difficult' subject matter the issue of original detail vs. artifact will most likely be unresolved and the look-good factor is all that is left.

Well I would thing that the look-good factor is very meaningful aspect. In any case if I would do some scientific analysis etc., I would not base it on web-thumbnails raped with JPG compression... However I don't think there is no reason to continue discussion about this since we have clearly different preferences what comes to web-images.

Thanks for the discussion, learned a lot from Lanczos (and other filtering methods) while tried various things in ImageMagick. Added own Lanczos script for my main script creating 5 variations of same image, so if I find Lanczos scaled better in future, that will be the version I'll post those to web as well. May come handy, since at some point this summer I'm going to shoot for few days in Ĺland and most likely I'm shooting few photos of those damn artifact causing red wooden houses



If I would really shoot this kind of all sharp (except 2nd row middle image) photos I would most probably have developed better script, however here is the script I made for this:
1. convert to gamma 1.0
2. do sharpen filter twice in PhotoShop
3. resize to 2777px
4. do sharpen filter in PhotoShop
5. resize to 1200px
6. USM 125%, 0.2px (done in gamma 1.0 this is quite mild operation (halos and other artifacts point of view), nowhere close to doing it in sRGB for example)
7. convert to sRGB and remove profile


From the ones show this far I like theSuede's version best.

Comparison page updated.

Samuli



May 27, 2012 at 02:53 AM
AhamB
Offline
• • • • •
Upload & Sell: Off
p.3 #6 · Zeiss Thread Image Processing/Shooting Techniques


davidearls wrote:
Even starting from Bibble, I can see color shift when mages are opened in Photoshop for final processing. Luckily, I can recover the changes fairly simply in Photoshop, but I'm sort of underimpressed by Photoshop, personally.


Sounds like you don't have the color management set up correctly.



May 27, 2012 at 05:56 AM
Bifurcator
Offline
• • • • •
Upload & Sell: Off
p.3 #7 · Zeiss Thread Image Processing/Shooting Techniques


Just out of curiosity I ran my most invasive elaborate script on the test image and this is what it produced:


http://tesselator.gpmod.com/Images/Temporary/multipanel_bif_script.jpg


I wouldn't normally run this one on people but I like it for landscape and architecture. And it did indeed kinda mess up the people shot.




May 27, 2012 at 07:53 AM
AhamB
Offline
• • • • •
Upload & Sell: Off
p.3 #8 · Zeiss Thread Image Processing/Shooting Techniques


^lol local contrast to 1000%


May 27, 2012 at 08:44 AM
Toothwalker
Offline
• • •
Upload & Sell: Off
p.3 #9 · Zeiss Thread Image Processing/Shooting Techniques


Samuli Vahonen wrote:
The box in center, which is clearly brighter than surroundings is artifact, or just doesn't look right. If put the ring pattern into 100% scaled to screen and go to other end of the room and take off my eye glasses (or take photo of screen which is clearly misfocused) the pattern looks equal gray, it doesn't have brighter box in middle. The bright box is clearly caused by scaling down it doesn't exist in fullsize image, so even it's mathematically proper response it's perceptually artifact. I'm scaling photos for people and not for computer to analyze... (yes yes,
...Show more

The mean pixel value of the box is 0.5, which is the same as that of the surroundings. I would indeed call that mathematically correct. I presume the difference in perceived gray shade is due to averaging in linear space vs. averaging in the 'gamma space' of the screen. And although probably not related to the present case, we should also keep in mind that our human vision system is not particularly good at estimating relative brightness. Example 1;
Example 2



Well I would thing that the look-good factor is very meaningful aspect. In any case if I would do some scientific analysis etc., I would not base it on web-thumbnails raped with JPG compression... However I don't think there is no reason to continue discussion about this since we have clearly different preferences what comes to web-images.


I don't think our preferences for web-images are all that different. When an image looks good I am normally happy, and your photographs always look fine to me. The difference is that I am sceptical of the claims that surround the multistep methods.


Thanks for the discussion, learned a lot from Lanczos (and other filtering methods) while tried various things in ImageMagick. Added own Lanczos script for my main script creating 5 variations of same image, so if I find Lanczos scaled better in future, that will be the version I'll post those to web as well. May come handy, since at some point this summer I'm going to shoot for few days in Ĺland and most likely I'm shooting few photos of those damn artifact causing red wooden houses


Takk takk. I learned many things as well.



If I would really shoot this kind of all sharp (except 2nd row middle image) photos I would most probably have developed better script, however here is the script I made for this:
1. convert to gamma 1.0
2. do sharpen filter twice in PhotoShop
3. resize to 2777px
4. do sharpen filter in PhotoShop
5. resize to 1200px
6. USM 125%, 0.2px (done in gamma 1.0 this is quite mild operation (halos and other artifacts point of view), nowhere close to doing it in sRGB for example)
7. convert to sRGB and remove profile



Just out of curiosity, why would you start with two sharpening steps for an original that you already find too sharp?


Bifurcator - ouch!





May 27, 2012 at 09:16 AM
Bifurcator
Offline
• • • • •
Upload & Sell: Off
p.3 #10 · Zeiss Thread Image Processing/Shooting Techniques


Well, that's an over-reaction I think. For-print scripts rarely look good on screen - let alone scaled.

Here's the base script I use for web posts - it's much less invasive.

http://tesselator.gpmod.com/Images/Temporary/Multipanel_Peeple_Script.jpg

But IMO each image panel here needs totally different processing so I'm not really sure how useful this test is where 6 completely different images are all processed the same.





May 27, 2012 at 10:39 AM
Samuli Vahonen
Offline
• • • •
Upload & Sell: Off
p.3 #11 · Zeiss Thread Image Processing/Shooting Techniques


Toothwalker wrote:
And although probably not related to the present case, we should also keep in mind that our human vision system is not particularly good at estimating relative brightness. Example 1;
Example 2

Yes, eye is not good for measuring relative brightness. The one without "box artefact" has average of 160 in R, G and B channels, while I would assume it should be 128 (not calculated or measured, just basing assumption your mentioned 0,5 and how it looks when scaled down with cubic filter = darker).

Toothwalker wrote:
Just out of curiosity, why would you start with two sharpening steps for an original that you already find too sharp?

The 16-bit was fine, looked like sensor results without added sharpening. PhotoShop's filter -> sharpen -> sharpen filter is really old and generally useless filter for image sharpening. It works very differently compared to modern sharpening algorithms. However it causes usually correct kind of sharpening and artifacts, which more or less disappear by the softening effect of scaling, for the step sharpening process. The sharpening LR did to 8-bit image caused together with any other sharpening unexpected results (I would assume it's some sort of edge sharpening method, leaving fine textures untouched, which is the complete opposite of the whole purpose of step sharpening). I don't fully understand how step sharpening works - it seems that step sharpening results (what frequencies are "boosted" by sharpening in addition to just overall edge sharpness) depends of the resizing ratios between steps and number of steps as well as the sharpening method between steps.



EDIT: Compare page updated with Bifurgator's two entries.

Samuli



May 27, 2012 at 10:40 AM
Bifurcator
Offline
• • • • •
Upload & Sell: Off
p.3 #12 · Zeiss Thread Image Processing/Shooting Techniques


Kewl, thanks. You're welcome to them - of course. The first is a For-Print script and the second is my base For-Web script which has built-in customizability so I can tweak as needed for whatever I'm processing.




May 27, 2012 at 11:00 AM
alundeb
Offline
• • • • •
Upload & Sell: Off
p.3 #13 · Zeiss Thread Image Processing/Shooting Techniques


It has been a very interesting read. Thanks to all.

I think it will be interesting to include a very simple method in this mix. In my opinion it holds up well against the more advanced solutions. As long as Lanczos is not available in my tools I will re-evaluate if the simple method is just good enough.

The "box" in the circular pattern is larger than with other methods. I interpret that as a higher frequency cut-off of true detail.

Bicubic resize in one step.
Remove gaussian blur 0.3 pixels 300%

http://3.bp.blogspot.com/-wRFBh6KlFaU/T8JW8qz_oZI/AAAAAAAABe0/Kha76R78YNc/s1600/multipanel16bit_bicubic_gauss_03_300.jpg



May 27, 2012 at 11:39 AM
carstenw
Offline
• • • • • •
Upload & Sell: Off
p.3 #14 · Zeiss Thread Image Processing/Shooting Techniques


carstenw wrote:
Here is probably what I would have ended up with. Note that the original is sharp already, which I am not usually dealing with. This is probably what makes a couple of the shots look very slightly over-sharpened.

http://throughthelensdarkly.com/forums/multipanel-2.jpg


I redid my previous attempt with the 16-bit image, after realizing that my Photoshop CS6 is set to different defaults than CS4, and thus giving me harsher results. I didn't update for the gamma 1.0, so please ignore the colours and just look at the sharpness. I need to play around more:

http://throughthelensdarkly.com/forums/multipanel16bit.jpg



May 28, 2012 at 11:12 AM
1       2              end




FM Forums | Leica & Alternative Gear | Join Upload & Sell

1       2              end
    
 

Welcome back
Log in to your account