# What is the best way to determine the highest peak of each plant in a cup?

조회 수: 1 (최근 30일)
B.ray 2023년 3월 16일
댓글: Image Analyst 2023년 3월 17일
Hi,
Am trying to detect the highest point of each plant in the cup, I have around 30 small plants (see attached Image)
Can anyone suggest, how to do so. what algorithms to be used to solve it anf if there is something already builtin in MatLab.
Thanks

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

### 채택된 답변

Image Analyst 2023년 3월 16일
편집: Image Analyst 2023년 3월 16일
It would be best if you could plant them in a line and view them from the side with a white uniform background. Then it would be very straightforward.
If you insist on taking a top-down photo then you need to get a 3-D camera or profilometer that can give you a matrix/image where the pixel values are the heights.
It's a generic, general purpose demo of how to threshold an image to find blobs, and then measure things about the blobs, and extract certain blobs based on their areas or diameters.
##### 댓글 수: 5이전 댓글 3개 표시이전 댓글 3개 숨기기
B.ray 2023년 3월 17일
Actually that's a good idea to threshold the depth first, that will make less overlapping between the plants. Though, there are different cups with different plants hights but I can set a minimum depth.
you mean this function right!!
stats = regionprops("table",bw,"Centroid", ...
"MajorAxisLength","MinorAxisLength");
I don't have a depth map at hand now. But it is changing from cup to cup and I will be using multiple cups.
Image Analyst 2023년 3월 17일
No, I meant MaxIntensity
props = regionprops('table', mask, heightImage, 'MaxIntensity', 'Centroid');
This is because with a depth image, the pixel value represents either the height above the floor (use MaxIntensity) or the distance to the camera (use MinIntensity).
An alternative is to use imfill on the gray scale image to make a local background, then subtract that from the original, and then threshold. I have no idea if that will be any good or not but it might be worth a try.

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

### 카테고리

Help CenterFile Exchange에서 Image Data Workflows에 대해 자세히 알아보기

R2020b

### Community Treasure Hunt

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

Start Hunting!

Translated by