Click here to Skip to main content
11,804,008 members (73,625 online)
Click here to Skip to main content

WSQ to BMP converter

, 7 Feb 2013 CPOL 24.4K 1.3K 12
Rate this:
Please Sign up or sign in to vote.
A WSQ to BMP converter.


This is a C# conversion of JNBIS, a decoder library for WSQ images. JNBIS is written in Java. The code basically has been converted from NBIS Version 1.1 which was written in the C programming language. The NBIS (NIST Biometric Image Software) distribution was developed by NIST (National Institute of Standards and Technology) for the FBI (Federal Bureau of Investigation) and DHS (Department of Homeland Security).

Using the code

Using this converter is straightforward:

FileStream fs = File.OpenRead(@"C:\sample_image.wsq");
byte[] fileData = new byte[fs.Length];
fs.Read(fileData, 0, fileData.Length);
WsqDecoder decoder = new WsqDecoder();
Bitmap bmp = decoder.Decode(fileData);

You can use the WSQ sample image file from the Cognaxon website. 


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

J.F. Sebastian
Software Developer (Senior)
Serbia Serbia
No Biography provided

You may also be interested in...

Comments and Discussions

Question5 Stars Pin
Anthony Morera29-Sep-15 7:17
memberAnthony Morera29-Sep-15 7:17 
Questionurgent need for wsq source code in matlab Pin
Member 32900935-May-15 6:11
memberMember 32900935-May-15 6:11 
Questionwebservice to convert WSQ fingerprint format to BMP format Pin
Leverify10-Apr-14 0:03
memberLeverify10-Apr-14 0:03 
QuestionRaw data to WSQ Pin
drugdu19-Sep-13 5:37
professionaldrugdu19-Sep-13 5:37 
AnswerRe: Raw data to WSQ Pin
J.F. Sebastian19-Sep-13 9:23
memberJ.F. Sebastian19-Sep-13 9:23 
GeneralRe: Raw data to WSQ Pin
drugdu20-Sep-13 10:23
professionaldrugdu20-Sep-13 10:23 
GeneralRe: Raw data to WSQ Pin
J.F. Sebastian23-Sep-13 6:48
memberJ.F. Sebastian23-Sep-13 6:48 
Questionwsq to raw Pin
MiCRo_18-Jun-13 4:17
memberMiCRo_18-Jun-13 4:17 
AnswerRe: wsq to raw Pin
J.F. Sebastian19-Sep-13 9:16
memberJ.F. Sebastian19-Sep-13 9:16 
Questionbmp to wsq converter Pin
1johan15-Apr-13 8:19
member1johan15-Apr-13 8:19 
AnswerRe: bmp to wsq converter Pin
J.F. Sebastian15-Apr-13 8:44
memberJ.F. Sebastian15-Apr-13 8:44 
Suggestion.NET 4 optimized solution - WriteableBitmap Pin
J.F. Sebastian5-Aug-12 22:53
memberJ.F. Sebastian5-Aug-12 22:53 
GeneralMy vote of 5 Pin
Member 40837531-Aug-12 3:35
memberMember 40837531-Aug-12 3:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.151002.1 | Last Updated 7 Feb 2013
Article Copyright 2012 by J.F. Sebastian
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid