Forum

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - fjgarciam

Pages: [1] 2
1
General / Re: Agisoft Metashape 1.8.0 pre-release
« on: September 28, 2021, 12:35:50 PM »
It says in the change log that this new beta version (1.8x) supports JPEG-R images. However, these files are imported as normal JPEG RGB files. What is the correct procedure for using them as radiometric files?
Hello Renato,

R-JPEG files with embed temperature are loaded to Metashape Pro as multi-camera systems (you should see that option, when adding R-JPEG images to Metashape 1.8). After adding such images to the project, process as usual and to see the thermal orthomosaic use Raster Calculator - define thermal formula for output index (likely should be the following LWIR / 100 - 273.15), enable transformation and adjust the palette display.

Only for flir format? non dji format?

2
Hello, I want to import a series of points located in a list of images of which I have their global position. The structure of the csv would be like this:

marker_1, image, x_local, y_local, x_global, y_global, z_global.

I do not know if it is possible, Thank you!

3
Hi Luiz,

 Thanks for your code. Not been able to do much on this lately, and to go through your code properly, but have updated to accommodate Metashape and some minor tweaks. Thought I'd share until I have more time.

Cheers
Martin

Hi the script is updated? i have problems with the variable Hightaccurazy

4
General / Re: export tie points as XYZ
« on: October 14, 2020, 12:15:38 AM »
How to do it on phyton script? thanks!!

5
Python and Java API / Re: Tie-Point View Matches - Python API
« on: October 14, 2020, 12:12:46 AM »
It is possible?

6
Camera Calibration / Re: Extract the tie point positions (u and v)
« on: October 14, 2020, 12:11:43 AM »
Hi Alex I need to know how to use this .out . I need ti know for every valid key  point the local coordinates on every image that appears. It is possible?  I searched on the sdk and I don't find anything for this.

7
General / Cloud not working
« on: October 02, 2020, 09:51:38 AM »
Anyone with the same issue? i can´t upload or download nothing from the cloud today 2/10/2020

8
Would it be possible to create an action recorder or a history of actions to later create a batch? I know the usual procedure but I am sure that more than one can be tremendously useful to be able to record repetitive processing actions in and apply them with a single click. Thank you

9
Python and Java API / Export shape with pixel coordinates of every image
« on: September 23, 2020, 10:19:33 AM »
Hi is possible to export a shape imported or created on the ortomosaic with Metashape with all the projections of the shape of the images? I think it can be done with the transformation matrix but i don´t know how to use it. Any one can help me?
The result of the shape should be Image where the shape appears and the pixel coordinates on the image for the shape.

10
Python and Java API / Re: Apply patch on multiple shapes
« on: August 24, 2020, 04:00:40 PM »
Hello, I am very interested in this thread, this is just what I am looking for. is there no way to assign the image with Rank 1 to a shape?

11
Hi, I wanted to know if you can limit the quality of the points in the alignment.
When I perform the alignment of a complete chunck of 5 or 6 thousand photos, the quality of the points with high reprojection errors, uncertainties in the reconstruction and precision in the reprojection are very high. Unless the quality of the images in definition and position is very very high, the errors are very high and in the orientation of the photos there are very large jumps, leading to errors that are propagated by the dispersed cloud and by sequence. in alignment. If I had a way to define maximum values ​​in the uncertainty values, and precision in the reconstruction it would be very useful since the points with big errors would not be taken into account. When I perform an alignment of the chunck little by little the result of the feeding filtering in each iteration of the alignment the erroneous points is exponentially much better.
Can you put maximum values ​​in the tweaks of the configuration part?

Thanks for your help

12
General / Re: Exporting identified shape on images
« on: April 26, 2020, 02:15:34 PM »
hi, now works. Can be exported to a shape with local coordinates. A shape for every image proyection of the shape? The text list is very very good but to work with this is  not easy..

13
General / Re: Exporting identified shape on images
« on: April 26, 2020, 01:03:26 PM »
Hi paulo thanks for the response. I have 2 problems look at the pictures. why?
Hi,

the following script would print out camera, vertex number, x and y image coordinates for each vertex of shape (30 vertices) appearing in 4 selected cameras:

Code: [Select]
chunk = Metashape.app.document.chunk
T = chunk.transform.matrix
crs = chunk.shapes.crs
cameras_sel = [camera for camera in chunk.cameras if camera.selected]
shapes = [shape for shape in chunk.shapes if shape.selected]
shape = shapes[0]
print("Image vertex coordinates for shape:",shape.key)
for camera in cameras_sel:
print(camera.label)
num_ver = 0
for vertex in shape.vertices:
num_ver += 1
x = camera.project(T.inv().mulp(crs.unproject(vertex))).x
y = camera.project(T.inv().mulp(crs.unproject(vertex))).y
if (x < 0 or x > camera.sensor.width or y < 0 or y > camera.sensor.height):
continue
print("\t",num_ver,"\t",x,"\t",y)

and the result would be something like:

2020-04-26 04:52:14 Image vertex coordinates for shape: 0
2020-04-26 04:52:14 DJI_0516.JPG
2020-04-26 04:52:14          4       5453.743946402111       222.74381861926574
2020-04-26 04:52:14          5       5436.709416745306       269.3403659912882
2020-04-26 04:52:14          6       5420.49620855976        292.47811552495216
2020-04-26 04:52:14          7       5343.148310226199       311.81425185146117
2020-04-26 04:52:14          8       5281.496274732476       274.0485517086035
2020-04-26 04:52:14          9       5270.234735955541       189.28171042920087
2020-04-26 04:52:14          10      5241.590308505169       122.02298426452973
2020-04-26 04:52:14          11      5201.906692295227       122.19297889122483
2020-04-26 04:52:14          12      5134.898857946424       141.99334040022097
2020-04-26 04:52:14          13      5085.438478906967       105.60425594436147
2020-04-26 04:52:14          14      5085.034369251849       60.84692039321978
2020-04-26 04:52:14          15      5144.0228449162105      7.838497359763436
2020-04-26 04:52:14 DJI_0517.JPG
2020-04-26 04:52:14          2       5386.638683515784       1181.5120947377204
2020-04-26 04:52:14          3       5316.6578823684085      1176.3952952565621
2020-04-26 04:52:14          4       5291.389854523749       1195.644797724307
2020-04-26 04:52:14          5       5274.8489701372855      1241.7422764771925
2020-04-26 04:52:14          6       5258.823552196129       1265.4900429203633
2020-04-26 04:52:14          7       5182.918003413208       1280.540624322772
2020-04-26 04:52:14          8       5121.94962021607        1240.240376996891
2020-04-26 04:52:14          9       5109.907318263296       1157.2579120653324
2020-04-26 04:52:14          10      5081.476673605759       1087.0560926021465
2020-04-26 04:52:14          11      5042.210226657976       1086.9887727657867
2020-04-26 04:52:14          12      4976.1554076993825      1105.9451833197536
2020-04-26 04:52:14          13      4926.888599478631       1069.8535108506933
2020-04-26 04:52:14          14      4926.479117567041       1022.7842815760089
2020-04-26 04:52:14          15      4984.401404256255       970.242157768817
2020-04-26 04:52:14          16      5058.266631630511       936.1891529594453
2020-04-26 04:52:14          17      5104.092274798773       903.7874938243431
2020-04-26 04:52:14          18      5123.049831937411       871.259837085535
2020-04-26 04:52:14          19      5093.296624271075       835.4618874524924
2020-04-26 04:52:14          20      5085.833099677106       767.605894219358
2020-04-26 04:52:14          21      5151.37059673191        726.863173731634
2020-04-26 04:52:14          22      5240.7172444995695      697.7833614369108
2020-04-26 04:52:14          23      5325.9402114134355      710.9612726560171
2020-04-26 04:52:14          24      5394.028082329082       720.9912679258749
2020-04-26 04:52:14          25      5462.1509446421305      773.942547067115
2020-04-26 04:52:14 DJI_0518.JPG
2020-04-26 04:52:14          1       5343.5776947674785      2097.906886807614
2020-04-26 04:52:14          2       5235.952070527379       2117.6328634795395
2020-04-26 04:52:14          3       5166.826489639096       2112.521306211412
2020-04-26 04:52:14          4       5141.825436950572       2133.378791659176
2020-04-26 04:52:14          5       5125.959024393331       2178.9680761094005
2020-04-26 04:52:14          6       5110.258178211332       2203.3325948553643
2020-04-26 04:52:14          7       5035.995667007567       2214.477027256982
2020-04-26 04:52:14          8       4975.763327543942       2171.9798459778885
2020-04-26 04:52:14          9       4962.920485269887       2090.815013955641
2020-04-26 04:52:14          10      4934.622911226999       2017.8855901177858
2020-04-26 04:52:14          11      4895.859996430065       2017.739698788529
2020-04-26 04:52:14          12      4830.860458763899       2036.1602161534292
2020-04-26 04:52:14          13      4781.8206187023825      2000.5801430320716
2020-04-26 04:52:14          14      4781.31721701037        1951.247066738112
2020-04-26 04:52:14          15      4838.052731064362       1898.9147027306808
2020-04-26 04:52:14          16      4910.608996923446       1865.6145305481923
2020-04-26 04:52:14          17      4955.187546475447       1836.1373866732526
2020-04-26 04:52:14          18      4973.141338118379       1807.1980489173955
2020-04-26 04:52:14          19      4944.610341243703       1762.8957417022202
2020-04-26 04:52:14          20      4936.796341311201       1693.990354191347
2020-04-26 04:52:14          21      5001.096731500073       1653.8010286018512
2020-04-26 04:52:14          22      5088.980299966174       1625.586705941213
2020-04-26 04:52:14          23      5173.0077100685185      1640.7926344903
2020-04-26 04:52:14          24      5240.22135288281        1651.9346110703848
2020-04-26 04:52:14          25      5307.817699480746       1706.051317316623
2020-04-26 04:52:14          26      5429.483696931611       1744.576974816624
2020-04-26 04:52:14          28      5463.362668199375       1863.5131526046941
2020-04-26 04:52:14          29      5461.118554480069       1986.080263727048
2020-04-26 04:52:14          30      5413.167601647651       2044.5452642475088
2020-04-26 04:52:14 DJI_0519.JPG
2020-04-26 04:52:14          1       5213.6778631737225      3023.7828397660414
2020-04-26 04:52:14          2       5107.68320887879        3041.5705486829884
2020-04-26 04:52:14          3       5039.2918682202635      3036.3984295921578
2020-04-26 04:52:14          4       5014.522101308937       3058.7413113417138
2020-04-26 04:52:14          5       4999.244478034453       3103.7599212108794
2020-04-26 04:52:14          6       4983.824018141209       3128.6598546096975
2020-04-26 04:52:14          7       4910.948360308057       3135.9466257822314
2020-04-26 04:52:14          8       4851.315913634555       3091.3370769022804
2020-04-26 04:52:14          9       4837.76924456987        3012.046073855523
2020-04-26 04:52:14          10      4809.575068337885       2936.6066249177497
2020-04-26 04:52:14          11      4771.237234304563       2936.350731356655
2020-04-26 04:52:14          12      4707.136828815248       2954.1574186118005
2020-04-26 04:52:14          13      4658.296389551959       2919.099597530514
2020-04-26 04:52:14          14      4657.719814537101       2867.7051821660457
2020-04-26 04:52:14          15      4713.437018729565       2815.722647359388
2020-04-26 04:52:14          16      4784.870419179495       2783.245319466867
2020-04-26 04:52:14          17      4828.3766212167075      2756.641794605126
2020-04-26 04:52:14          18      4845.464811035038       2731.195712135293
2020-04-26 04:52:14          19      4817.990873824569       2678.79590200754
2020-04-26 04:52:14          20      4809.880471095922       2608.9864250920314
2020-04-26 04:52:14          21      4873.095777223584       2569.394630888251
2020-04-26 04:52:14          22      4959.663842391963       2542.067447583815
2020-04-26 04:52:14          23      5042.588242627018       2559.2311385366656
2020-04-26 04:52:14          24      5108.967384823463       2571.4664272799578
2020-04-26 04:52:14          25      5176.050007898206       2626.6856301479897
2020-04-26 04:52:14          26      5295.971282040188       2669.8053534732853
2020-04-26 04:52:14          27      5361.8120375979715      2728.2552997573534
2020-04-26 04:52:14          28      5330.258062192983       2789.5413296711486
2020-04-26 04:52:14          29      5328.9482510480075      2912.2939500370862
2020-04-26 04:52:14          30      5281.913121189106       2971.452836780579

In screen capture, shown is output of image vertex coordinates for a line on 3 selected images...

14
General / Re: Exporting identified shape on images
« on: April 26, 2020, 12:53:52 AM »
I have exactly the same question. Is there any way to know the local coordinates on a image of a shape. Or better export one shape for every proyection on a single image.
Hello, I have made a reconstruction (sparse, dense, mesh, texture) of a generally flat surface (a map, but referenced in local coordinates, not georeferenced).

I then display an image and draw a polyline over a feature of interest. Finally, I can right click on the polyline and select "Filter Photos by Shapes" and I get all the images where the shape is present, along with the shape in the correct location. So far so good.

Now, my question, how can I export this? I would like the coordinates of the shape in each image's pixel coordinates, for example (if my polyline has four vertices):

image_A.jpg : x1_A, y1_A, x2_A, y2_A, x3_A, y3_A, x4_A, y4_A
image_B.jpg:  x1_B, y1_B, x2_B, y2_B, x3_B, y3_B, x4_B, y4_B
etc...

I tried it using the python console and I presume it is doable but not sure about the steps. If there is a way using the GUI, I am not aware of it. Any help?

Thanks.

15
General / Re: Capture distance in reference settings.
« on: April 15, 2020, 11:58:12 AM »
Hello fjgarciam,

The presence of the DEM in the chunk will not have any effect on the alignment process.

Can be taken into account?

Pages: [1] 2