Image processing of spray development and flame propagation using crop and background subtraction
Show older comments
Hi guys,
I am trying to use Matlab (2021b) to process images that I obtained from a high speed camera used to capture spray development and onset of combustion within the combustion chamer of an optical GDI engine.
What I intend to do is that I would like to make a clear contrast between spray penetration/flame propagation and background image (combustion chamber) so that I have a clear view around the boundary layers.
I have attached background and spray images that I used to produce the processed image by utilising the code "Sutraction". The images that I posted will help you to understand what I want do.
However, due to the vibration of the engine, the origin of each frame taken by the high speed camera ever so slightly fluctuates. As a result, there are some random white dots around each corners.
As a result, I tried to further develop my code "Subtraction_V2" to crop the images first so that I can line up the origin. Also, this will help me to vary the size of the frame; thereby, allowing me to concenrate on certain areas e.g. I can focus on injector tips or I can make an emphasis around both injector and spark plug.
Unfortunately, as I cannot apply the same frame size by dragging to crop "background" & " spray" images, I constantly receive an error indicating that my matrix size does not match. Therefore, when it comes to cropping, I am wondering whether I can select my origin point (for my case, it would be the injector tip) and determine the size of crop frame (not by dragging. Rather by typing coordinate. Something like this). If this is possible, I can completely eliminate the misalignment of the origin caused by the vibration and can freely set my cropping window according to my need.
Your help will be greatly appreciated.
Kind regards,
2 Comments
KALYAN ACHARJYA
on 21 Nov 2021
2nd Point:
Have you tried with adaptive Hist Eq?
Dongsu Kim
on 24 Nov 2021
Accepted Answer
More Answers (1)
Image Analyst
on 21 Nov 2021
0 votes
Try imregister() if the frames are similar, just shifted. If you're comparing all frames to frame 0 and they're not similar because frame 0 has no spray in it and later frames do have spray in them, then I'd try to identify landmarks in your image that you can try to register, like a certain dot in the image that's always there. Then crop out that, register it to find the shift vector, and translate the original image with imtranslate().
1 Comment
Dongsu Kim
on 24 Nov 2021
Categories
Find more on Geometric Transformation and Image Registration in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!