aerial photography with position and orientation (Omega, Phi and Kappa) for camera projection

Hi. I was wondering if there is a way to import multiple images and add the correct position and rotation based on a datafile containing the position in (ETRS89 - UTM 32N) and not use the automatic alignment feature?

In Denmark we have a lot of high res arieal photos with the metadata mentioned above. I was thinking if this could be added to the images on import and used for better precision.

In addition I have a part of our city made in simpel polygon geometri. This model i georeferenced based on the same coordinate system. So I would like to use the texture reprojection tool from the images onto the simple geometri. Is this somehow possible?

Based on the data (in terms of position and coordinate system) this should be possible, but I just need to import the images with the correct orientation.

Any suggestions?

Hi poulskrae,
you can use the flight log with the mentioned information: RealityCapture Help, Flight Log and flightlogs.xml ?

For your second question this workflow may be used: Texturing Handheld Laser Scan Models | Tutorial

1 Like

Thanks - I will look into the flightlog option. I can see, that the
“# How to define own import format” has the option for Omega, Phi and Kappa.

Are there any more examples than in the help file? I can see there are different index=“?” after each variable. Should these index numbers just be +1 for each new line in your own flight log depending on the variables you use?

There you can find also another (but basically the same) usage of the format:
Flight Log and flightlogs.xml ?
Index is for setting the position in the exported file, so basically it is just +1 for each new parameter.

Hi. I finally got around to look into this again. Sorry for the different account - I can see, that I was logged in as my personal account last time. This is the company account.

Following your link with the “Flight Log and flightlogs.xml” I can’t get i to work. I’ve added the following code to the flightlogs.xml in the programs folder, but as soon as I edit the file, the “Import Flight Log” window never opens. I even tried to modify any of the existing setting, but that didn’t help either.

<format desc="Name, Lon, Lat, Alt, Omega, Phi, Kappa (character-separated)" reader="CapturingReality.Import.CSVFlightLog">
        <parser allowedSeparators=",; &tab;" comment="#" showIgnoreFirstline="true" qualifiers="&quot;optional">
            <Image index="0" format="name.ext"/>
            <X index="1" format="value"/>
            <Y index="2" format="value"/>
           <Omega index="3" format="value"/>
            <Phi index="4" format="value"/>
            <Kappa index="5" format="value"/>
        </parser>
    </format>

Any idea what could be wrong?
When I download the dataset from the images I have the following information (this is an example from a single image)
Omega: 44.8386
Phi: -0.5524
Kappa: -0.5774
Perspective Center: 574774.821,6219769.422,1203.985
Kamera ID: Osprey-80316002-f120_Rev07.00_10cm_C107
Focal Length: 122.981
Pixel Spacing: 0.0069333,0.0069333
Principal Point Offset: -0.011,0.029
Sensor Array Dimensions: 7725,5775

Another strange thing is - that if I only import the Name, Lon, Lat, Alt in ETRS90 / UTM 32N it changes the Lon and Lat values in the Prior pose under each image. The Alt is still the correct value.

This is an example of the flightlog text (Name, Lon, Lat, Alt, Omega, Phi, Kappa)
2023_83_29_4_0017_00001757.tif 531877.713 6173680.343 1510.588 -0.44625 -45.6484 -90.42496

Any ideas what I should do to get it working?

It seems like the old post is missing some lines:

<format id="{A438A617-1434-4A24-B1B7-48980F28345B}" descID="9430" desc="Name, Lon, Lat, Alt, Omega, Phi, Kappa (character-separated)" reader="CapturingReality.Import.CSVFlightLog">
        <parser allowedSeparators=",; &tab;" comment="#" showIgnoreFirstline="true" qualifiers="&quot;optional" >
            <Image index="0" format="name.ext"/>
            <Longitude index="1" format="degrees"/>
			<Latitude index="2" format="degrees"/>
            <Altitude index="3" format="value"/>
			<Omega index="4" format="value"/>
            <Phi index="5" format="value"/>
            <Kappa index="6" format="value"/>
        </parser>
    </format>

Also, as the omega, phi, kappa are in degrees, you can try to use format set to degrees for those values.

As longitude and latitude are in degrees you need to use those values there. In your example it seems more like meters coordinates (531877.713 6173680.343 1510.588). In that case you will need to use X,Y, Altitude option for the flight log. You need to use the proper option for your coordinates. It matters if it is X/Y or Lon/Lat. Also, the order of the coordinates is important.

As your system is using meters (ETRS89 / UTM zone 32N - EPSG:25832) you should use X,Y option, not Lon Lat

Hi - Now I got it to work with adding this code in the flightlogs.xml file

<format desc="Name, X, Y, Alt, Omega, Phi, Kappa" reader="CapturingReality.Import.CSVFlightLog">
        <parser allowedSeparators=",; &tab;" comment="#" showIgnoreFirstline="true" qualifiers="&quot;optional" >
            <Image index="0" format="name.ext"/>
            <X index="1" format="value"/>
            <Y index="2" format="value"/>
            <Altitude index="3" format="value"/>
            <Omega index="4" format="degrees"/>
            <Phi index="5" format="degrees"/>
            <Kappa index="6" format="degrees"/>
        </parser>
    </format>

It takes the correct X,Y and Altidude position and adds the values to the camera. But it looks like there is an error on the Omega, Phi, Kappa values.

Here is the result with the alignment with the values.

Am I doing something wrong in terms of the values? Is there to double check the Omega, Phi, Kappa values in terms of the Yaw, Pitch and Roll values they are recalculated into?

Sorry about the many posts…I can only embed one images in each reply due to being a new user (it says)

Here is the result with only the position values.

Heres is an example of the values in a single camera data

Here is the text string from that single image - just to show the values that are being imported.
2023_83_29_4_0017_00001754.tif 531882.686 6173208.196 1513.056 -0.24097 -45.49059 -90.38811

There is a bug regarding OPK values inside RealityCapture.
For now it will be better to use just locations or YPR values.