[BioC] Visualizing the region of classification uncertainty on thresholded images
alexg at ruggedtextile.com
Tue Aug 7 15:51:15 CEST 2012
On 07.08.2012 13:53, ravi wrote:
> Hi Alex,
> Thanks a lot for your reply. You are right about the 2.5% result. I
> made a mistake.
> Lots of different ways to do this, but does this get you started?
> img3 = rgbImage((!img2)+img,img,img)
> I tried the above commands. What I get appears to be the same as the
> original figure. Is there something that I am missing?
> Some of the stuff that I have tried are :
> I get this error message with the following command :
Sorry, try this (note the added line to set pixels outside the band to
0 in img2):
img = readImage(system.file("images", "nuclei.tif",
t2c<-t1c+tdiff; t2=t2c/255 # A second threshold level
plot(timg) # open to suggestions for better coding!
imgB=!imgB #flip foreground to background
# Attempt to visualise the area represented by a threshold band i,e,
#########Note must set all other pixels to 0######
#Adds the band areas to the red channel
img3 = rgbImage((!img2)+img,img,img)
More information about the Bioconductor