02-08-2016 08:20 AM
I am trying to do an analysis on a thresholded image. Can I do method similar to the ColorLearn operation on a thresholded image to analyze the given ROI area colors?
Thanks for the replies.
02-08-2016 10:05 AM
when you use threshold indeed you make a binary image so you can not use color processing methods
but you can use a trick to convert a such image as a color image for using color processing algorithm
see bellow vi to know the trick
02-08-2016 10:41 AM
sorry it seem a problem happen in my attached files the consumer vi relate for other post and the answer is second vi
02-08-2016 04:55 PM
Thanks for your help.
Maybe i was not clear, sorry about that.
I want a greyscaled image to be converted to e.g. RGB image that can be handled as a colored image with the ColorLearn function. (And later with the ColorLearn function i'd analyze a ROI's color)
02-09-2016 04:51 AM
indeed color image consist of three greyscaled image each of the image are for three main color (RGB) so if you have greyscaled image it is impossible to find real color because this kind of format just save intensity value of phenomena inside image
for example think how you can convert rdg color image to greyscaled one? you just get avrage of there plate value so if you could know from the average digit what is the three digit that make such average then you could convert greyscaled image to color image and it is impossible
supposed r=0 and b=0 and g =255 this is full green color and the average digit for greyscale image is 255/3
then what about r=255 and b=0 and g=0 this is full red color but the greyscale value is same 255/3 with green one
I hope now you understand why you could not convert greyscale image to color image
greyscale image is 8bit data color image is 32 bit