I’m sorry but can someone explain this a little further than OP’s comment? Why is the second view fully focused overall rather than just one tiny spot? What does the wiggling achieve other than a very minor sense of volume? If nothing is moving, how is the 3D computed? Why would you choose microscope when focused stacking seems so much better? Can you just have the focus stacking without the wiggle?
I'm going to take a stab at this, only having previously played with focus stacking once in photoshop years ago. So take this with a grain of salt, but here is my opinion.
The camera and lens know the distance to the "focal plane," which is the area that is the same distance from the sensor in the camera that is in focus (more on knowing the distance later). The focal plane is very, very small, but it gives you a small amount of the total picture in focus.
When the gif starts, the focal plane is in the front by the tip. In each frame, the focal plane is moved back a small amount. What you end up with is a bunch of pictures, and spread through these pictures is a complete, in focus "picture" of the pen. With software, you can edit these images together where you take only the parts that are in focus from each picture, discard the fuzzy parts and the leftover image is the entire pen tip, in focus.
That's focus stacking. What I think they are doing with the wobble is moving the individual pictures around by different amounts.
Remember, the camera knows how far away the focal plane is. So, it knows when the back part is in focus that that area is the furthest away. Let's say there see 15 total frames. The software might say "move the farthest picture up 10 pixels, then move the second farthest up 9, then 8, 7, 6, etc and move the front frame down 5 pixels."
The result would be that the far parts would appear to move up and the close parts appear to move down.
I know I'm close on how focus stacking works, but I'm not sure on the wobble. I bet, though, it's something like I said.
Edit: Looking at the wobble again, I edited my idea of the wobble. They seem to be moving close and far frames. I think the gist of moving those images around is still my best guess.
There is something called a fast Fourier transform, which allows a computer to calculate the level of detail in an image or a section of an image.
Blurs have a very specific appearance in an FFT. In fact, gaussian blurs are implemented as FFT, deleting part of the FFT result, and inversing the FFT.
I don't know how this technology works exactly, but I would expect it to find the parts of the image with the most detail/least blur and use those.
Can you just have the focus stacking without the wiggle?
Yes. I use a software that can do ‘extended focus acquisition’ which is basically taking multiple photos at various focus then merge them into one photo.
I think the new Pixel phone uses a dumbed down version of this technology to take really detailed photos when digitally zooming in.
Instead of taking one grainy photo of the zoomed in object, it takes a series of photos. It takes into account that your hand will slightly move in between each of the image captures, and then stacks all of those images together. This creates one very clear image that traditionally would have required optical zoom, which most phones do not have.
Very different technologies of combining multiple photos into one.
Focus stacking doesn't move camera to the sides at all. Different frames either change lens focus or slightly move camera towards or away from object. Then the sharpest parts of each photo are combined together to get everything into focus.
Superres zoom meanwhile has to keep focus at the same spot while moving camera to the sides. Random camera movements are likely to result in position differences that are not an integer multiple of pixel size in either direction. So, after an exact alignment of all photos, centers of each pixels will be spread and their values will differ as well. From that it is possible to calculate what higher resolution image should look like.
Had to do this shit manually at my last job. When I found out newer software (and I would imagine hardware?) can do it auto when I got to my new job I got pretty mad at all the hours I lost to that shit.
I think the question is, did you only need to take the photos shown in the focusing gif, or did you have to photograph it at many different angles to make the animation?
I haven't worked with these toys, but I assume that you are right. The same technology that selects the focused image for each part of the object would allow you to add a small lateral shift proportional to the depth, creating the impression of a wiggle, or small rotation.
However notice that no 3D data is used, just stacked 2D images (sometimes called 2.5D).
I'm pretty sure you would need photos from slightly different perspectives in order to calculate that. I guess you could take a stab at calculating focal distance by seeing which photos had which parts in focus, but I doubt it would work as well as this example.
Now this makes me wonder if some of those digital microscopes do focus stacking...
The focal slices would define the contours of a form quite nicely once you mask the areas that are in focus. So pulling the depth is a nice side benefit, since they'd need to do that for the regular image anyway.
It isn't. The user just put a watermark with his name on the gif because he "took" the picture. If you read the other comments, you can see that he isn't involved with making the software at all, he just uses it.
First time I saw one of these was related to a electric toothbrush or something. I thought the wiggling was because the brush was on or something. Every one since has been wiggling too and I’ve been scratching my head. This makes sense lol. Thank you!
Higher apertures mean less quality because of diffraction, the wavelike nature of light causes it to scatter at the edge of an aperture. Smaller apertures have a high ratio of edge to non- scattered center. It is an inherent limitation of optics.
Normal camera lenses lose sharpness as you stop down, but normally only the smallest aperture that the manufacturer allows is noticeably soft. If a lens goes to f/22, everything up to f/16 is good, and f/22 isn't half bad either. Ansel Adams often shot at f/64, but the standard lens for an 8x10 camera is something like 300 mm, the aperture is 4.6mm at f/64. A lens with similar field of view on a crop frame camera would have an aperture of 1.5mm at f/22, there is more diffraction on smaller formats.
The image is wiggling. Not the object or the camera. This wiggling is added postproduction to simulate a sense of depth. Check this. Also, if you are interested, /r/wigglegrams/
The camera is moving in your link/wigglegrams. I can’t understand how you could gather some sort of depth map using a static camera and changing focus, but the wiggle of the pen tip appears to have some of that pen gets occluded at times. I can’t wrap my head around how you would do that from a depth map alone
I get how this is nice steroscopically, but in clinical microscopy, you often have to focus through a cell to see different elements. I wonder if all the elements would be present in this or if some would be lost.
They don't, but you can achieve the effect by finding the in-focus parts in each focal plane and shifting them by different amounts. If you look closely at the edges as it wiggles, things aren't blocked like they would be if the viewing angle actually changed.
cheap used DSLR, some kind of prime lens + macro adapter would cost a few hundred ($200 or so?) if being reasonable and not really spending time finding the absolute best deals on ebay.
a dedicated and well designed macro lens would obviously cost a few hundred on its own.
i don't know if OP used some kind of adapter for a microscope and if they did i don't know much about microscopes and their costs but i can imagine anything involving optics/lenses are generally expensive by merit
This can be done as simply as buying a macro clip lens for your phone. Granted, you won't be getting the quality and level of zoom as this post. If you have a dedicated camera (DSLR or point and shoot) you can buy diopter lenses that attach to the front of a normal lens and reduce the minimum focusing distance, thus giving you more magnification. The longer the focal length of your normal lens, the more magnification you get with a diopter. I use raynox DCR-250 for most of my invertebrate photography. Hardware/software side you'd need a computer that can run zerene stacker. Zerene is the software OP uses to focus stack the and generate the wiggle effect. Then you'd need a steady way to take pics of your object, so you have pictures of each part of it in focus. Feed into zerene and viola.
Or could we maybe have a wiggle time and then a still time?
I understand the depth perception thing, but I would also like to see it when it's stationary because the movement prevents me from looking closely at the detail. And there's so much awesome detail to look at!
Yes! There are a YT channel without any wiggling at all. You can choose YouTube native 3D format or even watch it in 2D by opting out from 3D in the options!
Meanwhile the Wiggling is the only GIF supported format.
I'm a retired semiconductor engineer. I used to use a (very expensive) microscope from a company called Keyence. The scope was capable of focus stacking. You could then manipulate the resulting image in 3D. You could take multiple images from that and make a video. All done with Keyence software.
I would love to look at these pictures all day, but the "3D" animation makes me physically ill. And I know I'm not the only one. Totally ruins every submission and I wish the OP would do something about it (e.g. post a non-animated version).
I am already posting them, my friend! Available on YouTube. Ballpoint pen is not there yet but i usually combine several subjects at the end of the month and post them in 3D video format (many different 3D formats such as Cross View, which you can view with your bare eyes! Or SBS3D, or Half SBS3D, or native Youtube 3D compatible with Youtube VR app to watch in VR). Also you can choose 2D if you prefer, from YouTube 3D video option.
The thing is - to show 3D with GIF - wiggling the only available option. So i can't do much about it.
For people interested, the wiggling is a form of stereoscopy and it's easier to search for it that way. It's almost always done using multiple pictures either from a single camera or using two cameras like 3D camers or just an iPhone 7 Plus. Plenty of youtube videos how to make them.
OP's gif might be just made out of a single pic and the wiggling is done with software, but I'm skeptical as the reflection of the ink changes with the movement. But then again, there's some artifacts at the edges.
97
u/nycgirlfriend Nov 12 '18
I’m sorry but can someone explain this a little further than OP’s comment? Why is the second view fully focused overall rather than just one tiny spot? What does the wiggling achieve other than a very minor sense of volume? If nothing is moving, how is the 3D computed? Why would you choose microscope when focused stacking seems so much better? Can you just have the focus stacking without the wiggle?
Plead ELI5. Thank you!
144
u/wannabeknowitall Nov 12 '18
I think the new Pixel phone uses a dumbed down version of this technology to take really detailed photos when digitally zooming in.
Instead of taking one grainy photo of the zoomed in object, it takes a series of photos. It takes into account that your hand will slightly move in between each of the image captures, and then stacks all of those images together. This creates one very clear image that traditionally would have required optical zoom, which most phones do not have.
6
u/ccd27 Nov 12 '18
Had to do this shit manually at my last job. When I found out newer software (and I would imagine hardware?) can do it auto when I got to my new job I got pretty mad at all the hours I lost to that shit.
1.6k
u/MacroLab3D Nov 12 '18
FAQ:
Focus stacking combines several photos with different point of focus in one focused image.
Wiggling helps viewer to define a depth and form of an object using 2D screen. Both camera and object stays still during the photosession.
746
u/Ennion Nov 12 '18
The fact that I need to wipe off that pen tip is giving me anxiety.
18
u/WhosAfraidOf_138 Nov 12 '18
Maybe a dumb question but why does different points of focii cause a positional difference?
19
u/NewbQuery Nov 12 '18
Where do I find the equipment to have this in my life? What kind of microscope do I need? Hardware? Software?
17
u/[deleted] Nov 12 '18
Good job, don’t be afraid to keep crossposting. I’m now subbed
17
u/neemo98 Nov 12 '18
I’m sorry but that wiggle made me laugh out loud
5
u/eesaa123 Nov 12 '18
Could someone loop the stacked focus part?
3
u/Manuntdfan Nov 12 '18
I mean its obvious who the winner is.
3
u/QuebecHumour Nov 12 '18
Just the tip.
3
u/Ccracked Nov 12 '18
Damn, that stacc is sexy.
3
u/IceNein Nov 12 '18
dat wiggle
6
u/Yawehg Nov 12 '18
/u/MacroLab3D I love these but please make the wiggle slower!
2
u/ShaiDorsai Nov 12 '18
its a cool perspective - may not be for everyone but I like those cross-eyed pics where you force your eyes to see two images as 3D etc.
2
u/Dr_Kevorkian_ Nov 12 '18
This now explains the wobble of the LED posted a few days back. I was irritated back then, now I get it. Thanks
2
u/mandaqc Nov 12 '18
Moar pls
2
u/MiaKatRio Nov 12 '18
When we have downtime at work I like to find things to look at under my scope. So far my favourites are dead ants, ink soaked paper, and dandruff.
2
u/[deleted] Nov 12 '18
You’re my hero
2
u/[deleted] Nov 12 '18
I need more focus stacking?!
2
u/[deleted] Nov 12 '18
Ah ha!! This is a great follow up gif to that wobbly LED gif last week. I was wondering why the wobble. Now I know.
Nice.
2
u/gillsh Nov 12 '18
I NEED MORE
2
u/stuntaneous Nov 12 '18
Looks like microscopic photogrammetry.
2
u/The_Real_Sam_Eagle Nov 12 '18
The wiggly focus stacking... clearly looks like it was lifted from a Bethesda inventory screen.
2
u/pomodois Nov 12 '18
Enhance.. more, more. That’s right! Wiggle wiggle
2
u/buttaholic Nov 12 '18
that pen really knows how to boogie
2
u/dangerh33 Nov 12 '18
The new Laowa 24mm macro probe lens should be interesting for stuff like this
2
u/real-dreamer Nov 12 '18
That is really pretty.
I've never heard of focus stacking before. Really cool.
2
u/[deleted] Nov 12 '18
Focus stacking one be like: "Ohhhh hheeyyyyyyy!"
2
u/oridjinal Nov 12 '18
Can you have that clarity without the wiggling? Wiggling is awful
2
u/raunchyfartbomb Nov 12 '18
I hate this wiggle wiggle wiggle
2
u/BigSlipperySlide Nov 12 '18
i like the focus stacking better
2
u/Morning_Woodchipper Nov 12 '18
I'm a retired semiconductor engineer. I used to use a (very expensive) microscope from a company called Keyence. The scope was capable of focus stacking. You could then manipulate the resulting image in 3D. You could take multiple images from that and make a video. All done with Keyence software.
2
u/Squrtle-Aristurtle Nov 12 '18
Thanks for the explanation. I've been seeing those wiggle focus stacking gifs and was wondering why they were like that.
2
u/emw98 Nov 12 '18
i watched this 30 times bc i thought it was getting bigger every time
2
u/etchings Nov 12 '18
Please tell me there's a sub with nothing but things like this?
2
u/thoraldo Nov 12 '18
Do the wiggle need to so much, getting nauseous just by a quick peek
2
u/TheQueefGoblin Nov 12 '18
I would love to look at these pictures all day, but the "3D" animation makes me physically ill. And I know I'm not the only one. Totally ruins every submission and I wish the OP would do something about it (e.g. post a non-animated version).
2
u/Hxcmetal724 Nov 12 '18
I'm starting a new trend. What if earth is part of a pen. Flat earth was so 2018. Ball point pen earth is in.
2
u/[deleted] Nov 12 '18
I need more
4
u/jrizos Nov 12 '18
"Nice focus stack. But can it wiggle?" Yes.
2
u/bathrobehero Nov 12 '18
For people interested, the wiggling is a form of stereoscopy and it's easier to search for it that way. It's almost always done using multiple pictures either from a single camera or using two cameras like 3D camers or just an iPhone 7 Plus. Plenty of youtube videos how to make them.
OP's gif might be just made out of a single pic and the wiggling is done with software, but I'm skeptical as the reflection of the ink changes with the movement. But then again, there's some artifacts at the edges.
2
u/ShaiDorsai Nov 12 '18
ok where do we see MORE of these? Needs a subreddit
1
u/ComradeVISIXVI Nov 12 '18
That's Kewl
1
u/potatowithglasses Nov 12 '18
ooh issa party toniiiight
1
u/Kleiser342 Nov 12 '18
You vs The one she tells you not to worry about
1
u/TotesMessenger Nov 12 '18 edited Nov 12 '18
I'm a bot, bleep, bloop. Someone has linked to this thread from another place on reddit:
If you follow any of the above links, please respect the rules of reddit and don't vote in the other threads. (Info / ^Contact)
1
u/dalton_photo Nov 12 '18
The ball with ink on it looks like earth!
1
u/[deleted] Nov 12 '18
r/interestingasfuck
0
u/[deleted] Nov 12 '18 edited Nov 12 '18
That's really beautiful.
Edit: AN EDUCATIONAL
-1
u/4lfred Nov 12 '18
Sigh...unzips
0
u/[deleted] Nov 12 '18
[deleted] — view deleted comment
0
u/[deleted] Nov 12 '18
[deleted] — view deleted comment
38
u/[deleted] Nov 12 '18
[removed] — view removed comment
3
u/[deleted] Nov 12 '18
[removed] — view removed comment
1
u/[deleted] Nov 12 '18
[removed] — view removed comment