-
Notifications
You must be signed in to change notification settings - Fork 2
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
Review RGB fullfield extractor and output #183
Comments
LINKS fullfield output dataset example an output dataset includes thumbnail- and full-resolution GeoTIFFs. outputs on ROGER are in /ua-mac/Level_1/fullfield. |
This is how the full field product appears: This issue with sun / shade is discussed in terraref/computing-pipeline#326. |
@ZongyangLi I intended to run this with the darker pixel correction flag, but it doesn't look like it was actually applied, let me check and can generate corrected version after our meeting. |
@craig-willis and I looked at the full field stitch after correction, and it looks the same as before to us. can you take a look @ZongyangLi ? Output VRT, TIFFs and folders with subtiles are in _rgb and _rgb_thumb include the darker pixel selection with split=2 _rgb_nodark and _rgb_thumb_nodark are original version without darker pixel selection. |
I'm working on a way to view the large TIFF via QGIS in workbench without transferring the data. Will hopefully have a solution later today. |
The darker pixel selection also results in a bad _thumb file - at first glance it looked like a single tile is being stretched across the whole field or something. I had noticed this before in tests but hoped it was just an artifact of my small test image set - the full-resolution image did not have a problem in either case. |
@ZongyangLi that simplifies things if we skip for this pass, lets us focus on just the stitching (plus the darker pixel with split=2 took 44 hours). we should look at some of the bin2tif individual images and compare their gantry position to our georeferenced position to make sure we have them in the right place - the sun patterns are kind of random in the stitched sample image above. |
@max-zilla I downloaded first 114 raw data from
Thanks! |
@ZongyangLi how do arrive at the stitched image above? looking through the code we're using, it looks like we have the united tiles directory at in your shadeRemoval script:
darker_tiles_generator() creates the "united" folder of tiles, but those aren't converted to GeoTIFF. I wonder if you are viewing the directory using a tile viewer or TMS so that it is using those files without creating a VRT? does that make sense? I think we need a way to go from unite/tiles_left/28 (128 folders in my test output which contain 1630 JPGs each) to the GeoTIFF again. is it possible to convert directory of tiles back to geoTIFF? e: sounds tricky here: https://gis.stackexchange.com/questions/4798/mosaic-the-output-of-gdal2tiles https://lists.osgeo.org/pipermail/gdal-dev/2011-January/027219.html I tried doing something like:
...but the PNG tiles have no georeference so gdalbuildvrt fails:
|
You are right, we didn't create a new VRT at all. When @craig-willis or someone others is going to create full field image using my map tiles, I don't really know how to do this. Things in darker_tiles_generator() is only creating tiles base new images. The way I was viewing the full field map is using google map API, the google map API will integrate all the tiles into a webpage that showing all the field map. So void images in zoom level 18-27 matters to create different zoom level's visualization. In the function of generate_googlemaps(), the key code is: |
We ran a new day from earlier in the season, without the darker pixel stuff: Ignore the thumbnails, they are old. The new result looks pretty great: There's a 10% and full resolution available. When the plants are small and sun isn't glaring, it is a nice product. @jterstriep you can see the gaps we were discussing via email. this is a screenshot of the 10% resolution raster. |
@dlebauer @ZongyangLi @smarshall-bmr @smarshall-bmr The checkerboard effect in the fullfield image above appears to be an artifact of the gantry scan direction. Below is a comparison of two consecutive images on the right side of the fullfield image (2017-05-29 10:02:30.287 and 10:02:43.995). It seems that the gantry isn't capturing that last image prior to changing direction. Can you help confirm? @ZongyangLi We think this is an artifact of both the stereo camera itself (per @smarshall-bmr's terraref/computing-pipeline#355), but also a possible problem with the stereo camera bounding box calculation. Can you comment? The images here are:
|
note that in the first screenshot Craig posted, the gantry was moving to the right on the bottom image, then turned around and captured the top image going left as first image of next row. |
To my understanding, this problem is hard to avoid since the FOV of camera is a taper, especially when the camera is close to the ground. When you focus on the plant, it seems to be aligned, when you focus on the ground, it turns out the artifact. Remember I did a lot of assumption without any metadata confirmed, to try to fit as much as I can to stitch well. This is far different from a picture captured from satellite or an aerial photo. In that case, the camera is far away from the target object, and you will easily ignore the small stitching boundaries. If I was wrong in this issue, anyone please feel free to point me out. |
@ZongyangLi Thanks for the additional details. Are your decisions/assumptions documented someplace (including how you came to the slope estimation and predicted plant height)? I expect that we'll just want to make sure this information is clearly documented and available to users. |
With respect to the "duplication" problem, this is something that is unavoidable without a much more complex stitching algorithm that implicitly infers the 3D structure of the ground. The justification for not going for such a rich representation is that: |
Ok we can accept the current output. I think we have the caveats documenTed and next steps include the orthomosaicing terraref/computing-pipeline#355 and the aggregation of image level metrics to plot level terraref/computing-pipeline#356 I think this is ready to be deployed. |
Tracking re-processing in terraref/computing-pipeline#357 |
Quality statement in PR terraref/extractors-stereo-rgb#11 |
@smarshall-bmr @max-zilla |
Need to be able to handle many different scans / scan types. This is covered in terraref/computing-pipeline#362 will update metadata script to propagate scan script forward to identify different scans. |
Stale issue, closing. We will revisit RGB fullfield review for 2018. |
Review issue for the fullfield extractor and output using stereoTop RGB inputs.
Completion criteria:
The text was updated successfully, but these errors were encountered: