The problem
A dress form is useful only if a tape measure gives the same numbers on the form as on the person. Sewists work to a few millimetres: a waist 15 mm too big is a different size of garment. So the goal isn't a 3D model that looks right. It's one that measures right.
That is harder than it sounds, for three reasons:
- Cameras record light, not distance. Every photo flattens the world onto a plane, and the distance information has to be recovered.
- Sensors are imperfect. Every measurement has noise (random scatter) and bias (a consistent lean in one direction). Averaging removes noise but not bias.
- People move. Even someone trying to stand still sways a centimetre or more and breathes. A scan takes a minute; the body isn't the same shape for that whole minute.
Most of what Doppelmaker does is about those three problems.
What a phone can sense
A Pro iPhone carries three kinds of sensors that matter here:
- The camera records colour images, about 1920 × 1440 pixels, many times a second. Lots of detail, but no direct measure of distance.
- The LiDAR scanner measures distance directly, as a small depth image of 256 × 192 points, 60 times a second.
- Motion sensors and ARKit. An accelerometer and gyroscope, combined by Apple's ARKit with the camera, tell the phone where it is and which way is down. In our rig the phones don't move, so this mostly gives us gravity, and a warning if a phone gets bumped.
Each is good at something the others are bad at. The rest of this page is about playing them off against each other.
LiDAR, and why a Pro
LiDAR works like a bat's sonar with light. The phone sends out pulses of invisible infrared light and times how long the reflection takes to come back. Light travels about 30 cm per nanosecond, so the timing directly gives distance, in real units, with no guessing.
That last part is the key. From photos alone, a computer can work out a shape but not its size: a large thing far away and a small thing close up look the same. Photo-only methods (photogrammetry) need many sharp images of a surface with lots of texture to match between them. Skin and plain fabric have very little texture, and people don't hold still for the hundreds of photos it would take. LiDAR gives us true scale and a complete rough shape in every frame, from the first second.
Only the Pro iPhones (12 Pro and later) have LiDAR, which is why Doppelmaker Scanner requires an iPhone Pro. Without it, there is no depth to start from.
LiDAR has three weaknesses, and the rest of the pipeline is designed around them:
- Low resolution. 256 × 192 points is about 50,000 measurements per frame, against nearly 3 million pixels in a camera image.
- Blurry edges. At the edge of the body, a single LiDAR point straddles the person and the wall behind, and gets a distance somewhere in between ("flying pixels").
- Small biases. Infrared light goes slightly into skin before it reflects, so skin can read a millimetre or two further away than it is, and each phone's distance scale can be off by a fraction of a percent. Averaging a thousand frames doesn't fix that: it's the same error every time.
Why combine camera and LiDAR
The camera is LiDAR's opposite: sharp but flat. In a camera image, the edge of the body is crisp. At a metre away, one pixel covers about a millimetre, so the camera knows exactly where their outline is, sideways. What it can't say is how far away that edge is.
An outline still says something precise about the 3D shape. Think of the line from the camera through one point of their outline, out into the room. That line just grazes their body: it touches them somewhere along its length and never goes inside. Every outline point gives one of these tangent lines, and together they fence the body in from that camera's direction.
So Doppelmaker uses each sensor for what it's good at:
- LiDAR provides the whole surface, with true scale, everywhere: including concave places like under the bust or the small of the back, which never show up on an outline.
- The outlines pin the surface exactly where they touch it. Wherever the LiDAR surface pokes out past an outline, or falls short of it, the outline wins.
- And the two check each other. Where they overlap, the difference between them shows each phone's LiDAR bias. Doppelmaker estimates that bias and removes it everywhere, including in the concave places the outlines can't see.
In our simulations, with LiDAR biases of the size real phones have, LiDAR alone measured the bust, underbust and waist 11 to 13 mm short. Adding the outlines brought all three within 2 mm.
Why two views at right angles
A single camera measures well across its picture and poorly along its line of sight. Move something sideways and it moves in the picture; move it toward the camera and it barely changes. LiDAR has the opposite problem: it measures distance along its line of sight well and blurs things sideways.
Put two phones at right angles, and each one's weak direction is the other's strong direction. Phone A, in front, sees their outline from the front; phone B, at their side, sees it from the side. A point on their body that phone A can only place to within a long, thin region is placed by phone B in the crossing direction. The overlap is small.
Right angles help with motion too. If the subject sways forward and back, phone A sees that as a small change in distance, which is hard to measure. Phone B sees the same sway as their outline sliding sideways across its picture, which is easy. Phone B is also mounted higher, looking down, so it sees the tops of the shoulders that phone A, at navel height, can't.
Why a turntable
The usual way to scan a person is to walk around them with a phone. That has two problems. The phone has to work out where it is as it moves, and small errors in that add up over a minute, so the far side of the body ends up a few millimetres off from the near side. And the person sways while the camera is behind them, with nothing to notice it.
Doppelmaker turns it around: the phones stay fixed and the person turns on a turntable. The phones' positions are measured once, very precisely, with a printed calibration target, and never change. Since the room is still and the phones don't move, any change in what they see is the subject. Doppelmaker follows their slow turn and their small movements and undoes them, frame by frame, before combining anything.
The rig page describes the setup.
Blur, sway and breathing
Motion blur
A camera doesn't take a picture in an instant. The shutter is open for a short exposure, maybe a hundredth of a second indoors, and anything that moves during it is smeared across the pixels it moved over. The smear is simply speed × exposure time.
For an outline, blur matters because the edge stops being a sharp step and becomes a ramp, so where exactly is the edge? Doppelmaker puts it halfway up the ramp, which is right for a symmetric smear, but the wider the ramp, the less certain that is.
Some numbers. A turntable doing one turn in 22 seconds, as a motorised one might, moves the side of a waist (15 cm from the centre) at about 4.3 cm per second. In a 1/100 s exposure that is 0.4 mm of smear: under half a pixel. A phone swung around someone by hand easily moves its view at half a metre per second at the body, which is 5 mm of smear in the same exposure. A steady turntable and fixed phones are much kinder to edges. The phones also lock their exposure during a scan, so brightness doesn't change from frame to frame.
Sway
Nobody stands perfectly still. Doppelmaker cuts the recording into short slices of time and, for each slice, works out exactly how they were standing: how far they had turned, and how they had leaned. It does this with a method called ICP (iterative closest point): take the LiDAR points from this moment, pair each one with the nearest point on the shape built so far, find the small turn and shift that best lines up the pairs, and repeat until nothing moves. Once every slice is lined up, everything is combined as if they had stood perfectly still.
Breathing
Breathing changes the chest's girth by a centimetre or more. That can't be lined up away: the shape itself changes. Doppelmaker measures how much the chest moved during the scan, averages over the breaths, and warns if the breathing was deep enough to matter. For the scan itself, gentle, even breathing is best.
The pipeline, step by step
- Calibrate. A printed target covered in square markers (like QR codes, but simpler) stands on the turntable. Each marker's corners are at known places on the target. From where those corners appear in a picture, the phone's position follows, like working out where you are standing from the corners of a building you know. Several snapshots from different angles are adjusted together until they all agree.
- Learn the empty room. A few seconds of recording with nobody there gives each pixel's usual colour, and how much it flickers (a TV or a window flickers a lot).
- Track. During the scan, ICP (above) follows them turn and sway, slice by slice.
- Fuse the depth. Space is chopped into small cubes, 4 mm on a side. Every LiDAR measurement votes on how far each nearby cube is from the surface; each cube keeps the running average. The surface is wherever that average crosses zero. Thousands of noisy votes average into a smooth surface.
- Trace the outlines. In every frame, their pixels are the ones that differ from the empty room, are near the LiDAR shape, and aren't far behind them (the LiDAR says how far away everything is). Their edge is found to a fraction of a pixel.
- Refine. The surface is adjusted to agree with everything at once: the outlines from both phones, the LiDAR, and each phone's LiDAR bias. It's one large least-squares problem, the same idea as fitting a line through scattered points, with millions of points and a few thousand unknowns. Measurements that disagree with all the others (a hand that moved, a cat that walked through) get less and less say until they're ignored.
- Find landmarks and measure. The surface is sliced like a loaf at every few millimetres. Bust, underbust, waist and hip are found from how those slices change. Girths are measured the way a tape does: around the outside, bridging hollows.
- Build the form. A rigid core is grown inside the surface at a fixed depth, so pins always go into soft shell and never hit plastic. The form is cut into pieces by trying every reasonable set of cut heights and keeping the one with the fewest overhangs that fits the printer. Keys, a centre rod channel and a stand seat are added.
Knowing it worked
Every step reports checks: how far the phones' views agree, how much they moved, how much of the surface was guessed rather than seen. If something is off, Studio says what and where, so you can scan again while they're still there.
Before any of this touches a real person, it runs on a digital twin: a simulated person with a known shape, scanned by simulated phones with realistic noise, biases, sway and even passers-by. Because the true shape is known, every number can be checked. The images on this site come from that twin.
For the real world, there is a printed test target whose exact shape is known. Scanning it measures the whole chain end to end, from the phones' lenses to the printed parts.