Velocity of the Dye?

조회 수: 2 (최근 30일)
muhammad choudhry
muhammad choudhry 2020년 6월 1일
댓글: Image Analyst 2023년 11월 14일
Hi,
I have attached 2 consecutive frame of the process where it showing the spread of dye in water. I would like to find the velocity of the dye. If any of you guys can give some suggestions how to go ahead with this. Will this be possible to count the pixels in the dye area if yes how?
  댓글 수: 2
darova
darova 2020년 6월 14일
Can you make a simple sketch or something? What are trying to calculate?
muhammad choudhry
muhammad choudhry 2020년 6월 29일
편집: muhammad choudhry 2020년 6월 29일
Hi, I am injecting the dye into a swirling machine at the inlet to calculate the velocity of the dye . FPS of the camera is 30 frames per second. I want to calculate the velocity of the dye spread. Initially, I want to see the interface of the dye and water too track the spread of dye and count the pixels in the interface frame by frame. Is there a way or code to find out the velocity of the dye spread at the interface?
So far, I tried to subtract the background of the frame and contour the dye but seems like I am getting other back ground disturbance hence plan is to extract the contour of the 10 to 20 frames and track the movement of them.
But I do not know how in code?

댓글을 달려면 로그인하십시오.

채택된 답변

Image Analyst
Image Analyst 2020년 6월 14일
Try the color thresholder on the Apps tab of the tool ribbon.
  댓글 수: 3
Image Analyst
Image Analyst 2020년 6월 29일
I assume you want the red region, right? That's what the color thresholder will get for you.
muhammad choudhry
muhammad choudhry 2020년 6월 29일
편집: muhammad choudhry 2020년 6월 29일
color thresholder app gives the option of RGB,LAB etc. I selected RGB hence then it ask to select the region of interest i drew the freehand mask around the red dye then it gave me the results in the RGB histogram that's not I am looking for.
I am looking a method => Something which will just extract the dye from the whole process then take the contour of the dye only => once have the contour lets say 10 frames I want build the code which will detect and track the movement or spread of dye contour hence give me the velocity of the process (how fast dye interface spreading).
Can you help building this code?
I have attached you 7 raw images as well.

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Anay
Anay 2023년 11월 14일
Hello, were you able to get the code for this function? I was also looking for something similer. If you have the code can you please provide it to me?
Thanks
  댓글 수: 1
Image Analyst
Image Analyst 2023년 11월 14일
@Anay Since my answer was accepted, I assume that they took my advice and used the Color Thresholder app and had that export the code as a function.
If you have any more questions, then attach your data and code to read it in with the paperclip icon after you read this:

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by