Click here to Skip to main content
15,885,875 members
Articles / Mobile Apps / Windows Mobile
Tip/Trick

WSQ to BMP converter

Rate me:
Please Sign up or sign in to vote.
4.93/5 (12 votes)
7 Feb 2013CPOL 67.3K   3.3K   15   13
A WSQ to BMP converter.

Introduction

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:

C#
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);
bmp.Save(@"C:\sample_image.bmp");

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

License

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


Written By
Software Developer (Senior)
Serbia Serbia
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
GeneralMy vote of 5 Pin
Edex1237-Dec-20 0:07
Edex1237-Dec-20 0:07 
Question5 Stars Pin
Twiggy Ramirezz29-Sep-15 7:17
Twiggy Ramirezz29-Sep-15 7:17 
Questionwebservice to convert WSQ fingerprint format to BMP format Pin
Leverify10-Apr-14 0:03
Leverify10-Apr-14 0:03 
QuestionRaw data to WSQ Pin
drugdu19-Sep-13 5:37
drugdu19-Sep-13 5:37 
AnswerRe: Raw data to WSQ Pin
J.F. Sebastian19-Sep-13 9:23
J.F. Sebastian19-Sep-13 9:23 
Better use NIST Biometric Image Software for .NET. Here is source code.

modified 19-Sep-13 15:35pm.

GeneralRe: Raw data to WSQ Pin
drugdu20-Sep-13 10:23
drugdu20-Sep-13 10:23 
GeneralRe: Raw data to WSQ Pin
J.F. Sebastian23-Sep-13 6:48
J.F. Sebastian23-Sep-13 6:48 
Questionwsq to raw Pin
MiCRo_18-Jun-13 4:17
MiCRo_18-Jun-13 4:17 
AnswerRe: wsq to raw Pin
J.F. Sebastian19-Sep-13 9:16
J.F. Sebastian19-Sep-13 9:16 
Questionbmp to wsq converter Pin
1johan15-Apr-13 8:19
1johan15-Apr-13 8:19 
AnswerRe: bmp to wsq converter Pin
J.F. Sebastian15-Apr-13 8:44
J.F. Sebastian15-Apr-13 8:44 
Suggestion.NET 4 optimized solution - WriteableBitmap Pin
J.F. Sebastian5-Aug-12 22:53
J.F. Sebastian5-Aug-12 22:53 
GeneralMy vote of 5 Pin
Member 40837531-Aug-12 3:35
Member 40837531-Aug-12 3:35 

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

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