I need a code using processing 3.4 software to verify 2 signature and compare them.
- or -
Post a project like this€25/hr(approx. $27/hr)
- Posted:
- Proposals: 1
- Remote
- #2220129
- Expired
Description
Experience Level: Expert
Estimated project duration: 1 day or less
Please refer the pdf attached and find page number 32 to find the task 1 for all the details that needs to be included in the code.
Do not use any functions in the code and no C programming.
All the formulas to be used directly. No in built functions can be used.
Find the below reference example code:
PImage img;
size(600, 400);
img = loadImage("robotmarko-g.jpg");
loadPixels();
img.loadPixels();
float[][] fx = {{-1,0,1},
{-2,0,2},
{-1,0,1}};
float[][] fy = {{ -1, -2, -1 },
{ 0, 0, 0 },
{ 1, 2, 1 }};
for (int y = 1; y < img.height-1; y++)
for (int x = 1; x < img.width-1; x++) {
float gx=0, gy = 0;
for (int ky = -1; ky <= 1; ky++)
for (int kx = -1; kx <= 1; kx++) {
int index = (y + ky) * img.width + (x + kx);
float r = brightness(img.pixels[index]);
gx += fx[ky+1][kx+1] *r;
gy += fy[ky+1][kx+1] *r;
}
pixels[y*img.width + x] = color(sqrt(gx*gx + gy*gy));
}
updatePixels();
Do not use any functions in the code and no C programming.
All the formulas to be used directly. No in built functions can be used.
Find the below reference example code:
PImage img;
size(600, 400);
img = loadImage("robotmarko-g.jpg");
loadPixels();
img.loadPixels();
float[][] fx = {{-1,0,1},
{-2,0,2},
{-1,0,1}};
float[][] fy = {{ -1, -2, -1 },
{ 0, 0, 0 },
{ 1, 2, 1 }};
for (int y = 1; y < img.height-1; y++)
for (int x = 1; x < img.width-1; x++) {
float gx=0, gy = 0;
for (int ky = -1; ky <= 1; ky++)
for (int kx = -1; kx <= 1; kx++) {
int index = (y + ky) * img.width + (x + kx);
float r = brightness(img.pixels[index]);
gx += fx[ky+1][kx+1] *r;
gy += fy[ky+1][kx+1] *r;
}
pixels[y*img.width + x] = color(sqrt(gx*gx + gy*gy));
}
updatePixels();
Swathi M.
100% (5)Projects Completed
5
Freelancers worked with
3
Projects awarded
56%
Last project
14 Jun 2020
Germany
New Proposal
Login to your account and send a proposal now to get this project.
Log inClarification Board Ask a Question
-
There are no clarification messages.
We collect cookies to enable the proper functioning and security of our website, and to enhance your experience. By clicking on 'Accept All Cookies', you consent to the use of these cookies. You can change your 'Cookies Settings' at any time. For more information, please read ourCookie Policy
Cookie Settings
Accept All Cookies