-
Notifications
You must be signed in to change notification settings - Fork 336
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MtS-WH data set: color correction when extracting training set #3
Comments
Thank you for providing such detailed information, and maybe you found something interesting. If I understand correctly, the problem is that you found that the data distribution between the training set and the test set is too different. For me, analyzing remote sensing images doesn't use NumPy because they're too big (actually because I'm too lazy). I generally use ENVI's In ENVI, In ENVI, Just as you did, to and the result image's statistical results is this: then I used numpy to read indices [780:780+150, 95:95+150, 0:3], which is:
But I guess maybe that's not the point, because [780:780+150, 95:95+150, 0:3] is just local information. What's strange to me is these two things:
I have already opened an issue in MtS-WH-Dataset, maybe you can take a look. If I made any mistakes, please correct me. |
Thanks for your detailed reply! It really makes the problem more clear. |
Hello,
In the MtS-WH data set, it seems that for images in training set, all the channels are corrected to 8-bit unsigned color, while for those in test set, the B-G-R channels are 11-bit and NIR channel is 16-bit. So I tried a naïve way to cast 11-bit color to 8-bit, i.e., 8-bit = 11-bit * 256 / 2048. However this does not work out well.
Here's an example:
First I load a training data file 'l2_n10_x95_y780.tif' into numpy nd-array (only B-G-R). It looks like:
Then I read the corresponding part in 'hanyang2002' into numpy array, using indices [780:780+150, 95:95+150, 0:3] (hopefully I'm correct), which looks like:
Finally by performing 8-bit = 11-bit * 256 / 2048, the test data becomes
which obviously does not coincide with training data.
So is there any special color or maybe radiometric correction performed when extracting training set?
Thanks very much!
The text was updated successfully, but these errors were encountered: