LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

CLAHE (Contrast Limited Adaptive Histogram Equalization) algorithm in LabVIEW?

Solved!
Go to solution

Hello community!

I am working on a project which requires me to apply CLAHE to the image. I am wondering if LabVIEW can do things like this or not? 

I found a vi called Histogram Equalization. However, after trying this, I don't think it's anywhere near the algorithm of CLAHE. 

Moreover, I tried using DLL method mentioned in this post, still no luck.

Anyways, I am desperately seeking for help, don't know if LabVIEW is capable of performing CLAHE with its own vis or I need to find other methods to achieve this.

 

Here's the process:

I first use the line scanner (Keyence LJX8020) to scan a surface. Once I obtain the surface information, I convert it from 2D array to U16 image, as shown in Fig1.

Comparing Fig1 with Fig2, which is processed with CLAHE algorithm, the middle part is very different. It's missing a lot of details. 

I also attach the test piece we use to scan below.

 

0 Kudos
Message 1 of 5
(362 Views)

Hi Billy,

 


@Billy901104 wrote:

I first use the line scanner (Keyence LJX8020) to scan a surface. Once I obtain the surface information, I convert it from 2D array to U16 image, as shown in Fig1.

Comparing Fig1 with Fig2, which is processed with CLAHE algorithm, the middle part is very different. It's missing a lot of details. 

I also attach the test piece we use to scan below.


It seems you forgot to attach all of your promised attachments…

 


@Billy901104 wrote:

Anyways, I am desperately seeking for help, don't know if LabVIEW is capable of performing CLAHE with its own vis or I need to find other methods to achieve this.


LabVIEW is a full-featured programming language and you can implement any algorithm you need!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 5
(334 Views)

Ah! You are totally right. I did forgot to attach the files. My apologies.

Here's the files! 

 

0 Kudos
Message 3 of 5
(323 Views)
Solution
Accepted by topic author Billy901104

If you're not into implementing the algorithm in LabVIEW, you could call the algorithm in Python from LabVIEW using the Python node.

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
Message 4 of 5
(320 Views)

Thanks for replying to my post.

Actually I wanted to implement the algorithm into LabVIEW. However, after weeks of trying, sadly still nothing. Guess it's out of my league.

I am looking for a quick way to do this and python node is a really good idea! I'll try it out later! 

I already tried using MATLAB node but nothing. Maybe I'll have some luck on Python node.

 

Anyways, thanks for responding!

0 Kudos
Message 5 of 5
(303 Views)