Hello Alexey,
I am confused! I do project with makers that I give "local coordonates" (eg: x=1m, y=0.5m, z=1m). These coordinates are geographic coordinates or geocentric coordinate?
I want a region.size of V_s= (5m,5m,20m)
How I convert my vector V_s in internal coordinate to resize my region?
Following your last comment in this post I should do this:
V_s= T.inv().mulp(PhotoScan.Vector([5, 5,22])
new_reg = chunk.region
new_reg.size = V_s
chunk.region = new_reg
Does it right? If yes, I don't get the desired size of my bounding box!
If I do this:
V_s=chunk.crs.unproject(PhotoScan.Vector([5,5,20]))
V_s= T.inv().mulp(V_s)
I have an error message: " AttributeError: 'NoneType' object has no attribute 'unproject' "
If I do this:
V_s= PhotoScan.Vector([5, 5,22])
new_reg = chunk.region
new_reg.size = V_s
chunk.region = new_reg
The bounding box is alright in some project but not in all! What I am doing wrong???