For cell coverage coding

I would like to caclulate of cell coverage in this picture.
Finally, I decide that if it can be caclulate with slope each axis, it's gonna be.
For example, in this red box, from left, the interval 41 to 59 is not cell part. it looks like blurred part.
So, first high slope is not in cell, but the next high slope is look like cell part.
Therefore, in that area, it can be recognized cell part between next high slope( the value is 80 or 109) after first high slope and back side value which 78 or 109 that the right side value in red box.
Of course, it's should be caculated not only X axis, but Y axix.
I want to know this coding.
저는 세포의 커버리지를 알고 싶습니다. 일반적으로 쓰이는 방법들은 실제 세포와 빛의 번짐의 구분이 명확하지 않은 것 같습니다. 결과적으로는 픽셀값 사이의 증가율과 감소율로 세포의 경계를 구분할 수 있다고 생각됩니다.
예를 들어 사진에 있는 빨간 박스안에서 왼쪽부터 숫자가 점점 증가하는데 50미만의 픽셀값에서는 의미가 없습니다. 하지만 50이상의 값에서 부터의 기울기는 의미가 있습니다.
왼쪽 41값에서 59값의 증가율은 세포의 실제 영역과 관계가 없어보이지만 그 다음 값인 59값에서 80값의 증가율은 세포의 실제영역과 관계가 있어보입니다. 다시 말해 80값의 픽셀부터는 세포의 영역으로 표시된다고 판단되고 더 오른쪽에 있는 값들 중 109나 78값부터는 세포의 영역이 끝난다고 보여집니다.
이러한 방법으로 X축과 Y축에서 픽셀값의 증가와 감소에 따른 기울기로 binary 할 수 있다면 세포의 실제영역을 계산하여 커버리지를 알아낼 수 있을 것 같습니다.
이에 대한 코딩을 알고 싶습니다.
P.S : 사진을 전체적으로 볼 때 사진의 중앙에 더 많은 빛이 들어오므로 사진의 가장자리는 셀의 영역이라해도 값이 낮아 특정값을 기준으로 substracting 하는 것은 문제가 있습니다.

回答(1 个)

I have absolutely no idea what you're asking. I don't know what slopes have to do with anything. Do you want to compute the gradient with imgradient()?
Do you just want to compute area fraction of the image that's more than 59 or 80 or 78 or 109? Something like this
mask = yourImage > 59;
areaFraction = sum(mask(:)) / numel(yourImage);

3 个评论

I edited by Korean that's my own language. Could you read it again and feedback to me?
(I removed your edit from the spam filter)
Your question is not clear to me either. It sounds like you might want the ratio between gradient and local average, but I'm not certain about that.
So I guess my suggested code does not do what you want. Therefore, I suggest you edit it and improve the wording while working with someone who has better English if you want most of us to help, because we still can't understand what you want.

请先登录,再进行评论。

Community Treasure Hunt

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

Start Hunting!

Translated by