Skip to content

Commit

Permalink
Add more logging to distortion export
Browse files Browse the repository at this point in the history
  • Loading branch information
servantftechnicolor committed Sep 25, 2024
1 parent 573a69a commit eab0f49
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/software/convert/main_convertDistortion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,8 @@ int aliceVision_main(int argc, char** argv)
continue;
}

ALICEVISION_LOG_INFO("Processing intrinsic " << pairIntrinsic.first);

if (from == "distortion")
{
if (to == "undistortion")
Expand Down
6 changes: 6 additions & 0 deletions src/software/export/main_exportDistortion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -235,11 +235,17 @@ int aliceVision_main(int argc, char* argv[])

const auto intrinsicDisto = std::dynamic_pointer_cast<IntrinsicScaleOffsetDisto>(intrinsicPtr);
if (!intrinsicDisto)
{
ALICEVISION_LOG_INFO("Intrinsic " << intrinsicId << " has incorrect format");
continue;
}

const auto undistortion = intrinsicDisto->getUndistortion();
if (!undistortion)
{
ALICEVISION_LOG_INFO("Intrinsic " << intrinsicId << " is not exported as it has no undistortion object.");
continue;
}

if (exportNukeNode)
{
Expand Down

0 comments on commit eab0f49

Please sign in to comment.