C++ :: Apply Gabor Filter For Fingerprint Enhancement?
Feb 21, 2012
I am trying to apply gabor filter to a fingerprint for fingerprint enhancement using c.
My image size is 280x340.Gabor filter equation is :
F(x,y) = exp(-0.5*[x^2/sigma_x^2 + y^2/sigma_y^2]) * cos(2*PI*f*x);
I am able to execute this equation.But my problem is i am calculating the equation for 280x340 times and it is taking time(4 sec 2.93GHz 3GB ram).
how to reduce the executation time ?
What I know exp function is taking time. So is there any equivalent of exp which will take less time to execute ?
View 6 Replies
ADVERTISEMENT
Jan 24, 2014
I am Using a fingerprint Scanner for attendance posting.
finger print reader vendor is essl,model is[URL] The device is connected on lan,It has option to download the users list and attendance list to pendrive in .dat format.
I am looking for fetching these data from device through any of the network computers other than manually copying to pendrive from the device each time.
Is it possible to download data from device through any of the network machines Using C# code ?
View 7 Replies
View Related
May 13, 2014
I am Trying to make my program read 10 integers from a user-named file using arrays, but I encountered logic error because the calculations turns out to be wrong. my question is, Am I supposed to use arrays with files? if so, What is wrong? it runs fine but only the calculation is WAY OFF!
#include <iostream>
#include <fstream>
#include <string>
using namespace std;
const int SIZE = 10;
void input(const int a[], int size);
int getTotal(const int a[], int size);
[Code] ....
View 14 Replies
View Related
Feb 5, 2013
How can decrypt the file that the program below encrypt?
// This program encrypts a file
#include<iostream>
#include<fstream>
using namespace std;
int main() {
const int ENCRYPT=10; // amount to add to a chor
const int SIZE= 255; // array size
[Code]...
View 2 Replies
View Related
Jan 12, 2015
how to write a password cracking program that will try all possible char combinations for just two chars (without duplicating any combination guesses). Obviously, there would only be 4 possible truth table combinations for two boolean values, but how would a person calculate the number of all possible combinations for two values with 70 different possible chars?
#include <iostream>
#include <string>
#include <cstdlib>
#include <ctime>
using namespace std;
static const char alphanum[] =
"0123456789"
"!@#$%^&*"
"ABCDEFGHIJKLMNOPQRSTUVWXYZ"
"abcdefghijklmnopqrstuvwxyz";
/*
Boolean Truth Table for two values:
p q
-----
T T
T F
F T
F F
Note that there are 70 chars in all specified above.
It will require much more than a simple truth table to try every possible char combination (especially if the password to be cracked is 2 or more chars). Using this guy's code: [URL] ..... as a starting point, I'm writing a program that will crack a password with a length of just 2 chars.
*/
int stringLength = 2;
char genRandom() {
return alphanum[rand() % stringLength];
}
int main() {
std::string password = "Sp";
srand(time(0));
std::string Str;
[code]....
View 19 Replies
View Related
Apr 14, 2014
I am starting a project in a few weeks that needs to be able to prevent an executable from running until it has been checked for various criteria (think of it as a DIY anti virus).
My main idea is to build a file filter driver in C to hook into file system reads and writes and prevent executables that I don't like from executing off the disk.
View 1 Replies
View Related
Jul 11, 2014
I was trying to put mutex lock on shared memory but my code is not working. What I want is that if some process is putting something on shared memory segment, other process should not be able to access that segment. For testing , I create a server program which put data in shared memory and client program which access the data.
To test it, I put break point after:
pthread_mutex_lock(&(init_lock));
But I see that client program was able to access shared memory.
Below is code:
Server: Code: pthread_mutex_t init_lock = PTHREAD_MUTEX_INITIALIZER;
main()
{
char c;
[Code].....
View 1 Replies
View Related
Sep 8, 2013
I am trying to do a simple calculation. I just started C++ and learning about decisions. My program should calculate number of tickets and apply discount based on the number of tickets purchased. It will only execute one of the decisions.
#include <iostream>
using namespace std;
int main() {
double qty; // qty of tickets
double discount; // % of discount.
[Code] ....
View 7 Replies
View Related
Oct 11, 2014
I'm new to c# and i'm using vs 2013 and access database..my i need to do multiple update records after I filtered the records in datagridview
In my database table I have these fields ID(PK/autonumber), EID,Date,Day,Daystatus..
In my form I have a button and it's fucntion is filter by date using bidingsource.fiter and this was the result
EID------Date-----------Day---Daystatus
10175--10/11/2014---sat--------regular
10176--10/11/2014---sat--------regular
10177--10/11/2014---sat--------regular
10178--10/11/2014---sat--------regular
what I want to happen is when I click another button called "Apply to all" I want to Update all the daystatus to "Legal Holiday" of the filtered records..I know how to update one by one using simple update..but I need to do the multiple update..
I tried to make a code but it was updating all the records not the filtered only here's my code:
try {
OleDbCommand command = new OleDbCommand();
connection.Open();
command.Connection = connection;
string query = "SELECT EID From EmployeeTable";
command.CommandText = query;
String a = "Legal Holiday";
[Code] ......
View 1 Replies
View Related
Dec 7, 2014
I need to apply theme file in windows form but I can't. When I use the code below I get error because there is no System.Windows.Application
StreamResourceInfo sri = System.Windows.Application.GetResourceStream(
new Uri("App.xaml", UriKind.Relative));
var resources = (System.Windows.ResourceDictionary)Load(sri.Stream); ;
var app = new System.Windows.Application();
app.Resources.MergedDictionaries.Add(resources);
View 2 Replies
View Related
Mar 11, 2013
I'm trying to get some more user friendly things in my program done. Now I'm trying to filter by typing in a text box and it filters to what you are typing and shows the entire row.
This is what I currently have:
private void txtFilter_TextChanged(object sender, EventArgs e) {
try {
SQLiteConnection connect = new SQLiteConnection(connString);
connect.Open();
[Code] ....
I get an exception error though:
SQLite error
near "'N'": syntax error
// N is what I started typing to start the filter.
Ok, so I've edited the code now to this:
private void txtFilter_TextChanged(object sender, EventArgs e) // FILTER TODO {
DataView view = new DataView();
SQLiteConnection connect = new SQLiteConnection(connString);
connect.Open();
view.RowFilter = "Channel like '%" + txtFilter.Text + "%'";
}
No more exception errors, just not what I want it to do. It just keeps everything there.
View 10 Replies
View Related
Aug 21, 2012
How to open a image in paint mode after that how to apply graphics to that opened image in paint mode.I am attached a image i want to draw a center line in that image..
Attached Images point1.jpg (12.9 KB)
View 1 Replies
View Related
Mar 1, 2013
private String[] GetExcelSheetNames(string excelFile) {
OleDbConnection objConn = null;
SqlConnection objSqlConn = null;
System.Data.DataTable dt = null;
try {
[code].....
Now I can fatch all the excel sheet belongs to the Excel File.But How can I check "If and Only If the sheets are havin Underscore in their name(eg. student_data,teachers_data) then only the data of the sheets will populate in tha data base"
View 2 Replies
View Related
Aug 30, 2013
I have a huge text file in following format:
{Bunch of text
.
.
}
[Code].....
I want to extract Text1, Text2, Text3, Text4,..., Text600 in the output file. How can i achieve this?
/* BTW, I am not getting my homework done here. I am an ex-programmer, who has now moved to marketing for some time now, and today, I encountered this problem, which I believe can be solved easily through programming. */
View 3 Replies
View Related