Straightening an image according to a line selection

조회 수: 7 (최근 30일)
fromLondon
fromLondon 2014년 5월 17일
답변: rolf harkes 2019년 7월 25일
Hi there.
I am working on transport of small particles through a tube and my whole analysis procedure is written in MatLab except for one little step: Somewhere in the middle I have to straighten the slightly wiggly tubes. Currently, in order to do this, I export my video from Matlab, open it in ImageJ, and manually select the tube by drawing a polyline along it. I then use a plugin which performs a spline fit to the poly line and then straightens the tube along the line. An example can be found here: "http://fiji.sc/Straighten..." . Now, I would love to be able to do this in MatLab and I know how to make and use a polyline selection but how could I do the actual straightening? Any help is greatly appreciated.
Thanks. Fabian
  댓글 수: 2
fromLondon
fromLondon 2014년 5월 19일
Sorry, I just realized that the link didn't work because the third dot was recognized as a full stop. The correct link is here
Johannes Holm
Johannes Holm 2014년 9월 25일
편집: Johannes Holm 2014년 9월 25일
I have the exact same problem, and would very much like to avoid having to step out of matlab and use ImageJ to solve it.
I wouldn't want to implement the straightening algorithm myself based on the documentation. Instead as a work around this build of ImageJ called Miji might do the trick: http://fiji.sc/Miji

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

답변 (1개)

rolf harkes
rolf harkes 2019년 7월 25일
I also required this function and looked it up in the ImageJ source code. A simple matlab implementation can be found here:

카테고리

Help CenterFile Exchange에서 Image Filtering and Enhancement에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by