Thomas, I made the changes to address your compile errors. It compiles and runs for me. Let me know how it goes. New code on github now.
Jeff On Wednesday, December 22, 2021 at 6:23:38 AM UTC-8 T. Modes wrote: > Hi Jeff, > > eljef... schrieb am Mittwoch, 22. Dezember 2021 um 15:01:23 UTC+1: > >> I looked at the source code lines for error 3) and have no idea at all >> why the compiler would be giving that warning -- did you modify the source >> file so my line numbers don't match yours? >> *** >> > Yes, I modified already some lines to get further. > The lines with error " C2057: expected constant expression" are (all in > skyfill_tif.c): > > float sum_h_by_row[n_max_rows] ; > int n_h_by_row[n_max_rows] ; > > uint16 *output_buf[IMAGE_HEIGHT] ; > > and here the link to your repo: > > https://github.com/weltyj/SkyFill/blob/d27ce93688512d2279b823d7d8e6996339ee3dd8/skyfill_tif.c#L1353 > > https://github.com/weltyj/SkyFill/blob/d27ce93688512d2279b823d7d8e6996339ee3dd8/skyfill_tif.c#L1354 > > https://github.com/weltyj/SkyFill/blob/d27ce93688512d2279b823d7d8e6996339ee3dd8/skyfill_tif.c#L4802 > > To answer your questions: >> > * It doesn't use the projection from the pto file -- only the FOV. What >> it needs to do the unblended sky model is the degrees in horizontal, so it >> can calculate the degrees per pixel. The assumption is that the pixels are >> square, not rectangular. The other assumption is that the degrees per >> pixel is a constant. I'm pretty sure that's not true for many >> projections, but it only needs to be "true enough" to work. >> > > Yes, a constant degree per pixel in horizontal and vertical direction has > only the equirectangular projection. In cylindrical this holds only true > horizontal, but not vertically. > > Thomas > -- A list of frequently asked questions is available at: http://wiki.panotools.org/Hugin_FAQ --- You received this message because you are subscribed to the Google Groups "hugin and other free panoramic software" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/hugin-ptx/3647d1c3-25f9-4fdd-9e66-7e905ab4fc37n%40googlegroups.com.
