All posts by Peter Y Lin

Getting Clean Black Background

Very often I encounter a beautiful image with black background but with a slight set back — the background is not as “black” as the author (and I) intended to be. And again often, you can see lots of photoshop efforts to make it black, such as spotty blobs of different shades of black, traces of black brushes, etc, but these efforts fail too frequently to wonder how to get a good clean black background! TruvalPear

Continue reading Getting Clean Black Background

Using C-mount Lenses On Micro Four Thirds and Super 16 Cameras. Part I

Ever since I bought the Panasonic GH5, I was shocked by the fact that lenses for Micro Four Thirds (MFT) cameras are so expensive. Though, I am able to salvage my Canon lenses by using an adapter with and without speed boost glasses, I am still in search for some other options. Needless to say, I happened upon some C-mount lenses and I am amazed, to say the least, by the performance of some of these lenses.

Cover2.png

There are thousands of C-mount lenses out there with various focal length, sensor coverage, and above all, quality, but not all of them can be used on MFT cameras, so how do we choose?

Continue reading Using C-mount Lenses On Micro Four Thirds and Super 16 Cameras. Part I

Building A Micro Focus Stacking Rail Using Arduino

When I first showed an micro sized automatic focus stacking rail video, the response was over whelming. Some requested an DIY version of it. Though it only took me about two days, one day for hardware design and one day for software development to build a complete system shown in the video below, it is not that easy to actually write a blog about it. Why? Because it is so easy to design a PCB using Eagle and then solder components on it. Writing a blog and building one with Arduino is kinda tedious because you have to wire them and it is messy.

Anyways, here is the video I shot showing what I did, see how clean it is. While using Arduino might be messy but you will be able to do it. Important disclaimer: I am the designer of MJKZZ Focus Stacking Rail Systems

read more

Analysis Of Misalignment Between Optical And Motion Axis For Focus Stacking.

I have been asked many times about why there are streaking patterns around border of final stacked image. Well, the most common cause of these streaking patterns is due to the optical instruments used — the magnification of optical instrument changes when the distance between the subject and sensor changes. When stacking algorithm attempts to align all images, there will be mismatch of subject size. Information in one image just does not exist in another, thus stacking software often fills the final image with some arbitrary (arbitrarily chosen) pixels. However, if a telecentric optical instrument is used, due to the nature of telecentricity, there is no change in magnification, therefore there should be no or very little streaking patterns. But many still get streaking patterns even when a telecentric optical instrument is used. What gives? Here is why!

Streaking

 

Continue reading Analysis Of Misalignment Between Optical And Motion Axis For Focus Stacking.

Reading Digital Caliper From Arduino

I have just encountered the need to read a digital dial indicator for another personal project. However, most of these digital dial indicators are “expensive” (normally cost about 30 – 100 USD), so I figure to just get a cheap digital caliper costing about 3 USD to start with. I totally understand that a cheap digital caliper might have different data protocols, but from what I gathered on the internet, most of these Chinese digital measurement tools use similar format — a clock and a data.

CaliperProofArduino output matches (closely) caliper reading. There are some discrepancy, but I think it the poor caliper that is displaying wrong data

Not able to find my USB logic analyzer and my oscilloscope is dead, I decided to use an Arduino as signal analyzer. read more