Wednesday, 20 December 2017

Which impacts the speed of focusing more, the lens or the camera body?


Speed is the larger concern, but a description of accuracy would be appreciated as well.



Answer



Autofocus Systems


Autofocus is a system. There is no single part that is particularly responsible for making an AF system perform well or achieve high accuracy. In modern cameras, components and software that support AF are found in both the lens and the camera body. In some cameras that are still based on legacy AF systems, these components may be inferior, even significantly inferior, to modern fully electronic AF systems.


From a general standpoint, electronic autofocus systems where the motor is housed in the lens provide the greatest performance and highest accuracy. However an AF lens with a focus motor is only part of the picture...you still need a something to drive that motor and make it do its thing. There are also different kinds of motors, some are cheaper and less effective while others are more expensive and more effective. In addition to mechanical and electrical components, you also need appropriate software...firmware, to operate an AF system. In a modern electronic AF system, firmware usually exists in both the lens and the camera body. In older systems, firmware will likely only exist in the camera body (potentially along with the AF drive motor, as some older designs included the motor in the camera body rather than in the lens.)


Autofocus Operation


Autofocus in the past used to be achieved with partial open-loop feedback systems, where the camera would initiate an AF drive movement, the lens would adjust, and the system would stop until you told it to perform another AF adjustment. Depending on the exact implementations, more than one lens movement may have occurred in response to a single AF command. This may have been due to limited or no firmware in the lens, preventing a proper feedback loop.


In modern AF systems, AF drive is achieved with closed-loop feedback systems. With a closed loop, AF adjustments are continuously performed until focus is achieved...at least to within certain tolerances. This is possible due to much richer firmware housed in autofocus lenses, allowing more complete two-way communication between the lens and the camera. The camera instructs the lens to make a certain move, and the lens can provide information about whether it made the requested move, and whether the move was by the requested amount, or not. The camera and lens can continually make adjustments in response to a single AF command from the user to achieve a more accurate focus.



Such closed-loop feedback is a more recent advent in AF systems, supported by newer lens technology, more advanced AF drive software in camera bodies, and more accurate phase-shift detection sensors. AF speed and accuracy are increasingly dependent upon AF sensor capabilities, the number of AF sensor points, the capabilities of AF drive software, and the speed of in-camera processors.


Autofocus Accuracy


When it comes to accuracy, there are several specific factors that play a role. The AF sensor is probably the most significant factor, however the firmware in the lens as well as the optical quality of the lens also count. Metering systems, particularly color metering systems, are also becoming tied into the AF system of modern cameras, offering increased capabilities not previously possible, or only possible on very high-end cameras. There are a wide variety of AF sensors on the market in current DSLR cameras, from basic 9-point sensors with a single high precision point to 61-point sensor with 41 high precision points, and a variety of options in between. The size of each AF point, their density, the orientation of phase-detect sensor lines, and even how sensor lines converge all affect the precision and accuracy of an AF system.


Naturally, the more complex the AF sensor is and the higher the number of AF points, the more complex the software that drives it must be. In modern "reticular" (net-like) AF systems, where there are a high number of points, as well as a high number of high precision points, the AF drive software is generally pretty advanced. A color metering sensor, either Olive/Teal (Red-Green and Blue-Green) or full RGB, may be involved in AF system decisions, allowing subject color, shape, and even identification based on libraries of known subjects can be used to assist in the selection of which AF points to use when determining focus.


The precision of an AF point depends on its structure. There are single line points, both horizontal and vertical sensors, cross type points, which involve both horizontal and vertical line sensors in a single AF point, and diagonal cross type points which involve two 45 degree line sensors in opposition to each other for a single AF point, and double cross type points that utilize both a standard and diagonal cross type set of sensors at a single AF point. The more line sensors, of any orientation, involved in the detection of phase-shift at a single AF point will increase the precision of focus detected by that point.


The design of each sensor also varies. Some line sensors are extremely high precision as they include more photodiodes per line, allowing phase shift to be detected in finer increments, yet requiring more light to do so. Others are lower precision as they use fewer photodiodes per line, sensing more light per sensor, therefor operating in lower overall light. Some AF points will only operate up to certain maximum apertures. The highest precision points tend to require f/2.8, and there are usually fewer points in an AF system that are this precise. Most AF points will require at least f/4 or f/5.6, operating in less light but also offering less precision. Some advanced AF systems support one or more AF points that will operate with lenses that have an f/8 maximum aperture (such as an f/5.6 lens with a 1.4x TC or an f/4 lens with a 2x TC). Most modern multipoint AF systems have f/2.8, f/4, and f/5.6 AF points, and a few include one or more f/8 AF points.


Autofocus Performance


When it comes to the speed of an AF system, this really boils down to two things: Light and processing performance. In almost all cases, the more light you get down the lens, the faster AF will be. This is due to the fact that an AF unit, a small package below the DSLR mirror that houses the AF sensor, utilizes only a fraction of the light that actually passes through the aperture. The mirror itself is half-silvered, and will allow about 50% of the light that reaches it through to a secondary mirror, which will reflect that 50% of light onto the AF unit. Further, only the area of the frame covered by AF points is actually half-silvered in the main mirror, so only a fraction of the total amount of light is involved in the first place...so were working with less than 50% of the total amount of light passing through the lens aperture. Furthermore, a special lens on top of the AF unit above the sensor is responsible for further dividing the light that reaches it. The light reaching the AF unit will be split by as many AF points, and for each AF point, light will be split again to reach the two, four, or even eight halves of each line sensor responsible for detecting phase shift for each AF point. An AF sensor has to work with less than 50% of the light passing through the lens, and each AF point works with a fraction of that light.


Assuming you have enough light to use the highest precision AF points, the key factor in performance is the efficiency of the AF drive software and the speed of the processor that executes it. An efficient algorithm operating on a fast processor, paired with a high quality lens that also includes a fast processor and efficient algorithms in its own firmware, will produce some of the best AF performance. In the case of the Canon 1D X, the AF and Metering system actually has a dedicated processor that is independent of the core image processors (a unique setup), providing continuous AF with uninterrupted processing power. High performance computing allows an AF system, both lens and camera, to perform closed-loop AF fine tuning several times in a fraction of a second, supporting extremely high precision, high accuracy continuous AF to be performed anywhere from 6 to 14 times per second.


Tuesday, 19 December 2017

Panorama with rectangular projection



I've taken about an hundered of pictures of a large painting with an iPhone at a distance of about 40cm. For each picture I moved the camera along the painting.


I was thinking to use to build the final assembly. Unfortunately all the possible projections seems to apply only on a sphere not on a rectangle.


How can I automate the assembly of the painting I captured?




How is ISO implemented in digital cameras?


If I change the ISO settings on my camera, obviously the gain of the system is increased, amplifying the signal from the sensor. What's not clear to me is where the amplification takes place. I see several possibilities:




  1. In the sensor, by increasing voltage or some other mechanism

  2. Via an analog amplifier outside of the sensor

  3. Digitally, after the signal has been digitized, but before storing data in the RAW file

  4. As a parameter applied solely in creating an image from RAW


If #4 is true, then you could take a 4-stop overexposed RAW picture at ISO 1600, and then in post processing produce a JPEG at ISO 100 that would be the same as if the original photo had been shot at ISO 100.


If #1 or #2 is true, then a RAW file shot at ISO 1600 would actually contain more information about shadows, and an ISO 100 RAW would contain more information about highlights.



Answer



1~2 and 3. On CCDs, the amplifier is effectively in the corner of the sensor, but on CMOS, there is an amplifier built into each photosite, dispersed throughout the sensor. See here.



As mentioned in one thing I recently discovered, most DSLRs have an amplifier before the ADC (Analog-to-Digital Conversion). They tend to max at 800 or 1600 ISO and are all digital amplifications afterward. The following paragraphs assume a camera that maxes out its analog amplification at 1600:


Unfortunately, the 12 or 14 bit RAW files prevent you from doing what you describe. The digital amplification takes place before the RAW files are stored. There is a maximum value that can be stored, so when you shoot 4-stops overexposed, even though the ADC is not saturated, the RAW file will probably be clipped. However, the technique that overexposes just as much as to not clip highlights is effective at reducing noise, and known as ETTR (Expose To The Right).


Yes, due to the analog amplification, RAW files at higher ISO do contain more detail. However, ISO 1600 and ISO 12800 should contain the same amount of shadow detail (unless there is some additional special processing OR the ADC has effectively more precision than whatever bit depth your RAW files are stored in).


Even though #3 is true above ISO 1600, an ISO 1600 RAW may contain more information about highlights because they can still be clipped through the digital amplification process. For this reason and perhaps others (battery life, effective buffer size), when shooting RAW, it may be beneficial to shoot ISO 1600 and simply post process later. Again, I have not tested this, and if the effective ADC bit-depth is higher than the RAW format's bit-depth, it will not be true.


canon - What are some tips for shooting in low light?


I own a Canon 450D with just the standard kit lens that comes with it (I don't plan buying a new lens for a while) and one thing I tend to struggle with is shooting in lower light conditions, indoors and out.


When we have people over and I try and document the party with my camera, most of these photos are taken inside the house however even on the lowest f/3.5 for my 18-55mm lens the images tend to come out blurry and out of focus.


I have heard increasing your ISO works well but then you have the problem of noise.


Is increasing the shutter speed and ISO a good idea for these situations?




Answer



Get a flash!


Seriously, even the small external flashes make a huge difference. You can also (at least on my Nikon SB-400) direct the flash at the ceiling, which both annoys people less and also nearly always eliminates red-eye.


Monday, 18 December 2017

pricing - How to go about selling digital files for printing and how to price them?


I have recently shared an album of my pictures in an online photography forum and someone contacted me, asking if I can sell them a print, or the digital file for them to print themselves.



I have never sold any prints before and at the moment, I don't have time to spend on that; also I don't have any calibration tools for my monitor or any experience in high quality printing, and I don't want to half-ass that, so I don't want to sell a print right now. However, I'd be fine with selling the digital file so that person can print the photo. But I have no idea how to price a digital file, and what exactly I should give out.


Do you normally just send out a high-quality JPG? Or the RAW file along with the XMP file containing my edits? (I edited the picture in Lightroom) If I should go with JPG, do I just send out the full size (6000x4000) or ask them what size they want to print it in and send an appropriatly downsized version? And how do I determine an approriate price for that? What are the relevant factors?


I've read online that I should factor in the image size as well as the editing time. I don't know how long I spent on it, probably less than 10 minutes. I'm just not sure how to approach this, any price I could come up with somehow feels ... random. Some insights are appreciated!



Answer



If you want to begin selling digital images, you would likely want to ask a few questions of the buyer before making any decisions on output or price. Some questions I would recommend include:



  • Is the image for personal, commercial, or non-profit use?

  • If the image is for commercial or non-profit, who is the intended audience and scope/scale of the audience?

  • What is the desired output? (Digital display only, 4x6, billboard, website header, etc.)

  • If the image is for commercial or non-profit, what is the duration of usage (1 month, 1 year, etc.)?


  • If the image is for commercial or non-profit, do they need to modify or alter the image in any way?


These questions will help you narrow in on an appropriate price as well as create a license that makes sense for the sale. Some people would suggest that having attribution on a commercial on non-profit sale would alter the price; I would strongly suggest against that unless you are confident that it will result in later sales.


At any rate, it is highly unlikely that it would make sense for you to share the RAW and even less likely that you should share the XMP sidecar. Literally no one would ever want your sidecar file as part of a sale. I wouldn't recommend sharing the RAW file unless you are paid very well for doing so and you are certain that the license agreement you have in place is desirable for you based on the fee you are collecting.


Of course this is getting into the business of photography, of which you should probably pick up a book on if you are really going to take it seriously. The quick method without getting complex would be to pick up quoting software such as FotoQuote (link).


metering - Using a camera as Lux-meter


For a project I want to use a USB-camera (https://www.e-consystems.com/ar0330-lowlight-usb-cameraboard.asp) as a Lux-meter. I control the camera using v4l2 on Linux. I have a real lux-meter (https://gossen-photo.de/en/mavo-spot-2-usb) at hand so I can get "real" readings and confirm/crosscheck those made by my DYI Lux-meter.


I followed a guide about doing exactly this found at http://www.conservationphysics.org/lightmtr/luxmtr1.php which states as a formula:



Lux = 50x fnumber squared / (exposure time in seconds x ISO film speed)



There is no ISO setting so I guess the ISO is fixed. So I use the real lux-meter to get the lux of a certain spot and change the formula to



ISO = 50x fnumber squared / (Lux x exposure time in seconds)




to get the "fixed" ISO and I get a number of approximately 450.


From the camera I get an 8bit grayscale image. So I take the value of a pixel which I want to measure the lux and map it to a number between 0.0 and 1.0 and multiply that by the lux from the main formula:



Lux = pixel x 50 x fnumber squared / (exposure time in seconds x ISO film speed)



But the readings do not match the real lux-meters values. They seem to be correct for low-lux values but error increases exponentially with brighter spots that are measured.


Has anyone ever done something similar? Did I miss something?


Thanks for any advice.


EDIT update after answer below


Thanks to Michael's help and information found on https://en.wikipedia.org/wiki/Exposure_value#EV_as_a_measure_of_luminance_and_illuminance I'm at these formulas right now:



EV calculation, 2.17 being the compensation for ISO 450



float ev = log2(pow(fNumber, 2.0) / expTimeSeconds) + 2.17;



LUX calculation, pixelBrightness being a value between 0.0 (black) and 1.0 (white)



float lux = 2.5 * pow(2, ev) * pixelBrightness;



Weirdly, currently I get way to high Lux values, ranging aroung 1200 Lux for office indoors indirect lighting?


2nd EDIT update



So I was mistaking Lux and cd/m2 resp. illumination and lumination all the time - the Mavo-Spot 2 that I thought was a Lux-meter really is a "high precision luminance meter" that "measures the perceived brightness of back-lighted surfaces in candelas per square meter (cd/m²) or foot-lamberts (fL) in consideration of ambient light".


So I was trying to measure Lux with my camera but comparing the values to the ones I got from the Mavo Spot 2 which are cd/m2.


I am now using the formulas originally found in an old article (http://www.conservationphysics.org/lightmtr/luxmtr1.php):


float luminance = 12.4 * pow(fNumber, 2) / (expTimeSeconds * isoValue);
float lux = 50 * pow(fNumber, 2) / (expTimeSeconds * isoValue);

Of course the values are strongly simplified as they do not account for object material and reflectivity.



Answer




Did I miss something?






  1. Yes. The article you cite and upon which your entire project seems to be based does not require a photo to be taken and measured. The article is from the film age before digital imaging was anything but a lab exercise for anyone other than NASA and their deep space probes. It doesn't even require film to be in the camera. It is based entirely on the reading obtained using the camera's light meter to measure reflected light from the subject.




  2. The fact that the camera is converting the linear response of the sensor to the logarithmic response we humans see with. For what you are trying to do to work, you need to use a camera that will output the actual linear values of the raw sensor output before gamma correction curves (not the same thing as gamma correction for monitors - that's much further down the imaging pipeline) have been applied.




It would probably be much simpler to convert a measured exposure value (EV) to lux.



For more about how to do that, please see:
How to calculate Lux from EV?
Recalculating lux or lm from EV


And over at Stack Overflow: How to convert between lux and exposure value?



Won't I need raw image data to calculate lux from EV?



Not if the camera gives you that data independently of the image information. In the EXIF info of a jpeg, for instance.


If you know the ISO, Tv, and Av used, calculating the EV from those three numbers is trivial. If the camera's FoV is uniform with regard to brightness, such as when a test card fills the frame, it's a pretty easy solution. Do note that as the accepted answer to the first linked question above states, it only works if you always use a target with the same reflectance to compare reflected light (what your camera's meter measures in EV) to incident light (the brightness of the light shining on the subject measured in Lux). You also assume the camera's metering profile is aiming for 18% gray, but that can all be calibrated using your actual Lux meter.


For more about what EV really is (it's a light agnostic set of equivalent Tv/Av combinations that give the same exposure and only indicates a specific light level if we also assume a specific sensitivity, usually ISO 100, and a proper exposure of an 18% grey object), you might find this answer helpful.



From deep within the Wikipedia article for EV:



Strictly, EV is not a measure of luminance or illuminance; rather, an EV corresponds to a luminance (or illuminance) for which a camera with a given ISO speed would use the indicated EV to obtain the nominally correct exposure. Nonetheless, it is common practice among photographic equipment manufacturers to express luminance in EV for ISO 100 speed, as when specifying metering range (Ray 2000, 318) or autofocus sensitivity. And the practice is long established; Ray (2002), 592) cites Ulffers (1968) as an early example. Properly, the meter calibration constant as well as the ISO speed should be stated, but this seldom is done.



From the comments:



I can read out absolute exposure time and I know the f-number of the lens. According to Wikipedia the EV is calculated like log2(f-number squared / shutter time in seconds). So I only need to adapt it to ISO 450?



Yes. Don't forget that ISO is also a logarithmic scale. ISO 450 is not 4.5 EV offset from ISO 100. It's more like 2.17 EV difference (because 22.17 = 4.5).




I don't get how to adapt to ISO 450 ... how do I get from the EV that I get for ISO 100 to the value for ISO 450?



You don't get from the value for ISO 100 to the value for ISO 400. You do the reverse.


The camera is giving you Tv (time value = exposure time) and Av (aperture value) based on ISO 450. You need to convert that to ISO 100. If the Tv and Av used by the camera is EV450 10, then you need to add 2.17 to get EV100 12.17. Since the EV scale is already logarithmic, you only need to add/subtract the number of stops difference to convert an EV from one ISO to another.


Sunday, 17 December 2017

How do I convert lens focal length (mm) to x-times optical zoom?


What is the rule to convert the 'mm' notation to the 'optical zoom' notation? I searched a bit and found this one:


optical zoom = maximum focal length / minimum focal length

For example a 18-55mm lens would have a 3x optical zoom, and a 18-200mm lens would have a 11x optical zoom. Is that right?



Answer



The "times zoom" notation is simply the big number divided by the small one, so the examples you give are correct. "3x zoom" simply means the longest focal length is three times the shortest.


This number really isn't very useful, though. On point and shoot cameras, this value became popular in marketing because the widest focal length was generally about the same across all models on the market: they all had a wide-normal field of view. That made the times-zoom a reasonable way to compare how far one can zoom in to get a closer view of a distant subject. The market is more varied now, so that's not so useful.


And with interchangeable lenses, the widest angle of any given zoom can be pretty much anything, so "times zoom" is not useful at all on its own. There is no standard "base" number that the "×" starts from; you go from whatever the widest focal length on that particular lens happens to be. An 18-55mm and a 70-200mm are both about "3x zoom", but a very different range.


On the other hand, the zoom ratio does give you an idea of how much focal length flexibility the lens has, and usually higher numbers are a clue that there will be more compromise on image quality (and/or price, size, and weight).



Photography is a field with a lot of jargon and a lot of numbers to learn. That can be intimidating to would-be photographers who want to concentrate on images, not "tech stuff". A simple number, without any metric-system units, is far less intimidating than needing to learn all about focal length and angle of view, so I don't think the marketers are all wrong to focus on this number for basic cameras.


For interchangeable lens cameras, like digital SLRs or mirrorless compact system cameras, in some ways the complexity of using focal lengths is a selling point. Intermediate and advanced users may prefer to be given the straightforward facts instead of having to decode more-removed numbers like times-zoom. In some ways, giving the angle of view instead of focal length might be preferable, but that hasn't really caught on — probably because it's really not very hard to get a sense for what different focal lengths mean for field of view on your own camera, once you get over the initial learning bump.


Why is the front element of a telephoto lens larger than a wide angle lens?

A wide angle lens has a wide angle of view, therefore it would make sense that the front of the lens would also be wide. A telephoto lens ha...