Hi,
I discovered the OpenFlexure MIcroscopes a few months ago but I was hesitant to get one because I know very little about microscopes.
I want to start experimenting with photolithography with a target resolution of a micron so I need to be able to see patterns that have a feature size of a micron so I searched and it seemed like an OpenFlexure Microscope would fit that goal. I found the paper Robotic microscopy for everyone: the OpenFlexure microscope and from that I could see the high resolution version is the one that could get me a sub micron resolution but I still have a few questions, so I figured that members of the forum would likely be able to point me towards a better solution than what I could find by trial and error.
How can I measure the size of a sample I would see on the microscope? (to be able to assess the size of the features I get) Is there a scale in the software or do I need to do something else?
Should I self-source the components or some components or none? If I should buy a kit, are there good/well regarded kits that can ship to France? (I can do plastic 3D printing)
What kind of objective do I need to get to have sub micron resolution?
Which version of the microscope should I consider? And is there any modification like a different stage that I would need to consider?
Are there any other important points that I missed?
For absolute distance measurement you will need some kind of calibration slide. Taking an image of something with known size lets you calculate the conversion form size in pixels in the image to size in mm in the real world.
I have also been interested in high resolution imaging. My first efforts have been measuring the current resolution, with a goal of getting to super resolution.
The first measurement is to measure the microns per pixel. You can purchase a slide with targets of known diameter, (inexpensive). For example my interest is at 10x, so I use a 600um target. I take a picture then In ImageJ I measure the number of pixels across the target. That gives me the um/pixel. Next you can get beads, 10um beads and do the same. Measure the diameter in pixels and with your um/pixel check your calibration. I have also purchased various diffraction gratings. Measure the number of pixels and see how close you come to the lines per inch or mm. Next move into sharp edge then on to Point Spread Function (PSF). Outside of the camera data thru openflexure, you can also look at the data from the raw pixels. Image the targets with a green LED and use the data from the 2 green pixels. So far that gives me the best resolution. My next effort is to try SIM on the openflexure system. There is a paper from a group that claims success with the openflexure system imaging at super resolution. I assume they are using a laser thru a grating to capture images, but not there yet.
You could take a page out of the astronomy book here where arc second resolution defines the maximum resolution. Note - optical resolution is one aspect to consider, mechanical positioning and stability is another (including thermal refraction and materials expansion etc).
There’s a few techniques that could be applied to non-moving objects to reclaim information at resolutions lower than the Raleigh limit of the lenses in use:
The white dots are the same hot pixel, with multiple images being used to increase resolution. This is a 4" refractor imaging well below its Raleigh limit to uncover a galaxy.
Thinking about microscopes, one option is to have a slide with small pin holes to allow a deconvolution to be created - both in terms of deformation, focus and also chromatic.
An example - I use the stars in left image in the same way to define the psf, the deconvolution is then applied to the whole image (I’m only using one star but a field of pin holes would be more accurate) to produce the right image.
If this approach - as an idea - is of interest I’d be happy to make a larger post focusing on microscope processing in the same way. There’s bound to be differences - focus and depth of target (astronomy is predominantly infinite focus).
Super resolution isn’t difficult, although the bayer matrix makes it more complex. I would say the more complex issue is sub-resolution registration given the matrix. I’ve traditionally stuck with mono cameras to avoid this.
Hi Nick,
I would be very interested in your method. I have both a color camera and a mono camera. If it’s easier to start with the mono camera I will gladly start that way. The improvement in resolution you show is very impressive. Is there an article that I could read or any more detail would be great.
The super resolution takes a number of images, each slightly shifted from each other. The working image is 10x scale in each axis. The key step is then registering the image so the object stacks on top of each other - at the higher resolution. The input images are then scaled and placed as per their registration coordinate. The result its you recover signal thus detail. The microscope super resolution (Super-resolution microscopy - Wikipedia for a large list) can be done the same way assuming there’s no target movement.
This can be made part of a pipeline to improve the capability by deconvolution for the different aspects for each frame before generating the super resolution.
It would be more reusable and cheaper to be able todo this with a bayer matrix sensor like the RPi. If the subject is static, then you could use the movements to image the same parts of the target with every colour and not be limited to only the given matrix colour at the same time.
Although the divergence of wavelength for the Raleigh limit will vary, it may be possible todo the same (at least in part) to use the sampling to inform the probability (ie using a gaussian curve on the multitude of sub-pixel sampling to sharpen). The wikipedia highlights this point as “super-resolution microscopy does not so much “break” as “circumvent” the diffraction limit.”. I just worked it out back in 2015 that it worked.
Note - a mono camera does given you every pixel but then complications arise in filters etc (because few people really want mono - they want resolution). It’s different - easier in some situations but more complex in others. It depends on the situation.
Hi Nick, what I am looking for is something step by step to get me into Super Resolution. I have read some details in fairsim.org (https://www.fairsim.org/) but their documentation is now 8 years old. Some methods use a laser light illumination thru a diffraction grating, rotated 3x. I believe the laser they used was expensive. Is there a less expensive method? Can you for example illuminate with a laser diode and rotate the grating manually. Next look at a way to automate the process.
For the original post from @nopana, they were only wanting sub-micron resolution.
A typical 40× objective with NA 0.5 or more will have sub-micron resolution when set up carefully. There should not be any need to use anything beyond the standard software and the high resolution version of the OpenFlexure Microscope.
Just as an aside - the original NASA Hubble Super Resolution used sensors rotated 30-60degress from the pixel matrix axis which is what the rotational part is doing on that fairsim. It helps retrieve more information and provides a smoothing. That can be done by simply orientating the camera and the stage out of axial alignment (for free) when doing SR.
The main thing with fairsim itself is using the polar rotation “phases”. So in a sense it’s simply doing NASA SR but in more rotations, then combining in Fourier space rather than adding in image space directly. I think the laser just simplifies the process as you can precisely calculate.
Bayer matrix assumes a wide band light source. Multiple colour LEDs will be slightly shifted and their optics may not bring the different wave lengths to focus at the same point across the beam field. So there’s a limit of tinkering before changes in the scope would be needed.
As @WilliamW has said - you can get alot from setting up carefully and getting the clearest image.
An idea to be able to have distance measurement without calibration slides : We know the displacements of the microscope, so if we move the sample/stage x microns, we can track a point on the image and get the traveled distance in pixels, then divide the microns by the pixels to get size of a pixel. Would this work or did I miss something?
For 1 micron, you’d probably want 0.1 measurement precision. This way you’re sure for repeatability and on the measurement itself (otherwise it could be anywhere in that 1 micron).
The steps per revolution of the motor is 64 steps x gearing. The gearing is close to 64, but usually not exactly 64. This could give about 2% difference between motors possibly. It can of course be calibrated for the particular motors on a particular microscope. (There are a few variants of motors in that form factor with gearing of about 8, although not common and usually sold specially)
The plastic gears from the motor to the M3 screw give a ratio of 2 for the standard build. This needs user input, because they could have used the alternative gear ratios 1:1 or 0.8:1 or something custom.
The pitch of the M3 screw is 0.5mm. That will always be ‘correct’ because M3 threads need to mesh, but I don’t know how much difference there can be.
Finally there is the lever that the actuator pulls to move the stage, pivoting at the flexures. This is designed as a ratio of 7/4, or 1:1.75. However we have many measurements showing that it is in fact 10-15% less, more like 1:1.52. We are currently evaluating this, in connection with improvements in giving the stage motion a well defined square range in the repository !543 and !512!513
So you can know the distance per step within about 10% without calibration.
Too bad, I cant use the v3 OS… The BOM only specified a Pi 4B but not the RAM amount so I bought a 4B with 1GB ram and today I arrived at the raspberry pi part of the assembly instructions and it seems like the v3 version is using too much ram from what is said here Install the Software - The OpenFlexure Project so I need to use v2 sadly
Another strange thing : when the Z actuator hole is aligned the 40x lens is poking out of the hole where you need to put the slide on
Sorry @nopana, the hardware instructions have the base system for the server v2. We did not notice that when we released the v3-beta1. I shall make an issue (‘work item’) in the repository.
It will probably be best if we link to the software download web page for the specification requirements, to try to avoid getting out of sync again.
In the longer term, I would like it if we were able to offer reduced function versions of the server that will run on lower Pi memory, and possibly older Pi versions. Stitching is the main constraint on the minimum hardware specification. It is one of the flagship capabilities of the server v3, but it is not needed in all use cases.
Oh stitching is not done on the controlling computer? Is there somewhere I can read about this choice? I was assuming the only job of the Pi was to send the image data to the controlling computer (for the Lite version) )(so I was quite surprised at the required specs) so there would not be too much strain on the Pi and still have full capability
If the z-actuator is centred - as in the step before installing the motors, Assembly Instructions, then the lens should be a little below the stage top. You have got a 40× objective I think, so it will need to be about 0.5mm below the stage top in use.