Tuesday, June 24, 2008

K10D Focus Error Adjustment

I'm really excited today. I found an article on how to get back into debug mode on the Pentax K10D and I deciphered the Auto Focus Test/Adjustment feature. Yeah me!

I did all the experiments and adjustments earlier and took photos of the procedure.



(edit 18 Ssep 2010 - Pentax Focus Chart) Pentax Focus Chart

INGREDIENTS

- Tripod
- Low Flat surface (the floor is fine if U have a good back)
- Focus chart (you can find one here)
- The lens you want to test and or correct for
-Writing paper
- Pen or Pencil
- Spectral Flux Capacitor (optional, but I had one lying around)



Pre set up

Put the camera on the tripod and set the angle to 45 degrees looking down. If you don't have a way to measure 45 degrees, remember your geometry. Any square object has a 45 degree line if you draw one from one corner to the opposite corner. Fold a piece of paper so when folded from a corner the top aligns flush with the side. The fold created will be 45 degrees.

[edit 11 Apr 09: 45 degrees is not a magic number. You can use any angle. The angle changes how far in front of and behind the focus point the image appears out of focus. If the DoF is too small it may make it hard to count how far the lens is out of focus. You can change the viewing angle so the chart is closer to perpendicular (like a wall) so there are more numbers to count within the DoF. If the DoF is too large then the edge of focus may be beyond the scale of the chart. In this case adjust the viewing angle so it is closer to parallel (like the ground) and the numbers at the extreme ends of the chart will be more out of focus. For the most part though 45 degrees will work. I just wanted to point out that the angle used does not need to be exact and will have no bearing on the outcome other than changing the count of the numbers within the DoF.]

Don't fold your focus chart.

Put the focus chart on a flat surface.

The camera to focus chart distance will depend on the minimum focus distance of the lens you are testing. You will have to adjust the tripod height and/or place the chart at varying heights in order to be able to focus at the min focus distance. You will want to use the minimum distance as the depth of field is narrowest at that point and will show focus error better. Also use the widest aperture as this also narrows the depth of field. Leave a little room so the camera can focus a little in either direction of the correct focus so it can have the opportunity to create the focus error.

Never re-adjust the 45 degree angle during the test. Wrap something around the handle to remind you when you grab it. Use barbed wire if you have to, or jelly if your not into SM. If you are, then don't use barbed wire or you'll never complete the test.

Either move the tripod or the focus chart around in order to set the focus point on the mark. If you are testing a lens with a large focus distance then it will take some trial and error.

Tape the chart in place if it's prone to being moved accidentally.

Keep kids, dogs, cats, farm animals out of the testing area. This is a laboratory now and should be treated as one.




OK, now on to the meat.

1. Go into the AF Test Menu from the debug menu. It's at the bottom of the Setup Menu if the camera is in debug mode. If your camera is not in debug mode read this.

About the AF Test Areas. I'm not sure what area 0 really does, but I think nothing. Area 1 uses both a horizontal and a vertical focus pattern. So it does not matter what way the camera is rotated it will focus on the focus chart. Area 2 uses a Horizontal focus pattern. Area 3 uses a vertical focus pattern and you will have to rotate the camera 90 degrees in order for it to focus on the lines.

Note: If you adjust the value (say to +40) and hit OK, then the next time you adjust the value it will start counting at zero from that +40 point. So lets say we're going to go back to 0, it will read -40 when at the mark instead of 0. Also the increment steps are in 10.

2. Start with Focus Area 1. You select the focus areas with the left-right arrows on the 4-way controller.

To move between the focus area option and the adjustment amount use the up-down arrows on the 4-way controller.

4. Leave the focus adjustment at 0.

5. Press OK.

6. Manually defocus the lens.

7. Half press the shutter button a few times until the camera no longer tries to focus when you press the button. You should be focusing on the end of the text (the 'us') that reads "This text should be perfectly in focus".

8. Take a picture.

9. Go back in to the focus adjustment menu and select +40.

10. Manually defocus the lens again.

11. Half press the shutter several times until the camera doesn't try to focus anymore.

12. Take a picture.

13. Repeat steps 9-12 for a -40 adjustment. Remember you're going back -80 points to get to -40 from +40. Don't stop when it reads -40 or you will be back at 0 again.

14. Now load those 3 images into your photo editing software and view them at a magnification that you can clearly see the depth of field and where the front and rear out of focus areas.

From the images you can figure out which direction you need to correct, if any at all.

15. Repeat the focus correction procedure moving the focus point in the direction that continues to improve the focus until you have obtained the best focus.




+40um correction
Here are my results. Yours will differ so don't expect them to match.


I went into the AF Test menu and for all test areas, 1, 2, and 3, I set the focus to +40, 0, and -40 um. I did not see any difference in the outcome. So pick 1 or 3 and use the focus chart in vertical (as intended) direction and the camera in landscape.

I focused on the end of the text that reads "This line should be in perfect focus."





0um correction
From looking at the different images I noticed that the -40um was the closest to being centered.
















-40um correction




















So I choose -50um as my correction and it seems bang on.

I should note that I tried math to figure out the correction value. I found 2 areas (one front and one back) that were equally out of focus. I subtracted the smaller value from the larger value and divided by 2 to get my correction value. However I had no way to equate my calculated value to the correction value in the camera. I though 10um meant 10 micro millimeters so when I calculated I had 6mm of front focus error I'm pretty close to my -50um correction value that I used. The problem with this method is with out more advanced scientific test equipment it's hard to get the exact numbers. I mean, we're using the human eye. Yes the eye is a great piece of test equipment, but the perception lacks. Just ask 10 different people to figure out your focus correction value and you'll get a dozen different answers.

I tried to use the spectral flux capacitor to help calculate the focus correction, but I think it needs an alignment itself. I never got a manual with it when I bought it off E-Bay, that's why the price was so good. Maybe some day when I want to kill some more cats I'll take it apart and fix it too.

Until then, enjoy your camera and stay away from all this extreme weather we're having.

Next we're going to prepare for session in the Pentax Wireless P-TTL flash system.







K10D debug mode with latest firmware (YEAH!)

I found this Firmware 1.3 debug unleashed.

[Edit - 15 July]English version of the software found here.

The original problem was that once you upgraded your firmware you lost the ability to do the key press combo to get into debug mode. Debug mode is used to test and adjust some internal settings in the camera like exposure and autofocus. It's a really handy mode to have access to and I don't understand why Pentax changed it.

This program allows us to add a debug mode to the camera's setup menu. It reprograms the menus via the USB cable. Pretty sweet.

The program is in Russian and I do not have the font installed so I see a bunch of ??????????s all over the place. I wouldn't understand Russian anyway even if I could read the font.

OK, after a little experimenting I've figured it out. More in the full post.





OK, here goes. Install the software (the installation is in English) by following the usual MS installation sequence.

1. Start the program. You can start the program before or after the USB connection and camera power on if you want.

2. Connect your Pentax K10D (or Samsung GX10) to the computer with the USB cable that came with your camera. You still have it, don't you?

3. Turn the camera on.

The program should match the image here. If not restart the program and the camera.

4. Press the connect button as shown.





If all went well you should end up matching the image here. If not then the computer is not connecting to the camera properly. Try restarting the camera, program, and reconnecting the USB cable. If none of that works, try MS' solution to everything, reboot the computer and try again.

5. If all is OK so far, select the bottom radio button (debug mode on).





6. Now press the conform button as shown.














7. Now press the OK button.








This will have no visible effect on the camera and the only way you know it may have worked is there are no error messages and the program should match this image.










At this point we want to disconnect the camera and exit the program.

8. Press the disconnect button.






9. Now press the exit button.

10. Turn off the camera and unplug the USB cable from the camera.

11. Turn the camera back on and after the initial display the screen will display Debug Mode in the upper left corner.

Congratulations, your camera is now in debug mode.

What I like about this debug mode over the 1.10 firmware version is, you can use the camera with no interference from the debug mode and there are no special key combos to get into debug mode.

If you want to see the options available in debug mode, press the menu button and scroll 2 to the right to the setup menu. Scroll up once (or down several times) and the debug menu will be visible. There are not as many selections to choose from as the 1.10 FW if I recall correctly, but this makes it easier to use.



Here are some shots to prove this actually works and shows what's available in the debug mode.

The capture/test mode I looked at and I'm not sure yet what it does. I'll experiment at a later date in case I want to kill the cat.












The AF Test is the one I'm really interested in. As soon as I figure out how to do a proper test and adjust I'll post it. I've included some shots of the AF Test menu options.




 






























OK, so now you probably want to know how to get out of debug mode. It's simple as you can probably tell, but since I got you into this maze I'll lead you out.

Follow the steps to start the program and connect the camera as before up through step 4.

12. Select the Debug mode off button.

13. Press the Confirm button.



14. Press the disconnect button.









15. Now press the Exit button.

16. Turn off the camera and disconnect the USB cable from the camera.

When you turn the camera back on the debug mode will not display and the setup menu will be back to normal.

Well, that's all there is to the debug mode. Getting into and out of debug mode is pretty simple and if it wasn't for the program being written in another language this tutorial would not have been necessary.

Until next time, shot something, will ya?







Monday, June 23, 2008

K10D Manual White Balance


Like I promised back in the function menu post, here is the method and results of an in camera manual white balance setup.

I'll start with a caveat or 2 (or more).

The images of the K10D menu screens are taken with a Pentax DL and are not properly color corrected and are not near to life as they are not intended to be.

The final images from the in camera manual white balance are out of camera (OOC) (other than re-sizing) and still need post processing. I used jpg mode to record all images and no RAW files were used in the process.

This is not a post on how to color correct with post processing programs but intended to get the most accurate color correction straight out of camera.

You can use any (true) white sample you want for the manual white balance, just make sure it's really white.

Don't use an antique wedding dress as your sample as it most likely will be off-white and distort the color balance.

Moving on.








Start by selecting the manual white balance option from the function menu in record mode (not playback). The manual white balance is the second to last selection in the white balance menu. You should end up with a menu screen that looks like this.

Press the shutter button to take a sample photo.



You should now have a menu screen that looks like this.

You can size the selection box using the rear thumbwheel and move the selection box using the 4-way controller.

Move the selection box over the area in the sample image that contains the true white color.

Press the OK button.




You should now have a menu screen that looks like this. If you do not have a mixed lighting situation this may be all you need and can hit the OK button.

However, if you are in a mixed lighting situation then there is one final step to properly color correct the image.

Using the 4-way controller, move the cursor along the green-amber and blue-magenta grid until the white looks white. Slide over into the extremes a bit so you can see the changes and then move back until you don't see any of that color in the white any more. No, it's not an exact science at this point, and if you can't tell any difference in the color subtleties then leave the cursor at mid point and call it good.

You can do a final levels layer on your white color sample in post processing and use that layer to correct all images taken in the same lighting conditions.




My final manual white balance menu screen looked like this for the fluorescent/tungsten mix I had going on. YMMV. And remember, the menu screens are not color corrected so they do not look white.







Here is what the K10D saw with no color correction.

The BWG card.








The colorless subject.












And the final product straight OOC.








Well that's all there is to a K10D in camera manual white balance. Let me know if you have any questions by leaving a comment and I'll try to help.

Next article is on Debug Mode with the latest firmware.