Hugh Thompson
2011-02-15 20:34:03 UTC
Hello,
I'm using an eye tracker to get point of gaze coordinates on an image. I've found fixation dwells and stuff like that, but I'm really interested in creating a heat map.
So basically, I have this bunch of coordinates that correspond to where the participant is looking at in the image. I can plot all the coordinates on the image, but that is really confusing, what I want to do is show the areas of high and low density using different colors, as is typically done for eye tracking data (see the image here for example http://b2bleadblog.com/2005/02/landing_page_ha_1.html).
I'm not exactly sure what would be the best way to determine the density of pixels in an image region. I've read about regionprops, but from what I understood that only works for binary images. Also, I don't want to do this for an image, rather a set of pixels plotted on an image. I'm also not sure how I can display the results so that it is semi-transparent as in the link here. The heat map function in matlab does not seem to relate to what I want to do at all.
Any help about what functions I could use or at what I should be looking at would be much appreciated!
Hugh
I'm using an eye tracker to get point of gaze coordinates on an image. I've found fixation dwells and stuff like that, but I'm really interested in creating a heat map.
So basically, I have this bunch of coordinates that correspond to where the participant is looking at in the image. I can plot all the coordinates on the image, but that is really confusing, what I want to do is show the areas of high and low density using different colors, as is typically done for eye tracking data (see the image here for example http://b2bleadblog.com/2005/02/landing_page_ha_1.html).
I'm not exactly sure what would be the best way to determine the density of pixels in an image region. I've read about regionprops, but from what I understood that only works for binary images. Also, I don't want to do this for an image, rather a set of pixels plotted on an image. I'm also not sure how I can display the results so that it is semi-transparent as in the link here. The heat map function in matlab does not seem to relate to what I want to do at all.
Any help about what functions I could use or at what I should be looking at would be much appreciated!
Hugh