Eliminating undesired elements from text file
조회 수: 2 (최근 30일)
이전 댓글 표시
I am currently analysing some localisation images produced in ImageJ in Matlab. These images consist of duplicated spots, with different intensities. Although ImageJ does an overall ok job at localising spots, sometimes some "fake spots" are detected, as can be seen in the attatched image. I want to be able to delete these "fake spots" from the output text file (also attatched as csv), so that only the pairs of fluorophores remain. The output text file contains the x and y psoitions of fluorophores, their intensity and so on.
Pairs of fluorophores should be separated by a distance of about 12800nm (although this can vary slightly), so I was thinking of using this separation to exclude fake spots (as they don't have a partner at that distance).
Thank you very much in advance and feel free to ask me for any additional info.
댓글 수: 4
Walter Roberson
2020년 7월 18일
rangesearch() passing in the x and y coordinates, and the maximum permitted range, and taking the second output, D.
Then
no_pair = cellfun(@(dists) all(dists < MinimumRange), D);
and delete the rows for which no_pair is true.
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Convert Image Type에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!