Click here to Skip to main content
14,266,079 members
Rate this:
Please Sign up or sign in to vote.
See more:
hi everyone,
i am stuck in my FYP which is Automated Luekemia Detection.
i want to convert RGB image into CMYK image that is RGB image should be input and output must be CMYK image in C# visual studio.
i have tried some of links but doesn't work properly. so please help me out as i am running out of time.

What I have tried:

i have tried some links but they didnt work out for me. i need 100% correct conversion code or guide as i am weak in Programming too.
Posted
Updated 28-Jul-17 2:23am
Comments
BillWoodruff 28-Jul-17 22:18pm
   
Why do you need to convert it >
Member 12523470 31-Jul-17 6:34am
   
it is basic requirement of my FYP (Final Year Project) which is Leukemia Detection.
so if you can help me, please help me out
Graeme_Grant 31-Jul-17 7:03am
   
I am not sure what you found wrong with my link.

The author not only gives you the theory and math, but also the code. In the section "Color model transformation" he shows you how to convert a bitmap or individual pixels:
Double[] cmyk = fip.rgb2cmyk(pixel); // Single pixel convertion from RGB to CMYK
Bitmap[] CMYKLayers = fip.CMYKLayers(img); // Get CMYK Layers form ARGB image
Member 12523470 31-Jul-17 7:47am
   
thank you it helped me a lot
Graeme_Grant 31-Jul-17 8:28am
   
Glad to hear :)
Member 13565141 14-Dec-17 9:11am
   
For CMYK, the output is array of 4 image components, how can we get only one CMYK image

1 solution

Rate this:
Please Sign up or sign in to vote.

Solution 1

This will do what you want and much more!

Fundamentals of Image Processing - behind the scenes[^]
   

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




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100