File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -315,7 +315,7 @@ bool process(const sfmData::SfMData & input,
315315 // for exposure correction
316316 const double medianCameraExposure = input.getMedianCameraExposureSetting ().getExposure ();
317317
318- for (int posImage = rangeStart ; posImage < rangeEnd ; posImage++)
318+ for (int posImage = 0 ; posImage < countElements ; posImage++)
319319 {
320320 auto viewsIt = input.getViews ().begin ();
321321 std::advance (viewsIt, posImage);
@@ -345,7 +345,8 @@ bool process(const sfmData::SfMData & input,
345345 std::string outFileName = namingFunction (view);
346346 outputView.getImage ().setImagePath (outFileName);
347347
348- if (posImage < rangeStart && posImage >= rangeEnd)
348+ // Real processing is ignored if we are not in the chunk
349+ if (posImage < rangeStart || posImage >= rangeEnd)
349350 {
350351 continue ;
351352 }
You can’t perform that action at this time.
0 commit comments