tag:blogger.com,1999:blog-6829519895729091684.post3608451659239631685..comments2017-03-09T09:09:19.402+01:00Comments on Damiles. Computer Vision, OpenCV, Machine Learning and more: Pseudocolor implementation with OpenCV.David Millán Escrivánoreply@blogger.comBlogger15125tag:blogger.com,1999:blog-6829519895729091684.post-1186938209783382232014-06-05T14:24:05.000+02:002014-06-05T14:24:05.000+02:00hi,I am processing five brown coloured objects ,a...hi,I am processing five brown coloured objects ,among them one object is of different intensity (darker shade) than the others. I have to highlight that different object.I am working with HSV colour space.but the results are not accurate with different images taken in different illumination levels.(when the outer room light is less then all objects look similar). In the meanwhile I am looking whether fuzzy works out for my problem.can anyone help me in this problem?jeevannoreply@blogger.comtag:blogger.com,1999:blog-6829519895729091684.post-26393816221412973372014-04-25T16:36:14.000+02:002014-04-25T16:36:14.000+02:00The code is now in github and link is restored.The code is now in github and link is restored.damilesnoreply@blogger.comtag:blogger.com,1999:blog-6829519895729091684.post-2545070208753321262014-04-21T06:20:34.000+02:002014-04-21T06:20:34.000+02:00awesome explanation but the link to the code's...awesome explanation but the link to the code's deadkkcocogogonoreply@blogger.comtag:blogger.com,1999:blog-6829519895729091684.post-46424366015630504352013-12-15T16:32:01.000+01:002013-12-15T16:32:01.000+01:00Hi Damiles...nice blog hah!! especially for a begi...Hi Damiles...nice blog hah!! especially for a beginner like me.<br><br>Could you please email me the source code for this part?? I can't open the link..404 Not Found.I dont know why.<br><br>mafifaz91@yahoo.com<br><br>Thank you :)Natenoreply@blogger.comtag:blogger.com,1999:blog-6829519895729091684.post-85668778736374688612013-07-31T07:31:16.000+02:002013-07-31T07:31:16.000+02:00HI, it's really nice information to me. I'...HI, it's really nice information to me. <br>I've been studying about Pseudo-Colour processing. <br>I want to know about the reference of this content.<br>please help me. ^^uncleunoreply@blogger.comtag:blogger.com,1999:blog-6829519895729091684.post-4006063317280298652012-07-04T20:41:14.000+02:002012-07-04T20:41:14.000+02:00Hi!!!I couldn't download the source, is there ...Hi!!!<br><br>I couldn't download the source, is there any way that I can get it?<br><br>Thanks,<br><br>JohannaJohannanoreply@blogger.comtag:blogger.com,1999:blog-6829519895729091684.post-89069683868626073362012-02-24T13:33:54.000+01:002012-02-24T13:33:54.000+01:00hi..i want to map 8bit gray level image to pseudo ...hi..i want to map 8bit gray level image to pseudo color...in matlab...but i am not understanding how i determine the values...little what i got and i am not able to understand is this :<br><br>clc;<br>clear all;<br>im=input('Enter the file name (gray level image) :','s');<br>k=imread(im);<br>[x y z]=size(k);<br>figure, subplot(1,2,1),imshow(k), title('Original gray scale image');<br>for i=1:x<br> for j=1:y<br> if k(i,j)>=0 & k(i,j)=5 & k(i,j)=10 & k(i,j)=15 & k(i,j)=20 & k(i,j)=25 & k(i,j)=30 & k(i,j)=35 & k(i,j)=40 & k(i,j)=45 & k(i,j)=50 & k(i,j)=55 & k(i,j)=60 & k(i,j)=65 & k(i,j)=70 & k(i,j)=75 & k(i,j)=80 & k(i,j)=85 & k(i,j)=90 & k(i,j)=95 & k(i,j)<100<br> m(i,j,1)= 0.37; <br> m(i,j,2)= 1;<br> m(i,j,3)= 0.625;<br> end<br>please help me in understanding this code...how the values are working here..?rishinoreply@blogger.comtag:blogger.com,1999:blog-6829519895729091684.post-10091556750088536962011-10-11T15:02:32.000+02:002011-10-11T15:02:32.000+02:00Hi Olu, the mapping function is the above funcion ...Hi Olu, the mapping function is the above funcion on tutorial. In code i generat under pseudocolor.c a table with this function for all value colors 0..255 and i map the image with pseudocolor function.damilesnoreply@blogger.comtag:blogger.com,1999:blog-6829519895729091684.post-12504980312518588092011-10-03T18:38:15.000+02:002011-10-03T18:38:15.000+02:00Hello,What is the of the mapping function?Do you h...Hello,<br>What is the of the mapping function?<br>Do you have any references for it?Olunoreply@blogger.comtag:blogger.com,1999:blog-6829519895729091684.post-33745602421897712422010-04-09T16:29:15.000+02:002010-04-09T16:29:15.000+02:00Ok, just in case you need it, I think I have somet...Ok, just in case you need it, I think I have something useful here. I tried with LUTs, but finding the right bin is not trivial (color distances, you know). So I went back to HSV.<br><br>The thing is, in HSV, that lower and higher V values produce undefined H values. Therefore, H is not enough to map from pseudocolor to gray. <br><br>But you get a nice mapping if the gray value is given by the following expression:<br><br>gray = (240.0 - HUE) * (240.0 - HUE) * V. <br><br>Then you adjust the dynamic range back to 0-255. <br><br>That way, low light values produce low gray values, high light values produce high gray values and middle tones are handled by HUE. <br><br>That's of course if the pseudocolor map is similar to what we talked before: white-red (0 HUE)-yellow-green-cyan-blue (240 HUE)-black :)Luis Antonhttp://playmedusa.comnoreply@blogger.comtag:blogger.com,1999:blog-6829519895729091684.post-13206601632017707562010-04-08T19:49:32.000+02:002010-04-08T19:49:32.000+02:00Well, something similar. Indeed, the scale is just...Well, something similar. Indeed, the scale is just the same that Hue values take in HSV, more like this:<br>http://en.wikipedia.org/wiki/File:HSV-RGB-comparison.svg<br><br>In fact, I also wanted to try those fuzzy logic sets to go from color to HUE. That would work too, I guess. There's no violet (no colors above 240º), so I would have no problem with circling colors...Luis Antonhttp://playmedusa.comnoreply@blogger.comtag:blogger.com,1999:blog-6829519895729091684.post-60448379499259845712010-04-08T19:38:03.000+02:002010-04-08T19:38:03.000+02:00The image is plain rgb, but you can use other colo...The image is plain rgb, but you can use other color space to work, for example Lab space or HSV or similar because have some properties than others.<br><br>The scale is simiar to this? http://en.wikipedia.org/wiki/Color_theory#Warm_vs._cool_colorsdamilesnoreply@blogger.comtag:blogger.com,1999:blog-6829519895729091684.post-13352739489391532972010-04-08T19:27:58.000+02:002010-04-08T19:27:58.000+02:00It's plain RGB, but no idea about the algorith...It's plain RGB, but no idea about the algorithm. The scale is similar to this one: http://www.efg2.com/Lab/Library/Color/AccuweatherRadarReflectivity.jpg<br><br>So yes, I think I'll prepare a LUT table and that's all :)Luis Antonhttp://playmedusa.comnoreply@blogger.comtag:blogger.com,1999:blog-6829519895729091684.post-18041555922558918212010-04-08T18:01:44.000+02:002010-04-08T18:01:44.000+02:00Hi Luis, you know the color space and algorithm wa...Hi Luis, you know the color space and algorithm was encoding this image?. If you know or can determine it, then you can create a reverse function. It's only i can help. It's good you create lut table for better performance.<br><br>Regards David.damilesnoreply@blogger.comtag:blogger.com,1999:blog-6829519895729091684.post-17264567531986292522010-04-08T17:34:02.000+02:002010-04-08T17:34:02.000+02:00Hi! First of all, nice blog :)I am facing the oppo...Hi! First of all, nice blog :)<br><br>I am facing the opposite problem. I've a pseudocolor image that represents reflectivity (or energy). From black / blue values (no reflectivity) to red / white values (maximum reflectivity). In fact, my images are exactly the inverse of what you are showing: blue regions come from dark values, red regions come from white values.<br><br>I guess I could use something like your function to map that 3 channel image back to a gray level image (because I'm using OpenCV to analyze it, and thus color is not so important). Right now, I'm simply weighting each channel: <br><br>graylevel = 0.6 * r + 0.4 * g + 0.2 * b<br><br>That way, white/red regions become brighter than blue/black regions.<br><br>But I don't really like that solution. Then I thought I could create a LUT table... but it would be much better with a map function like yours. Any experience with something like that?Luis Antonhttp://playmedusa.comnoreply@blogger.com