HDR filtering

Normand Robert <sub1-qRMKKPX/3U6JeUw6fRpEvNi2O/[email protected]>
Newsgroups gmane.comp.video.cinepaint.devel
Message-ID <[email protected]>
Hi

I am interested in writing a filter for dealing specifically with hdr 
images. I downloaded
cinepaint-0.22-0_rc4.tar.gz and built it on Fedora Core 6 and modified 
the unsharp plugin to get my feet wet. I am medical imaging researcher 
during the day.

I do get an image but I realize that I do not understand how a plugin 
like unsharp deals with different image types. All of the data pointer 
are of the type
guchar  *cur_col;
guchar  *dest_col;
guchar  *cur_row;

 I am puzzled as to how this code works for all of the data types 
supported in cinepaint. In C, I would have expected the need to cast 
data pointers to unsigned short or float etc and yet this just seems to 
work magically for all images. In C++, I would have expected to see 
templates or function overloading.  There is no reference to colour at 
all in this code either so does it just get called on each colour 
channels or I am working in a colour different representation and 
dealing with intensity?

I hope that you will not find these questions too naive but I mostly 
work with greyscale images in my world.

Regards

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.