Forum

Author Topic: Orthophotos of Wall Facades and other vertical surfaces  (Read 18920 times)

matt07lx

  • Newbie
  • *
  • Posts: 30
    • View Profile
Orthophotos of Wall Facades and other vertical surfaces
« on: January 16, 2017, 10:05:13 PM »
I use Photoscan in archaeology to document standing architecture and archaeological trenches. I have a question about the feasibility of using Photoscan to create orthophotos of wall facades or other vertical surfaces. Our GCPs are measured using a total station, and these allow us to create perfect "top down" orthophotos for archaeological plans, but is it possible to do the same for walls and the sides of trenches, allowing for the creation of archaeological section drawings? I know that it is possible to choose a planar projection using markers to define the horizontal and vertical axes for the orthophoto, but if these markers are manually placed onto the 3D model from Photoscan, how accurate is the resulting orthophoto? For instance, will the horizontal orientation of the orthophoto be parallel to the x and y axis from our GCPs, or will it follow the arbitrary horizontal plane between my two markers on the wall? I have the same question for the vertical axis - will it align along the z axis from the GCPs or the line between my markers? What if the wall in question was "slanted" and not perfectly vertical? I'd appreciate any input that anybody could provide.
« Last Edit: January 17, 2017, 04:52:50 AM by matt07lx »

chrisd

  • Full Member
  • ***
  • Posts: 187
    • View Profile
Re: Orthophotos of Wall Facades and other vertical surfaces
« Reply #1 on: January 19, 2017, 07:07:04 PM »
Post this question over on the CloudCompare forum, it can perform arbitrary unwrapping or projection so you might get some help there. Daniel is the developer and he is usually quick to respond.

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14855
    • View Profile
Re: Orthophotos of Wall Facades and other vertical surfaces
« Reply #2 on: January 19, 2017, 07:32:15 PM »
Hello matt07lx,

When the projection plane is defined by three markers it means that the plane contains all three points, so it wouldn't be necessarily vertical or horizontal surface. For more customization you can use python scripting, for example using one of the axis defined by the GCPs and another by the manually placed markers for the projection plane definition.
Markers that are used to define the projection plane do not require to have coordinates input.

Also Current View projection option is supported.
Best regards,
Alexey Pasumansky,
Agisoft LLC


matt07lx

  • Newbie
  • *
  • Posts: 30
    • View Profile
Re: Orthophotos of Wall Facades and other vertical surfaces
« Reply #4 on: January 21, 2017, 12:23:05 AM »
Many thanks to everyone for the suggestions.

Chris - I've read the article, but I'm afraid that I do not quite follow the workflow. How do you create a point that is exactly one meter vertically higher than another in Photoscan? This seems to be the issue that I was having since I can only place markers manually using the mouse. Is there a way to create a marker in a location if I know the coordinates I want? It's also unclear to me where the "profile nails" should be placed - in the profile? On the ground? Does this method require a total station in prismless mode? (If so, this isn't a possibility)

Alexey - This method sounds very intriguing. Are there any Python scripts available that would allow me to do this? Ideally, I would define the horizontal axis using the GCPs and the vertical axis using manually placed markers on the wall surface.

chris

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Orthophotos of Wall Facades and other vertical surfaces
« Reply #5 on: January 23, 2017, 09:54:36 AM »
Hi matt07lx!

first, you will need your Photoscan model to be georeferenced. You wrote that you have a total station, so even if it has no reflectorless-mode, that should not be a problem. Just mark four points (two at the top and two at the bottom plane of your profile as shown on fig.1 in the linked article) and measure them with your reflector. In Photoscan, you can add markers directly onto the mesh (right click on the mesh and choose  "Create marker" from the context menu). Place a first marker near the left border of your profile (corresponds to KS-U in the article) and a second one near the right border (KS-X) at about the same altitude. I then manually edit the altitude (Z-value) of KS-X to the altitude of KS-U in the reference pane (click into the corresponding field at the "Markers" section and enter new value). This step is not really necessary if you choose "Vertical axis" while building the orthophoto. You will then need to "construct" KS-Y. Right-click into the "Markers" section and create another marker. Copy/paste the easting and northing of KS-U to the new marker KS-Y and add the altitude (altitude of KS-U plus e.g. one meter).  Now you have the three points needed to build the orthophoto.

Greetings,
Chris


« Last Edit: January 23, 2017, 10:50:45 AM by chris »

matt07lx

  • Newbie
  • *
  • Posts: 30
    • View Profile
Re: Orthophotos of Wall Facades and other vertical surfaces
« Reply #6 on: January 24, 2017, 10:44:42 PM »
Hey Chris,

Thank you! I've tried this out and I believe I now have it working. I just wanted to clarify a couple steps to make sure that I am doing this correctly.

First, my models are not georeferenced, but use a local coordinate system based upon targets shot in using a total station. This doesn't seem to matter.

After I create the first two markers by right clicking onto the mesh (near the left and right side of the wall to be projected in the orthomosaic), I've noticed that the only way to view their coordinates is to click on the "View Estimated" icon in the Reference panel. The "View Source" icon has no values assigned to the markers unless they are inputted manually. When I've attempted to change these values, as you suggested to put "KS-U" and "KS-X" at the same altitude (Z-value), it seems to have no effect upon the location of the markers. They remain in the same location where I clicked on the mesh. Rather, I suspect that it is adding incorrect information to the model's scale and reference system, so I've decided to simply skip this step.

However, by right-clicking within the Reference panel to create the third marker (KS-Y), I am then able to use the x, y, and z coordinates of KS-U from the "View Estimated" to move this marker around, and make it exactly one meter higher than KS-U.

When I create the orthomosaic, I use "KS-U" --> "KS-X" for the horizontal axis, and "KS-U" --> "KS-Y" for the vertical axis, leaving the vertical axis box checked.

Matt

Yoann Courtois

  • Sr. Member
  • ****
  • Posts: 316
  • Engineer in Geodesy, Cartography and Surveying
    • View Profile
Re: Orthophotos of Wall Facades and other vertical surfaces
« Reply #7 on: March 03, 2017, 10:44:22 AM »
Hi everybody !

I try to produce almost the same, which are orthomosaics from buiding walls in order to be mapped.
Thus my models are georeferenced using tacheometric suveyed points. I finally got my orthomasaics but i still have a problem:
When i try to export then, PhotoScan is asking me a coordinate system. So I inputed my systems by it failed and i get "Can't tranform coordinates".
I've tried with some other systems but it's always the same.
Is there a problem due to the verticality of my orthomosaic ?
Is there any solution to fix it, of even get my orthomosaic without georeferencement, which is currectly impossible because i HAVE to input a coordinates system.

Thanks for your help

Regards
--
Yoann COURTOIS
R&D Engineer in photogrammetric process and mobile application
Lyon, FRANCE
--

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14855
    • View Profile
Re: Orthophotos of Wall Facades and other vertical surfaces
« Reply #8 on: March 03, 2017, 12:52:07 PM »
Hello Yoann,

If you have generated the orthomosaic in the custom planar projection, it should be exported in the same way. You cannot export the orthomosaic of the vertical wall in Geographic projection.
Best regards,
Alexey Pasumansky,
Agisoft LLC

Yoann Courtois

  • Sr. Member
  • ****
  • Posts: 316
  • Engineer in Geodesy, Cartography and Surveying
    • View Profile
Re: Orthophotos of Wall Facades and other vertical surfaces
« Reply #9 on: March 03, 2017, 01:28:16 PM »
Indeed I have generated a custom planar projection orthomasaic, using 3 markers.
But as you can see below I cannot export it in another way than geographic projection, as I need to input a global coordinate system. May you can help me ?
Regards
--
Yoann COURTOIS
R&D Engineer in photogrammetric process and mobile application
Lyon, FRANCE
--

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14855
    • View Profile
Re: Orthophotos of Wall Facades and other vertical surfaces
« Reply #10 on: March 03, 2017, 02:27:30 PM »
Hello Yoann,

In this case you need to choose the default option, the orthomosaic should be exported like it is displayed in the Ortho view.

Best regards,
Alexey Pasumansky,
Agisoft LLC

Yoann Courtois

  • Sr. Member
  • ****
  • Posts: 316
  • Engineer in Geodesy, Cartography and Surveying
    • View Profile
Re: Orthophotos of Wall Facades and other vertical surfaces
« Reply #11 on: March 03, 2017, 04:21:59 PM »
Hello Alexey,

What is exactly "the default option" ? Actually I didn't find anything like that :(
I would like to get the orthomosaic and keep the scale, or even more the georeferencement, even if it's verticale.

Thanks for your help
--
Yoann COURTOIS
R&D Engineer in photogrammetric process and mobile application
Lyon, FRANCE
--

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14855
    • View Profile
Re: Orthophotos of Wall Facades and other vertical surfaces
« Reply #12 on: March 03, 2017, 04:26:29 PM »
Default is the one you see, when open the Export Orthomosaic dialog. I think that the one on your screenshot (chunk coordinate system name, but without EPSG code).

And how do you imagine vertical georeferenced orthomosaic? Would there be many pixels with the same XY values then?
Best regards,
Alexey Pasumansky,
Agisoft LLC

Yoann Courtois

  • Sr. Member
  • ****
  • Posts: 316
  • Engineer in Geodesy, Cartography and Surveying
    • View Profile
Re: Orthophotos of Wall Facades and other vertical surfaces
« Reply #13 on: March 06, 2017, 10:38:31 AM »
As I said I cannot export without coordinates system / EPSG code:
Actually the "default" mode (parameters I get when open the Export Orthomosaic dialog) is RGF93 coordinates system.
Then if I try to export (without changing anything in the dialog box), I get this error message again: "Can't transform coordinates"

And about the vertical georeferencement, I was imagining it could be possible to saved (X,Z) coordinates in order to includ it in a verticale view, which seems not te be possible.
At least I would need firstly to get my orthoimage (which is for now impossible), and then save the scale due to GCPs.

UPDATE: Guess I had a bug... I finally can export my orthoimage, without changing anything compare to what I've done before... aha ! Thanks for your help Alexey

UPDATE.2: It seems one of the problem that cause the impossibility of orthomosaic export is the Outer Boundary Line. While one polygon is define as Outer Boundary, it's then impossible to export the orthoimage (cutting bug when it's not a classic flat orthoimage ?). If none are define it's ok. But the exported image present careless borders.
« Last Edit: March 06, 2017, 11:29:24 AM by Yoann C. »
--
Yoann COURTOIS
R&D Engineer in photogrammetric process and mobile application
Lyon, FRANCE
--

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14855
    • View Profile
Re: Orthophotos of Wall Facades and other vertical surfaces
« Reply #14 on: March 06, 2017, 11:21:21 AM »
Hello Yoann,

Can you re-save a project copy in PSZ format (PhotoScan Archive) with only results of alignment (you can remove mesh, dense cloud and depth maps to reduce the file size) and send it to support@agisoft.com?

Also specify, if we can reproduce the issue, if we use Current View option for the orthomosaic generation in this project?
Best regards,
Alexey Pasumansky,
Agisoft LLC