You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We use MATLAB and ENVI5.3 to handle raw data. If you want to get the raw data, please turn to the references. Also we provide some tools (eg. remove the border, cut into the patch, make data, split data) to make the training data and the test data. Later we will update the tools about zoom details, plot and save figures. See tools/tools.py for details.
Remove the border
Border Message has been shown in border.txt and config/border.py.
Cut into the Patch
We usually cut the raw data into the 64 x 64 pixels or 256 x 256 pixels. You can set the patch_size = 64/256/....
Make data
Supervised
We follow the Wald's protocol to downsample the MS and the PAN images (downsamping factor is 4x). Please set the supervised = True.
Unsupervised
You can use the data directly. Please set the supervised = False.
Split data
We split the data into training dataset and test dataset. We provide two strategies.
First, you can use the id of 0 - (n-1) to train and use the id of n to test.
Second, you can shuffle all data and randomly choose 90% to train and 10% to test.
Zoom For Details
You need to change the file path in local_show/local_show.m. And the file that ends with _local_show is the generated image.