ncorr post CS tool fail

Hi,
I have been doing research at UNSW in Australia. I have been using the ncorr in my research work for image processing. However, in the step of image processing, the ncorr_post CS tool is not working. Every time, it gives me the below error. Could you please let me know the reason of this problem and how to sort it this problem?

1 Comment

Hi, thanks for your reply. I know this problem is related to the color mapping. However, when the data was transferred from ncorr post to ncorr post CS tool with doing scale displacement which is mandatory to run the ncorr post CS tool, the picture pops up like mentioned earliar without any color. Moreover, it is not possible to change any programming in tbe script as it is controlled by the author of the ncorr software.

Sign in to comment.

Answers (3)

Divyanshu
Divyanshu on 30 Jul 2024
Hi,
A possible reason for the error 'Must be two element row vector' can be that either one or both of the arguments passed to the function 'caxis' is empty or is not a numerical value.
Ensure that 'plottingData(1).lowerBound' & 'plottingData(1).upperBound' are valid numerical values as they represent limits of colormap.
You can refer the following documentation link for more details:

2 Comments

Hi, thanks for your reply. I know this problem is related to the color mapping. However, when the data was transferred from ncorr post to ncorr post CS tool with doing scale displacement which is mandatory to run the ncorr post CS tool, the picture pops up like mentioned earliar without any color. Moreover, it is not possible to change any programming in tbe script as it is controlled by the author of the ncorr software.
Sure, I understand that it may not be possible to modify the script but I am trying to point the reason that what is the cause of the error. If you can manage to somehow access the corresponding .mlapp file then maybe the issue can be rectified, else have to contact the tool author.

Sign in to comment.

Ruri
Ruri on 7 Sep 2024
Hi,
Have you solve this problem? I am facing the same issue and haven't been able to find a solution for a week..

1 Comment

The author gave me some solution but it didn’t work. Still it is unsolved.

Sign in to comment.

Jingfu Chen
Jingfu Chen on 7 Feb 2025
Exactly the same problem here. I also notice an issue with scale displacement of ncorr_post.m. Found a solution to comment out some code (https://blog.csdn.net/weixin_44594082/article/details/121609698). Then ncorr_post.m works for me but not the CSTool.

2 Comments

I think I find some similar solution, which is to simply comment out line 902-904 of strainAlongLine.m. At least the program would load the picture, but I don't know whether there are some other consequences.
Hi, It works well right now after commenting out the lines from 902-904 of strainAlongLine.m. Great. Thanks.

Sign in to comment.

Categories

Asked:

on 29 Jul 2024

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!