Click here to Skip to main content
15,914,905 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a point cloud data i am applying an algorithm for checking inliers and outliers. After the check while displaying i just want to display the inliers and the outliers should not be displayed in the point cloud.
I am using MATLAB to display point cloud. What value should be given to the outliers so that they will not be displayed in my point cloud.

What I have tried:

I tried giving the outliers as NAN.
Posted
Updated 6-Apr-16 20:25pm
Comments
W Balboos, GHB 6-Apr-16 9:17am    
Couldn't you recreate the data set with the outliers eliminated? I did that with XPS data (cosmic rays caused spikes). Points > 2 SD from the mean were dropped and then the point plotted.

(This was actually a 2D signal-averaging model: typically 100pts/pt for 'y', although this could be increased for weaker signals.

<br>
riivv 6-Apr-16 9:42am    
I have a point cloud data displayed in matlab. I am using that point cloud data as an input to my C++ code in a matrix. after that I am checking in c++ for inliers and outliers and then I have to send to send the matrix of same size as my input matrix which consists in inliers and outliers and then the outliers should be given some value so that while displaying them in matlab they will not be visible. I am not understanding what value to be given to outliers so that they will not be displayed

1 solution

The NAN replacement should have worked so long as the MatLab commands are setup correctly. I assume you have checked the NAN replacement worked correctly.

The display or not display is totally controlled by the MatLab code and once you have the outliners as NAN you do what you like with them inside MatLab.

A basic 2D plot is usually something like
plot(a(~isnan(a)),b(~isnan(a)));

I am either missing something or you should be googling "MatLab How to avoid to plot the NAN value?"

Perhaps a start point
Using and removing NaN in MATLAB plots &raquo; Stuart’s MATLAB Videos[^]
 
Share this answer
 
v9

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900