How to filter overlaping EBImage objects?
1
0
Entering edit mode
atbest09 • 0
@atbest09-15478
Last seen 6.3 years ago

Does any one know how to filter objects overlapping with another channel using EBImage? For example, I have red and green channels with the following code. Now how can I get the red cells that overlap with green cells? Thanks.

x <- readImage(system.file('images', 'nuclei.tif', package='EBImage'))
x <- thresh(x, w = 15, h = 15, offset = 0.1)
red <- x[,,1]
green <- x[,,2]
ebimage • 1.2k views
ADD COMMENT
1
Entering edit mode
@wolfgang-huber-3550
Last seen 3 months ago
EMBL European Molecular Biology Laborat…

How about

overlap <- (red > 0) & (green > 0)

This finds overlapping pixels. If you want to look at cells, you'll need to segment the red image into cells, and subset those cells that overlap in a similar manner.

ADD COMMENT

Login before adding your answer.

Traffic: 421 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6