Turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page

Trin

Member

08-26-2011 06:14 AM

Options

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report to a Moderator

Hi everyone,

i want to do the color interpolation on a surface in the first round i do the interpolation with using the Color array in the scene mesh, every thing works fine. The problem starts when i want to pick a point on the surface and based on the new picked point do the color interpolation. So all the vertices's on the meshed surface get interpolation based on the value of new picked point. I found the 3D sensor mapping the problem is that i need to feed in a STL file and what i have is a point cloud, i can make a STL file out of it, but i need to update the coordination after each scans, and it can not be done with using STL, so the input of this express VI should be changed which is itself would be hard.

Any suggestion would be so appreciated.

Cheers

Ben

Knight of NI

08-26-2011 07:50 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report to a Moderator

I am sorry but I did not follow what the issue is exactly.

I did look at the NI version and promptly tossed after seeing it load 1000 sub-VI and rewrote it myself using first principles which is probably not an option for you but, if you slow down and explain what you need help with (images will help a lot) we may be able to advise.

That's all I can say now,

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel

aeastet

Trusted Enthusiast

08-26-2011 08:24 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report to a Moderator

Here is a little vi that does color interpolation. I am not sure if this will help but it could be a start.

Tim

GHSP

GHSP

08-26-2011 08:30 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report to a Moderator

aeastet

Trusted Enthusiast

08-26-2011 09:13 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report to a Moderator

Here you go.

Tim

GHSP

GHSP

08-26-2011 09:19 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report to a Moderator

Let me try to formulate my problem again. We start with a surface composed of triangles. To each vertice a color has been assigned.

1. I want to choose an arbitrary point on this surface and assign a color to it ( in the attached picture shown by green color) .

2. The color should be interpolated with all vertices. So the interpolation shouldnt be just done for one triangle, but the interpolation should affect the entire surface.

Thanks

benni_

NI Employee (retired)

08-29-2011 03:40 AM - edited 08-29-2011 03:41 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report to a Moderator

Hi Trin,

to get your problem straight:

1) You do have colors assigned to the vertices of a surface made up by triangles

2) You want to interpolate the color of an arbitrarily chosen point based on the colors of all available vertices

To do the interpolation based on all available vertices you have to weight the colors of the vertices based on the distance (i.e., euclidean distance) from the arbitrarily chosen point. Also consider the idea of bilinear interpolation.

Regards,

Benjamin

benni_

NI Employee (retired)

08-29-2011 04:01 AM - edited 08-29-2011 04:09 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report to a Moderator

Hi Trin,

it would furthermore be interesting how you represent your data in LV. Depending on your representation it could be possbile to use the "Mathmatics - Interpolation & Extrapolation - Interpolate 2D" function to solve your problem.

Regards,

Benjamin

08-29-2011 04:08 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report to a Moderator

benni_

NI Employee (retired)

08-29-2011 04:25 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report to a Moderator

Hi Trin,

you really should try to break your problem into pieces. Do you want advise on your 2D surface interpolation task or on interpolation in 3D point spaces?

Better approach a single question at a time than try to solve everything at once.

Regards,

Benjamin