SatelliteSfM
SatelliteSfM copied to clipboard
Apply the code on the own PAN dataset
Hi Kai,
I've been noticed the input dataset are .tif images encoding the 3-channel uint8 RGB colors. But now, I have my own PAN dataset that have only one channel the detail are as followed:
- PAN_SEN_PWOI_000004990_1_2_F_1_RPC.TXT
- DIM_PAN_SEN_PWOI_000004990_1_2_F_1.XML
- PAN_SEN_PWOI_000004990_1_2_F_1_P_R2C1.TFW
- IMG_PAN_SEN_PWOI_000004990_1_2_F_1_P_R2C1.TIF
- PREVIEW_PAN_SEN_PWOI_000004990_1_2_F_1.jpg
- RPC_PAN_SEN_PWOI_000004990_1_2_F_1.XML
The .TIF are PAN image with one channel. I tried to revise the code with np.expand_dims
to expand the channel from 1 to 3 and commend out date_time
. When run python satellite_sfm.py --input_folder examples/my_own_data --output_folder examples/outputs_my_own_data --run_sfm --use_srtm4
, I got the following bug:
So, I wondered how can I apply the code on my own PAN dataset? Or just have something run? Cause I dont know how to set the latlonalt_bbx.json
but to use the flag --use_srtm4
.
Thank you so much