Line Integral Convolution

57 views
Skip to first unread message

alexande...@gmail.com

unread,
Nov 26, 2019, 4:29:09 PM11/26/19
to PIVlab
I would like to ask whether it is possible to implement line integral convolution in the post processing of my data?

See Cabral 2015 for reference, "Imaging Vector Fields Using Line Integral Convolution".

William Thielicke

unread,
Nov 27, 2019, 3:25:31 AM11/27/19
to PIVlab
LIC is part of PIVlab (see 'Derive Parameters' menu). But you need to compile it first. Apply LIC, and then have a look at Matlabs command window for instructions.

alexande...@gmail.com

unread,
Dec 2, 2019, 5:16:30 PM12/2/19
to PIVlab
Thank you very much for that.

I have MinGW though I am having extreme trouble getting mex to compile fastLICfunction.c.

I am running windows 10. Is there an alternative? Perhaps using a file compiled already?
Message has been deleted
Message has been deleted
Message has been deleted

William Thielicke

unread,
Dec 6, 2019, 1:52:42 AM12/6/19
to PIV...@googlegroups.com
Hi, I just tested it, and it worked for me with these versions:

MATLAB Version: 9.7.0.1190202 (R2019b)
Operating System: Microsoft Windows 10 Home Version 10.0 (Build 17763)
Java Version: Java 1.8.0_202-b08 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
-----------------------------------------------------------------------------------------------------
MATLAB                                                Version 9.7         (R2019b)
EzyFit Toolbox                                        Version 2.45                
Image Processing Toolbox                              Version 11.0        (R2019b)
MATLAB Support for MinGW-w64 C/C++ version 19.2.0

I attached the compiled files for you, but I think they only work when you have the same MATLAB / Windows version...

Message has been deleted

William Thielicke

unread,
Dec 6, 2019, 1:53:52 AM12/6/19
to PIVlab

William Thielicke

unread,
Dec 6, 2019, 1:54:20 AM12/6/19
to PIVlab

PIVlab_out_001.jpg


Message has been deleted

Jérôme Laurent

unread,
Nov 9, 2023, 4:17:35 AM11/9/23
to PIVlab
Issue solved.

The error occurs when NaNs appear in u and v. 
Smoothing u and v, for example, allows the NaNs as if "rubbed out". 
So the LIC calculation works!

On Wednesday, November 8, 2023 at 8:04:53 PM UTC+1 Jérôme Laurent wrote:
I have the same problem compiling the fastLICfunction.c function. 
After executing the command to compile, the file fastLICFunction.mexw64 is well generated as usually,  but causes an error during the run of the type "Access violation detected". 
Compiling is also managed via gcc or MINGW64. Do you have any compilation options?

Message has been deleted

William Thielicke (Shrediquette)

unread,
Nov 9, 2023, 4:25:29 AM11/9/23
to PIVlab
Ok, thanks, I'll include a fix in the next release!
Reply all
Reply to author
Forward
0 new messages