Find Jobs
Hire Freelancers

Assembly language smooth chroma key

$30-50 USD

Cancelled
Posted over 13 years ago

$30-50 USD

Paid on delivery
Hello, I have a code in c++ which calculate the alpha value for each pixel from a red screen background scene like that: DWORD bits[1024x1024]; //some code here for(int x=0;x<1024;x++) for(int y=0;y<1024;y++) { DWORD a=255; DWORD r = ((bits[1024*y+x]&0x00ff0000)>>16); DWORD g = ((bits[1024*y+x]&0x0000ff00)>>8); DWORD b = ((bits[1024*y+x]&0x000000ff)>>0); if (r==255 && g==0 && b==0) a=0; bits[1024*y+x]=ARGB(a,r,g,b); } The problem with this code is than it doen't give smooth border, what I need is all red to be removed but smoothly, I mean a perfect red (255,0,0) will give a alpha of 0 a pink (255,0,200) willgive an alpha between 0 and 255. I will preferably choose a coder who can give a assembly language code which I could add to my c++ code because I need the algorithm to be fast, but my priority is to have a working code even in c++, because all my tries gave either to much transparent or either red edges. Thanks
Project ID: 3633812

About the project

2 proposals
Remote project
Active 14 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
2 freelancers are bidding on average $43 USD for this job
User Avatar
See private message.
$42.50 USD in 10 days
4.3 (14 reviews)
4.3
4.3
User Avatar
See private message.
$42.50 USD in 10 days
5.0 (27 reviews)
3.9
3.9

About the client

Flag of FRANCE
Bourg de peage, France
5.0
41
Payment method verified
Member since Dec 23, 2003

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.