Search
Question: How to filter overlaping EBImage objects?
0
gravatar for atbest09
6 weeks ago by
atbest090
atbest090 wrote:

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]
ADD COMMENTlink modified 4 weeks ago by Wolfgang Huber13k • written 6 weeks ago by atbest090
1
gravatar for Wolfgang Huber
4 weeks ago by
EMBL European Molecular Biology Laboratory
Wolfgang Huber13k wrote:

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 COMMENTlink written 4 weeks ago by Wolfgang Huber13k
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.2.0
Traffic: 232 users visited in the last hour