Forum

Mesh reconstruction issues

Started by guigus60, September 06, 2016, 11:50:40 PM

Previous topic - Next topic

guigus60

Hi,
I would need some help to recreate a Mesh from a Dense point cloud.
I cleaned up to improve the cloud but when I mesh it, Agisoft ignore the cleaning and mesh a weird shape...
Parameter used:
Surface: Arbitrary,
Source: Densse cloud,
Face Count: Low
Interpolation: I tried all three (Enabled, Disabled, Extrapolated) with same result.

Cheers
Guillaume Clin
Land Surveyor & UAV hobbyist
LinkedIn
ThunderDrone

ekbmuts

guigus60,

Where did the dense cloud come from?

Did you make it in Photoscan from original photos or did you import it from an external source?

If you made it in Photoscan, perhaps you can include a little more information:

1.  What is it?  Meaning, what is it that you are trying to make a model of?

2. How many photos are you using?

3. What were your camera settings?

4. Tripod/no tripod?

5. How are you masking your images?

6. Does the original object that you are trying to model have a texture on it or is it plain white? 

If you provide a little more info, I'm sure I can help you.

Jon

guigus60

Hi Ekbmuts,

Thank you for you help. Yes the Dense point cloud come from PhotoScan. (I didn't know we could import point cloud form external source?)
1) It's the sculpture of a sheep (yes I'm in New Zealand  ;)  )
2) I used 43 images around the sculpture.
3) I used a Olympus SH-1 with a fix focal at 4mm (25 on a 35mm)
4) No tripod (the model is 2,5m high)
5) I haven't mask anything as the model was aligning well, and I was expecting to clean up the cloud.
6) Unfortunately the sculpture is fully white and stand on a rock which have a slight variation of color.

I align the image with High accuracy and preselection Disable, used 2 tie points and scaled it (size and position are not important only the shape).
I created a dense point cloud with high quality and aggressive filtering (I tried different depth and aggressive give the best result).

I suppose create a mask could improve it but this could take some manual time as I have 43 image and no green background... I was thinking if we clean the cloud the removed point would be ignore for the reconstruction of the mesh? The main issues appear to be on the head top.

Guillaume
Guillaume Clin
Land Surveyor & UAV hobbyist
LinkedIn
ThunderDrone

ekbmuts

Guillaume,  Well, I must say that the sheep is awesome!  And only in N.Z....!

From looking at the photos you posted, I'm curious if you were able to take any images from above the sheep.  It looks to me like you may have taken some shots of his back (based on anatomical indicators, I'm guessing this is a he sheep...  ???) but from an angle, rather than from directly above.  I don't know if it's even possible for you to get directly above him. You'd have to climb on top of him and stand on his back in various positions so that you could shoot his back (and head) without your feet in the frame.

In terms of masking, you don't need a green background.  Your background is just fine.  Using the "Free-Form Selection" tool, you can draw a rough mask around the sheep in each of your images.  This doesn't have to be exact.  It can be as close as you can get it.  But I'm talking about spending maybe 5 seconds per image to make a mask.  The quickest way is to use the selection tool and get a rough line around the sheep.  Then hit Ctrl-Shift-A to "add" the selected area to the mask.  Go to the next image and do the same.  When you've done all of them (about 3.5 minutes later) right-click on one image and select "Invert Masks" and when prompted with a dialog box, click on "All Images" and say okay.  Now everything is masked.

Masking like this makes a huge difference sometimes. But in your case, I don't think this is the problem. I think it's the angle of the back and head shots.  But if you want to give it a shot, go ahead.

Fingers crossed that you can get up on top of that guy.  I think your model looks fairly terrific otherwise!

Jon

PS.  Regarding importing dense clouds from external sources, I actually don't know.  I was assuming that you could because you can make them in other programs.  But now that I'm looking at the Photoscan menus, I don't see that option...

PPS.  Not to drag this on, but I have found the following to be useful in making models in Photoscan so I'll pass this on in case it's of use to you:

a.  Shoot RAW and convert to 16-bit TIFF files in Photoshop.
b.  Do your best to keep your camera's ISO setting as close to 100 as possible. Higher ISO = more noise and Photoscan hates noise.
c.  Keep your camera's aperture setting as high as possible.  Preferably f16.  Wide-open apertures such as f2 or f4 will give too much blur.
d.  Of course, your shutter speed has to be fairly quick if you are hand-holding your camera so you need a lot of light.  Your sheep seems to have a lot of light being outside so this isn't an issue.
e.  Avoid shadows on your subject.  Overcast is best for shooting outside.
f.   Avoid reflective subjects.
g.  Avoid non-textured subjects.

There you go.  I'll sign off and see what you come up with when I come to work tomorrow (I'm an English man in Southern California...).

Jon


guigus60

I can see clearly the change !
I took approx 5min to create an approximate mask and the global rendering of the model was so much better... I'm might spend a bit more time to make a better mask for some picture because the little time spend make the result so satisfying  :)
Thank you for the tips
Guillaume Clin
Land Surveyor & UAV hobbyist
LinkedIn
ThunderDrone

ekbmuts

Guillaume,  Great!  Yep - that mask that you posted looks like the ones that I make:  just a rough outline.

LOVE that sheep!

Good luck!

Jon

guigus60

#6
Have a look at the model  :D
I definitely missing a bit on the top but the result is good

New Zealand Sheep by guigus60 on Sketchfab
Guillaume Clin
Land Surveyor & UAV hobbyist
LinkedIn
ThunderDrone