Forum

Author Topic: Utilization of Agisoft PhotoScan output  (Read 8230 times)

cach

  • Newbie
  • *
  • Posts: 3
    • View Profile
Utilization of Agisoft PhotoScan output
« on: April 29, 2014, 12:17:36 PM »
Hello,

I constructed 3D model of plants from photos, using Agisoft PhotoScan Pro.
Now, I would like to use the output of PhotoScan for scientific applications.
For example, I need to extract all triangles which belong to a specific layer in the model, and their associated color.
I see I can export PhotoScan output to various formats, but I don't know which one is the most appropriate for these kind of post-processes.
Do you know which format would permit me to extract all triangles which belong to a specific layer in the model ? Do you know where I could find some documentation about PhotoScan output formats?

Thank you in advance for your help.

Cheers

gatsri

  • Jr. Member
  • **
  • Posts: 77
    • View Profile
Re: Utilization of Agisoft PhotoScan output
« Reply #1 on: April 29, 2014, 01:33:09 PM »
If you use the triangle-modell, you should export the modell as a dxf...
there you can use the model in a CAD. but the thing is, you wil loose the colore...

holpe that helps?

admir

  • Jr. Member
  • **
  • Posts: 93
    • View Profile
Re: Utilization of Agisoft PhotoScan output
« Reply #2 on: April 29, 2014, 02:00:17 PM »
If you dont need detail mesh, you could create low triangle count model and manually select triangles in layer you are interested in and export that with color map. Or you can export model in 3d application and do separation there.

Admir

James

  • Hero Member
  • *****
  • Posts: 748
    • View Profile
Re: Utilization of Agisoft PhotoScan output
« Reply #3 on: April 29, 2014, 02:26:40 PM »
You might find meshlab helpful if i understand right. it allows you to select triangles based on the vertex colour, i'm not sure if it would work for a uv mapped texture.

here's another of my crappy examples :)

1. export mesh from photoscan as binary ply with vertex colours enabled, and import to meshlab.

2. select filter select faces by colour

3. choose a colour and set tolerances on the various colour channels

4. delete, or invert selection before deleting to isolate the selection

James

  • Hero Member
  • *****
  • Posts: 748
    • View Profile
Re: Utilization of Agisoft PhotoScan output
« Reply #4 on: April 29, 2014, 02:27:28 PM »
...4 attachment limit

5. there you have it

you can do much more with meshlab than this, but its quick and easy anyway :)

cach

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Utilization of Agisoft PhotoScan output
« Reply #5 on: April 29, 2014, 04:51:40 PM »
Hello all,

Thanks very much for your answers!

@ristag: I do need to distinguish the different colors, because I want to apply different optical properties to them later on.

@admir: I do need detail mesh, because I want to make calculations at plant organs scale (few square centimeters), from photos of several plants (few square meters).

@James: with meshlab:
  • is it possible to select a specific layer along the vertical axis (i.e. z-axis) ?
  • is it possible to export the triangles belonging to the selected layer, and their associated color, to a text file?
  • is it possible to automate meshlab processes by scripting?
Don't tell me how to do so. I just want to know if it's possible, in case you ever had to do it  ;)

Thanks very much. You really help me!

Cheers.

James

  • Hero Member
  • *****
  • Posts: 748
    • View Profile
Re: Utilization of Agisoft PhotoScan output
« Reply #6 on: April 29, 2014, 05:03:54 PM »
i'm no meshlab expert, but from a quick look:

1. you can perform a conditional selection - select vertices or faces where z > value and z <= value etc, as well as colour and other attributes
2. i'm fairly sure you can move selections to different layers, and export individually in a number of ascii formats. ascii ply is probably my favourite as you can include colour and normal vector info in human readable format.
3. you can do some scripting with meshlab but i only know because i just googled it :)

cach

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Utilization of Agisoft PhotoScan output
« Reply #7 on: April 29, 2014, 05:18:26 PM »
OK. Thanks very much. Meshlab sounds promising to me. I will read the doc, and give you my feedback when I will have some results.
Cheers

MartinBim

  • Newbie
  • *
  • Posts: 18
    • View Profile
Re: Utilization of Agisoft PhotoScan output
« Reply #8 on: April 30, 2014, 09:18:02 AM »
Thanks James! That helps me a lot and I think this is something for Wishgranter to put it into the Tutorial section.