Closed X86Git closed 2 months ago
the error log: Exit with code 1 Generated from line 202 of file D:\a\micmac\micmac\src\util\error.cpp PID=24188 Context=[cEliseFatalErrorHandler::cEFEH_OnErreur] GMEC:mes=cRPC::ReadASCII(const std::string &aFile) ASCII file not found line=3178 file=D:\a\micmac\micmac\src\uti_phgrm\Apero\cCameraRPC.cpp MM3D-Command=["C:\micmac\bin\mm3d.exe" "Convert2GenBundle" "(.*).tif" ".txt" "RPC-d0-adj" "ChSys=WGS84toUTM.xml" "Degre=0" ]
Hi, it seems like MicMac couldn't find you RPC file, please check if you missed the "\$1" for the following command in section 1.2 of the README: mm3d Convert2GenBundle "(.*).tif" "\$1.txt" RPC-d0-adj ChSys=WGS84toUTM.xml Degre=0
Hi, it seems like MicMac couldn't find you RPC file, please check if you missed the "$1" for the following command in section 1.2 of the README: mm3d Convert2GenBundle "(.*).tif" "$1.txt" RPC-d0-adj ChSys=WGS84toUTM.xml Degre=0
I have tried command as follows: mm3d Convert2GenBundle "(.).tif" "\$1.txt" RPC-d0-adj ChSys=WGS84toUTM.xml Degre=0 mm3d Convert2GenBundle "(.).tif" "$1.txt" RPC-d0-adj ChSys=WGS84toUTM.xml Degre=0 mm3d Convert2GenBundle "(.).tif" "(.).txt" RPC-d0-adj ChSys=WGS84toUTM.xml Degre=0 but no one works.
Screenshots of files contained in the folder of the destination path are as follows: The RPC files are as folows:
The error is as follows:
By the way, I use MicMac in the Windows platform.
I'm really looking forword to your help, thanks !
Hi, there is a „\„ missing in your command, that’s the correct version: mm3d Convert2GenBundle "(.*).tif" "\$1.txt" RPC-d0-adj ChSys=WGS84toUTM.xml Degre=0
Cheers
Github removes the special sign from the messages, for some bizarre reason. You should precede the dollar sign with „\” -> \ $
also, don’t forget to put the star character within the symbol definition „(.*).tif”
Yes, the correct version is this one: mm3d Convert2GenBundle "(.*).tif" "\$1.txt" RPC-d0-adj ChSys=WGS84toUTM.xml Degre=0
or, you can replace this command with the following 4 commands to avoid the complexity of the regular expression: mm3d Convert2GenBundle JAX_214_007_RGB.tif JAX_214_007_RGB.txt RPC-d0-adj ChSys=WGS84toUTM.xml Degre=0 mm3d Convert2GenBundle JAX_214_008_RGB.tif JAX_214_008_RGB.txt RPC-d0-adj ChSys=WGS84toUTM.xml Degre=0 mm3d Convert2GenBundle JAX_214_009_RGB.tif JAX_214_009_RGB.txt RPC-d0-adj ChSys=WGS84toUTM.xml Degre=0 mm3d Convert2GenBundle JAX_214_010_RGB.tif JAX_214_010_RGB.txt RPC-d0-adj ChSys=WGS84toUTM.xml Degre=0
Thank you for your answers! I found the problem, WINDOSW POWERSHELL doesn't support full regular expressions. So '$1' can't be used. I follow the instructipn to specify files one by one, and complete the mm3d Convert2GenBundle function successfully. But in the next step, I tried to execute mm3d Malt GeomImage and mm3d TestLib GeoreferencedDepthMap in the way specified one by one, but I still encountered problems that could not be solved.
Hi, thank you for pointing this out. MicMac could not read the original JAX tif format of the training images, you need to convert the images before launching MicMac, by QGIS for example (with "raster -> conversion -> convert"), or you can download the images we converted.
Thank you for your answer. I want to replicate all the pocedures so that I canapply my own data to the SpS-NeRF.
I just downloaded QGIS and followed your help ("raster -> conversion -> Translate(convert format"). I selected the file "JAX_214_009_RGB.tif", and I don't konw which advanced parameters I need to selected (Such as"Out put data type":). (I search the DocMiCMac, it tells the Tiff can be in 16 bits or 8 bits, in 1 or 3 channel)
No advanced parameters are needed, just do the conversion without any parameter and it will work in MicMac.
Thank you very much for your help! I still need your help with one more question. In the last step, I tried the following instructions:
mm3d TestLib GeoreferencedDepthMap MM-"$img_name" "$img_name. tif" Ori-RPC-d0-adj OutDir= "$TxtDenseDir" Mask=1 Scale=4 mm3d TestLib GeoreferencedDepthMap MM-JAX_214_009_RGB JAX_214_009_RGB Ori-RPC-d0-adj OutDir= "$TxtDenseDir" Mask=1 Scale=4
But there is an error happened:
Your MicMac didn't recognize the "GeoreferencedDepthMap" command, which is added into MicMac several months ago. Please try to update your MicMac and I think it will be OK.
My MicMac(Windows) is the latest version which is published on Mar 31, 2023 from the girhub homepage of MicMac. Can you tell me where are the newer releases. Thanks!
The codes of MicMac evolves through time, you need to pull the codes and compile again.
All right... Before using Windows version, I try to compile it but failed in the pocedure of CMake...
When I followed the instructions you gave me for dense_generate with micmac, I encountered some problems. This problem occurs in the section # copy the images and refined rpc parameters in 1.2 of README. An error is reported after entering the instruction: Sorry, the following FATAL ERROR happy cRPC:: ReadASCII (const std:: string & aFile) ASCII file not found. I hope you can give me some advice. I'm stuck in this step now. Thank you!