DOF

The DOF
Taken in Saltsjöbaden, Stockholm, Sweden using Nikon D70s and Nikkor AF 50/1.8D. Post processed in Adobe Lightroom.

One of the greatest things with a SLR type camera is that it is possible to control the focus in the picture. This area is known as the DOF or the Depth-of-Field, or the Depth of Focus. This the space in a picture where things are in focus. In front of the DOF is the near out of focus field and beyond is the far out of focus field. There are certain things that controls this field and this article will describe them and how you can use them to improve your pictures. Without going into the actual optics, I will try to explain how to achieve the desired DOF and what it can be used for.

What affects DOF?

The DOF is actually the part of an image that is in focus. Any lens have a certain volume where things are percieved to be in focus and this volume or field of focus is referred to as the DOF. There are several factors that influences this, one of the most important factors is the aperture setting of the camera.

The aperture

The aperture controls how much light that falls into the camera at a given moment, it is a diaphragm in most cameras it is located inside the lens or just behind it, in the SLR type cameras it is located in the detacheable lens that is part of a camera system.

The aperture can generally be set in several steps. Earlier lenses permitted a limited number of steps but modern lenses and digital cameras permits the aperture almost always to be set in steps of 1/3 of a EV. The aperture is expressed as a ratio between the focal length and the diameter of the diaphragm and therefore it is written as f / 5.6 for example.

Cheaper lenses have a more narrow range of apertures than more expensive lenses, this means you can ”open up” the aperture more on the expensive end, this is sometimes called ”fast” lens (because they give shorter shutter times for the same scene during same conditions as a less expensive lens does) or more ”sensitive”.

If you are using a good lens and you are setting it to the  lowest f-stop permitted then you will have the most narrow DOF that this lens can produce. This is a start and a setting you might want to use during low light conditions but remember that your shallow DOF can make it difficult to get the full scene in sharp focus.

The focal length

The focal length plays together with the aperture of course as we have already talked about. The focal length is what you ”zoom” to when you zoom, or the fixed focal lenght of your prime lens. The smaller the focal length, the wider the field of view and the deeper the DOF becomes.

The greater the focal length, the more you ”zoom in” the shallower the DOF becomes.

The focus point

The focus point is the last part of our equation. The closer to you the focus point lies the shallower the DOF is. The further away you focus the deeper the DOF will become.

It is all about rations between these three, the aperture, the focal length and the distance of the focus point. If you want to create a shallow DOF you should open the aperture, zoom is as much as possible, go close as much as possible and then focus closely.

Remember also that most of your DOF is behind the point of focus, when you focus on somethin the DOF arranges so that you have 1/3 of the range in front of your focal point and 2/3 behind it. Make use of this!

Portraits

This is used in portrait photography to create a sense of depth in the image. Typically you see the model in sharp focus and the background cast in blurriness, this is due to using the DOF properly.

Portrait optics are usually in the range of 90-135 mm focal range and can often be used with an aperture up to f / 2,8 which allows the photographer good control over the DOF and to photograph in the low light of dawn and sunset.

Hyperfocal charts

Finally

These are the things that affects your DOF:

  • Focal length
  • Aperture setting f / x
  • Distance to focus point

When you focus on something the DOF extends 2/3 beyond that point and 1/3 in front of it.

The finest Android Applications

This is a summary on my favourite applications on the Android platform. If you have an android phone and wish to test one of the applications, check that you have the ”Barcode Scanner” application installed first, then you can use this application on the QR Codes for each section to automatically get the link to that software in Android Market. Once the code is scanned use ”Open in browser” function.

My favourite Swedish software is described in Swedish at the bottom of this article.
Fortsätt läsa The finest Android Applications

Pendeltågens underbara värld

Vedermödor till och från jobbet…

Den första dagen

2010-01-27

I morse så var det andra dagen i rad nu som det strulade ordentligt med pendeltågen bl.a. linje 35 Bålsta-Västerhaninge. Tåget var faktiskt i tid vid kallhäll station i morse och sedan rullade vi sakta mot stan. När tåget kommer till Spånga kommer första indikationen på att saker och ting inte fungerar som det är tänkt. Tåget blir stående lite för länge och till sist ropar man ut att man nog kommer bli stående rätt länge och man ställer dörrarna till fria. I övrigt har man ingen aning om vad som hade hänt.

Spånga är ett utomordentligt dumt ställe att vända åendeltåg på eftersom busstrafiken inte har en chans att ta mot antalet passagerare som kommer med tågen.

Om man åtminstone kört fram till Sundbyberg i stället där man kan lasta av mot tunnelbanan i stället där det finns en chans att taig vidare.

Det är samma sak när det har varit en olycka och man begär från räddningstjänstens håll det som kallas för ”räddningsfrånkoppling” och det medför också att man vänder tågen i Spånga.

Felet i dag var ett omfattande signalfel på Stockholm C. I går var det ett växelfel. Det blir mer och mer uppenbart att tidigare Banverket numera Transportverket har upphandlat drift och underhåll av banan som inte fungerar. Infrastruktur vinner aldrig på fragmentering och outsourcing, det visar hela historien om Railtrack i UK.

I dag blev det alltså taxi och resegarantin återigen…

Två resegarantier samma dag

2010-01-27

Hemväg nu. Det har visserligen börjat snöa men det var en olycka i närheten av karlberg som helt ställde till det på hemvägen för mig i dag. Återigen vändande tåg och strul.

De fick dock igång trafiken igen efter en stund från Sumpan så det räckte med att avvakta någon timma på jobbet kunde man åka hem sedan.

Utropen har dock tystnat i det stilla snöfallet och jag hörde att även Saltis hade problem med utropen.

Få se om jag bara hinner hem innan affären stänger så man dår sig lite kvällsvard. SMHI lovar massor med snö så då finns det risk för att morgondafen blir bortom allt förstånd ohygglig.

Tredje dagen i rad

2010-01-28

Pendeltågen på min linje 35 är just nu ca 30 minuter försenade, i dag är det ett växelfel men ospecificerat var, som är huvudrätten. Detta ät tredje dagen i rad som det kan bli intressant att ta sig till jobbet.

Det verkar också som om realtidsinformationen fungerar ”sådär” för det är precis innan ett tåg skall rulla in på en station som man får upp ”inställt” fast tåget måste ju ha tagits ur trafik tidigare (finns ingen direkt annan stans att göra av ett pendeltåg mellan Kungsängen och Kallhäll liksom).

Uppdaterad kl 19.33
Ja då var vi här igen. Sumpans station och stora förseningar på hemvägen på pendeltågen. Orsaken är ett trafikhinder i Älvsjö och växelfel i Sumpan och ytterligare ställen.

Förseningar på ca 55 minuter och många inställda avgångar. Det borde man kunnat räkna ut egentligen i och för sig. Det har ju faktiskt kommit några flingor snö i dag igen.

Uppdatering 19.54
Tåget med avgångstid 19.06 från Sumpan har ännu inte inkommit, 58 min efter planerad avgångstid.
Enligt utropen har det lagom lämnat Centralen. Det börjar bli kallt på plattformen här nu.

Uppdatering 20.02
Ingen chans att komma med det tåget, folk nästan ramlade ut när dörrarna öppnades. Som tur var kom ännu ett tåg bara någon minut efter.

Även om det nu kommer bli tågkö hem för de går så nära varandra så gissar jag att jag är hemma till 21 i alla fall inklusive handla lite på affären innan jag promenerar de sista stegen hem.

Det har ändå varit en produktiv dag på jobbet.

Den fjärde dagen

2010-01-29

Fortfarande växelfel på linjen som ger åtminstone 15 min förseningar på linje 35, Bålsta-Västerhaninge. Och då passade jag på att försova mig dessutom.

Running…

I am so bad at the running and exercise things right now that I ought to be ashamed of myself, or at least a little embarrassed.

I will go down to the gym at work on monday and see if there is some way to start jogging again. Outdoors is just too slippery right now although the cold is nit si much a problem for me.

Wish me luck…

En härlig morgon

Kommer till stationen i morse, alla insatståg plus hälften av ordinarie tåg inställda. Med den belastning som är på pendeln sträckan Kungsängen-Centralen så betyder det omedelbart överfulla tåg, jag missade mitt morgonmöte och har egentligen ingen altetnativ vettig resväg till jobbet.

Sur och trött på Stockholmståg och banverket (numera Transportverket) som inte kan få vagnarna och växlar i skick. Kliver på i Kallhäll och sätter mig efter att ha väntat 30 min på en svinkall plattform innan det till sist kommer ett försenat tåg. I Jakan är det redan fullt och de stackarna i Spånga hade inte en chans, de blev lämnade kvar denna kalla vintermorgon. Just som stämningen är som sämst hör jag någon ropa:

”Pitt!”

Det är den härliga tjejen med tourettes som är i vagnen. Plötsligt tittar folk upp, lystrar och ser på varandra, en munterhet sprider sig i vagnen trots missade möten och försena ankomster till jobb, skolor och dagis.

När tåget kommer till Sumpan går jag av och byter till tuben som tar mig till Stadshagen och bara en liten promenad från jobbet. En riktigt trist tisdagsmorgon har genom ett trollslag förbytts i en härlig stämning.

Det borde finnas fler som ropar ”Pitt!” i trafiken, inte för att drivas gäck med eller skrattas åt utan för att påminna oss on att vi är individer även i kollektivtrafiken när den strular. Massan av ryggar, bakdelar, höfter, bröst, axlar och ansikten som först mest påminner om nötkreatur i intelligens, form och konsistens, blir plötsligt individer igen, får tankar, känslor blir personifierade, men ändå hör vi alla samman.

I dag behövdes det något extra för att lyfta stämningen på tåget. Det är jag glad för skedde!

Make your XP installation SSD-flavoured

Many people are considering SSD (Solid State Drive)  in their laptops. There are of course many reasons for this, the SSD is silent and less heat generating, in many cases less power consuming and above all else, not susceptible to shock or sudden movements of the laptop.

Field engineers love SSD it has extended battery time, made laptops that are quickly closed and shoved in a bag much less prone to overheating and they can be used in harsh electro-magnetic evironments such as in the vincinity of radio trasmitters without risking that the hard disk loses data.

The problem with XP and SSD is that most drives made with this technology requires an erase operation on an entire block before it can be written back to the drive. This means that things like disk caching and so on works different from with standard disk drives and needs to be tweaked in order to get maximum performance out of it.

Most SSD manufacturers also guarantees only 10 000 writes to a cell and although most SSD uses techniques such as wear leveling where the cells are written to in a fashion to spread the wear on them over the whole disk eventually they will start to fail. An SSD is a rather expensive item still so people would like to maximise the life spand of their drive. Hence the following tweaks.

Disable windows XP prefetcher

Change the following registry keys:

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Contro l\Session Manager\Memory Management\PrefetchParameters]
”EnablePrefetcher”=dword:00000000

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Dfrg\BootOpt imizeFunction]
”Enable”=”N”

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Curr entVersion\OptimalLayout]
”EnableAutoLayout”=dword:00000000

You must reboot after the changes have been made.

Restore original setting

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Contro l\Session Manager\Memory Management\PrefetchParameters]
”EnablePrefetcher”=dword:00000003

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Servic es\Schedule]
”Start”=dword:00000002

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Dfrg\BootOpt imizeFunction]
”Enable”=”Y”

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Curr entVersion\OptimalLayout]
”EnableAutoLayout”=dword:00000001

You must reboot after changes has been applied.

Change the disk cache behaviour

Start Device Manager

  • Select the drive for which you wish to administer the caching policy (your SSD)
  • Select Properties
  • Click on the Policies tab
  • Look for the option ”Enable write caching on the disk” and make sure it is selected
  • Look for a second option ”Enable advanced performance” and select it.

This option favors throughput/speed at the potential risk of data corruption. Since this is to protect removable drives from suffering data corruption if they are removed while a write operation is in progress — you may safely change this option on your internal SSD.

This trick can also be used to increase performance about 10-fold on USB-attached disks, but then you should be very careful when removing them from your system, use the device manager to disconnect before you remove them.

Other tweaks

Hibernation

Turning off hibernation can mean a better performance and longer life for the SSD because then Windows will not have to update the page file constantly in anticipation of a hibernation order.

  • Go to the control panel
  • Open the Power Options
  • Select the Hibernate tab
  • Uncheck Enable Hibernation box to disable
  • Click Ok

Reboot your system and the hibernation option is gone (but you can still use sleep mode of course which is brilliant in combination with SSD.

 

Spam free WordPress

Due to the insane amount of spambots sending comments to my site lately I have decided to fight back. Therefore I have installed the WP-Spamfree plugin which I think is one of the most formidable anti-spam plugins.

Without the hassle of trying to guess words on hard to read images to fill them in this plugin uses a combination of java-script and cookies to determine weither you are a spam bot or not.

Let’s see how it works!