or may be RAW means the RAW format used in digital cams...
not sure how RAW data is converted to jpg.
Anyways no harm in trying above post![]()
That thought crossed my mind too, but I really doubt, that a fingerprint sensor even supports multiple colors. Because the one thing that really would be difficult in handling camera RAW files is to make something usefull of the Bayers pattern.. A Bayers pattern sensor has a lot of difficulties, with high frequency geometric contrasts.. Trading geometric resolution for color resolution... But the highest possible geometric resolution is what you need in a fingerprint sensor. So: no Camera RAW involved here!
Joh
Thanks Johannes,
I am able to display the RAW image on QLabel by following your steps,in this case the background goes black and the fingerprint impression is colored.
if the same data is stored in a file and displayed after converting into standard format,I get the background color as white and fingerprint impression in black,my question is how I can change the memory image to look like the latter case.
I want to superimpose the correct/wrong signs on this image,how can I achive it?
Thanks,
Ratheendran
You need to make sure that you specify the correct (color) format in the QImage constructor. If you get wrong colors something went wrong. How is your data represented? As 8-bit Grayscale? So that now you have the grayscale as red-channel?
What do you mean by correct/wrong signs? Overlay another matching/nonmatching fingerprint?
Johannes
Hi Johonnes,
The image is 'Format 8-BPP monochrome' is the documented in the user manual.
I used the below funtions
snapshot of the code
QImage image(buff,280,352,280,QImage::Format_Indexed8);
ui->label->setPixmap(QPixmap::fromImage(image,Qt::NoOpaqueDe tection));
there is also a 'Note' on http://doc.trolltech.com/4.6/qimage.html#Format-enum which is copied below.
"Note: Drawing into a QImage with QImage::Format_Indexed8 is not supported"
so,what is the work around?
And Correct/Wrong signs are the tick/cross marks on the fingerprint image which I need to display on the image, once the verification is completed.
Ratheendran
Indexed Color.. means you have to specify your own color table.
Qt Code:
QVector<QRgb> colorTable(256); for(int i=0;i<256;++i) colorTable[i] = qRgb(i,i,i); image.setColorTable(colorTable);To copy to clipboard, switch view to plain text mode
Joh
Last edited by JohannesMunk; 19th March 2010 at 13:49.
If you want to draw a cross or a tick on top of the image, you will need to convert the image from indexedColor:
Qt Code:
// Load GrayScale as 8-bit-IndexedColor // Setup Color-Table QVector<QRgb> colorTable(256); for(int i=0;i<256;++i) colorTable[i] = qRgb(i,i,i); image.setColorTable(colorTable); // Convert to RGB32 for painter painter.drawLine(...) ..To copy to clipboard, switch view to plain text mode
Does that do the trick?
Joh
Last edited by JohannesMunk; 19th March 2010 at 13:51.
Thanks Joh, for your support and response.
I tried your code,I didn't find any of QPainter constructor called with QImage so unable to draw line over the fingerprint image. can you suggest an alternative
(QPainter painter(image2))
Ratheendran
Ah sorry. The Constructor needs a pointer to a QPaintDevice. QImage is a QPaintDevice.. We just need to pass the pointer:
Joh
Bookmarks