<div dir="ltr"><div dir="ltr"><div dir="ltr">I suspect adding support for the format to subsurface is more effort than it is worth, as I can't imagine there are many divers who are willing to spend $750 on a dive camera that haven't already got a computer.<div><br></div><div>@Robert , the problem with that solution is it requires a an RGBD image, where D is the distance to objects in the scene. I came across this algorithm <a href="https://github.com/nikolajbech/underwater-image-color-correction#readme">nikolajbech/underwater-image-color-correction: The algorithm can color correct underwater images (github.com)</a> which looks pretty simple to implement. By coincidence it appears to have been developed by someone at Paralenz, but it doesn't have any knowledge of depth. You can try it online <a href="https://colorcorrection.firebaseapp.com/">Paralenz Color Correction - BETA</a> Testing it on a couple of still images, it seems to produce pleasing results. <br>I will have a look at implementing it as a ffmpeg filter (there are a couple of other candidate algorithms to try as well).</div><div><br></div><div>Paul</div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jul 19, 2021 at 6:04 PM Miika Turkia <<a href="mailto:miika.turkia@gmail.com">miika.turkia@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_quote"><div class="gmail_attr">Looks like the time format is not currently supported.</div><div class="gmail_attr">- The date uses different separator than what we support (would be easy to add)</div><div class="gmail_attr">- Date and time are in same column, so would require special parsing to split them (should be easy enough)<br></div><div class="gmail_attr">- Time is given in clock time, not relative to start of the dive. So this would also need to be taken into account. And this would probably be tricky, see below.<br></div><div class="gmail_attr"><br></div><div class="gmail_attr">Support could be implemented either by preprocessing, or adding support directly to Subsurface, just as you suggest. The latter is a bit more complex as the import is unfortunately done with XSLT and CSV import with it is really already pushing the limits of that language (it was meant for XML transformations). Would require a bit of thinking how to do the direct import, there might be some trick that I cannot think right now.</div><div class="gmail_attr"><br></div><div class="gmail_attr">The + sign Robet mentions would be easy to take into account, if it is not already handled correctly.<br></div><div dir="ltr" class="gmail_attr"><br></div><div class="gmail_attr">miika<br></div><div dir="ltr" class="gmail_attr"><br></div><div dir="ltr" class="gmail_attr">On Mon, Jul 19, 2021 at 7:37 PM Paul Buxton via subsurface <<a href="mailto:subsurface@subsurface-divelog.org" target="_blank">subsurface@subsurface-divelog.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">I may not have been very clear. I meant that the Paralenz might be an alternate way of logging your dives, rather than using subsurface as a way of getting image correction based on depth.<div>One of the problems with that is exactly what you asked for, i.e. having images with associated depth data. Ideally you would want images with a color reference chart.</div><div><br></div><div>Paralenz have been good enough to send a sample csv file. Which it looks like it would be easy enough to either pre-process to make it consumable by subsurface, or add support for.<br>The fields are not quite a match for the ones in the csv importer, but could be handled easily enough I think.</div><div><br></div><div>Paul</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jul 19, 2021 at 10:29 AM Robert.Helling <<a href="mailto:robert@neu.atdotde.de" target="_blank">robert@neu.atdotde.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>Hi,<br><div><br><blockquote type="cite"><div>On 19. Jul 2021, at 10:14, Paul Buxton via subsurface <<a href="mailto:subsurface@subsurface-divelog.org" target="_blank">subsurface@subsurface-divelog.org</a>> wrote:</div><br><div><div style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none">I have been eyeing up the Paralenz Vaquita camera, mainly due to the depth based colour correction (something I had been thinking of doing myself). I emailed Paralenz about the possibility of extracting the dive log. I just got a response that it is saved out as a csv file, so we ought to be able to just use the CSV import function straight out of the box! :-)<br><br>I have asked if they could send me a sample file. If I get that I will update on what it contains.</div><br></div></blockquote></div><br><div>thanks a lot. That is good news. Given that we have already another paralenz feature in the form of exporting depth and time as a subtitle file that can be used together with videos short during the dive for in picture display of these values, one could contemplate to also do such color correction. I am sure this would be possible with ffmepg. Maybe an interesting project for a student to research this… too bad we don’t do GSOC anymore.</div><div><br></div><div>I myself don’t do underwater video/photo. Do you have any examples (video/pictures with accompanying depth data from a dive computer) that one could use to get started?</div><div><br></div><div>Best</div><div>Robert</div></div></blockquote></div>
_______________________________________________<br>
subsurface mailing list<br>
<a href="mailto:subsurface@subsurface-divelog.org" target="_blank">subsurface@subsurface-divelog.org</a><br>
<a href="http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface" rel="noreferrer" target="_blank">http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface</a><br>
</blockquote></div></div>
</blockquote></div>