-
Notifications
You must be signed in to change notification settings - Fork 14
Thermal imagery normalization #4
Comments
It seems the reason why the 16 bit images are all gray is because the values are all pretty high, while still having very small variance.
However, the image reading itself seems fine. We just need proper normalization. For example, try this:
It is also important to set Also be careful when converting to 8 bit, because you will get unhandled overflows:
|
The normalization that you have above will work for viewing the images, however I would not train on data that has been normalized in this way. Because the normalization takes the entire image into account, the portion of the image that contains a seal will be different numerically depending on if the image is primarily ice (low value) or liquid (high value) |
It's true that the distribution might be very different locally. It would be helpful to get some statistics as this issue certainly influences the architecture of recognition models. Let's make a possible action item out of this:
|
I am working on putting together a Jupyter notebook that explains what we currently know and then building a python script for other people to include |
Thanks to Eric for his help on this project. The code is checked into "src/ir-normalization" and the normalized images have been added as a tar file to blob storage as "ArcticSealsTrain1807221152_N.tar". For the new normalized 8-bit thermal images, we have changed "16BIT" to "8BIT_N" in the file names to keep it straight. |
I'll generate a new training/test set with the full labeled IR imagery soon. Marcel, I could prepare VOTT annotations for animals only (as last time), or for both animals and anomalies, ie one or two classes. Thoughts on which is preferable?
Sent from Nine<http://www.9folders.com/>
…________________________________
From: Jon Malsan <notifications@github.com>
Sent: Tuesday, July 24, 2018 10:08 PM
To: Microsoft/arcticseals
Cc: Peter Baer; Author
Subject: Re: [Microsoft/arcticseals] Thermal imagery normalization (#4)
Thanks to Eric for his help on this project. The code is checked into "src/ir-normalization" and the normalized images have been added as a tar file to blob storage as "ArcticSealsTrain1807221152_N.tar". For the new normalized 8-bit thermal images, we have changed "16BIT" to "8BIT_N" in the file names to keep it straight.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FMicrosoft%2Farcticseals%2Fissues%2F4%23issuecomment-407634848&data=02%7C01%7Cpbaer%40exchange.microsoft.com%7C40bd89478f974ac57fde08d5f1eca778%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636680921078425082&sdata=tA6K0rKXtonPiipC42Pg%2BAVyVvUkxP38BZY%2BK8Ki8pU%3D&reserved=0>, or mute the thread<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAHIdVHG5PpDeIAzgXQ5t30b-7tgOlyHsks5uJ_1JgaJpZM4VU--2&data=02%7C01%7Cpbaer%40exchange.microsoft.com%7C40bd89478f974ac57fde08d5f1eca778%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636680921078435092&sdata=pMeeWjx92FC3ihtrXXGyWSJmA6rCrCITCAPZWl8eXy8%3D&reserved=0>.
|
I think we only need the ones with animals inside. Could you also copy both the 16bit IR (or our 8bit normalized version) and the color version for each image? I'd run Neels code on it to get the combined images.
…________________________________
From: Peter Baer <notifications@github.com>
Sent: Wednesday, July 25, 2018 9:09:58 AM
To: Microsoft/arcticseals
Cc: Marcel Simon; Comment
Subject: Re: [Microsoft/arcticseals] Thermal imagery normalization (#4)
I'll generate a new training/test set with the full labeled IR imagery soon. Marcel, I could prepare VOTT annotations for animals only (as last time), or for both animals and anomalies, ie one or two classes. Thoughts on which is preferable?
Sent from Nine<http://www.9folders.com/>
________________________________
From: Jon Malsan <notifications@github.com>
Sent: Tuesday, July 24, 2018 10:08 PM
To: Microsoft/arcticseals
Cc: Peter Baer; Author
Subject: Re: [Microsoft/arcticseals] Thermal imagery normalization (#4)
Thanks to Eric for his help on this project. The code is checked into "src/ir-normalization" and the normalized images have been added as a tar file to blob storage as "ArcticSealsTrain1807221152_N.tar". For the new normalized 8-bit thermal images, we have changed "16BIT" to "8BIT_N" in the file names to keep it straight.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FMicrosoft%2Farcticseals%2Fissues%2F4%23issuecomment-407634848&data=02%7C01%7Cpbaer%40exchange.microsoft.com%7C40bd89478f974ac57fde08d5f1eca778%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636680921078425082&sdata=tA6K0rKXtonPiipC42Pg%2BAVyVvUkxP38BZY%2BK8Ki8pU%3D&reserved=0>, or mute the thread<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAHIdVHG5PpDeIAzgXQ5t30b-7tgOlyHsks5uJ_1JgaJpZM4VU--2&data=02%7C01%7Cpbaer%40exchange.microsoft.com%7C40bd89478f974ac57fde08d5f1eca778%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636680921078435092&sdata=pMeeWjx92FC3ihtrXXGyWSJmA6rCrCITCAPZWl8eXy8%3D&reserved=0>.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FMicrosoft%2Farcticseals%2Fissues%2F4%23issuecomment-407809532&data=02%7C01%7Ct-masimo%40microsoft.com%7C7e5baff378704f389a8808d5f24911de%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636681318002358102&sdata=5pXey9UlC68bZqBjuaCJES3uZswaZZkv20kHiec1fqo%3D&reserved=0>, or mute the thread<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAne3nANRaT28XNE7csm0E9LUAdvHR8AGks5uKJhVgaJpZM4VU--2&data=02%7C01%7Ct-masimo%40microsoft.com%7C7e5baff378704f389a8808d5f24911de%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636681318002358102&sdata=hfRHcZUuWqusme3ZE1%2FY2I07YGf9KHBQJAZxc1OhVrU%3D&reserved=0>.
|
Our thermal data is in a raw 16-bit PNG format. We need to both a) figure out exactly what the raw values correspond to so that we can normalize the data (i.e. 0 degrees Celsius should be the same 16-bit pixel value in any image) for training and b) convert it an 8-bit representation for human visual inspection.
The text was updated successfully, but these errors were encountered: