The best way to change the contrast of an image

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

The best way to change the contrast of an image

Jump to solution
1,449 Views
ali_sarlak
Contributor III

Hello

I work with IMX6 and I want to change the contrast of an image and then show it.In this case I decide to change each RGB pixel into HSI (in order to keep hue and saturation)then change the intensity and after that convert back HSI to RGB.As you know it's a time consuming task so in my idea I have three way to do that:

1- Use simple loop that consume CPU cycles and it's done in a serial matter

2- Use of multithreading and divide image into 4 parts according to 4 IMX6 CPU and do that each parts with each cores

3- Use OpenCL

4- something else that I didn't know

Of course the performance is so important for me so what is the best way to do that?

0 Kudos
Reply
1 Solution
1,062 Views
igorpadykov
NXP Employee
NXP Employee

Hi Ali

for this task one can use IPU IC color space conversion unit (CSC)

or gpu, please check attached i.MX_6_Graphics_User's_Guide.pdf

sect.2.4.1 Color space conversion from YUV to RGB

Using OpenGL ES to Accelerate Apps with Legacy 2D GUIs

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

View solution in original post

0 Kudos
Reply
1 Reply
1,063 Views
igorpadykov
NXP Employee
NXP Employee

Hi Ali

for this task one can use IPU IC color space conversion unit (CSC)

or gpu, please check attached i.MX_6_Graphics_User's_Guide.pdf

sect.2.4.1 Color space conversion from YUV to RGB

Using OpenGL ES to Accelerate Apps with Legacy 2D GUIs

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

0 Kudos
Reply