MATLAB Answers

background of an image to 0

5 views (last 30 days)
AAS
AAS on 22 May 2019
Commented: Luis J Gilarranz on 23 May 2019
I have a 2d image( from microscope of cells) and I am trying to quantify intensity of fluoroscence. However i did not take a background fluoro image and was wondering if there is any way to polyfit the image to bring the offset to 0.

  2 Comments

AAS
AAS on 22 May 2019
There are multiple images- hence I need a way to compare between these images
Luis J Gilarranz
Luis J Gilarranz on 23 May 2019
Depending on what the images represent you could normalize them (dividing all the values by the maximum fluorescence value recorded) and then apply the threshold I was mentioning. However, if you have a treatment that affect the maximum fluorescence values then you could not do this and you could not compare across treatments. It would help if you put more information.

Sign in to comment.

Answers (1)

Luis J Gilarranz
Luis J Gilarranz on 22 May 2019
Testing different thresholds to see which one removes the background without removing any cell...
%Identify the pixels abobe the threshold
Mask = Image>Threshold;
%Set the background to zero
NewImage = Image.*Mask;

  0 Comments

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!