Code Monkey home page Code Monkey logo

qtalicevision's Introduction

QtAliceVision - AliceVision/OIIO plugin for Qt

QtAliceVision is a C++ plugin providing:

  • classes to load and visualize AliceVision and Alembic data through QML
  • an OpenImageIO backend for image IO in Qt.

Currently available:

  • Features Viewer
    • Position, scale and orientation
    • Status: extracted, matched or reconstructed
  • Matches Viewer
  • Statistics
    • Per view statistics with reprojection error, observations histograms
    • Global SfM statistics with number of landmarks/matches, reprojection errors, observations per view
  • Float Image Viewer
    • Visualize images with floating point precision
    • Dynamically adjust gain and gamma
  • 3D Depth Maps
    • Visualize depth/sim maps generated by the AliceVision framework in a 3D viewer
  • Alembic 3D visualization
    • Point clouds
    • Cameras
  • OIIO backend
    • Read RAW images from DSLRs
    • Read intermediate files of the AliceVision framework stored in EXR format

License

The project is released under MPLv2, see COPYING.md.

Get the project

Get the source code:

git clone --recursive git://github.com/alicevision/QtAliceVision
cd QtAliceVision

See INSTALL.md to build and install the project.

Usage

AliceVision data visualization

Once built and with the plugin installation folder in QML2_IMPORT_PATH:

  • Create an MSfMData object to get access to the SfM information:
import AliceVision 1.0

MSfMData {
  id: sfmData
  sfmDataPath: "/path/to/SfM/sfmData.abc”
}
  • Create an MTracks to load all matches and get access to tracks information:
import AliceVision 1.0

MTracks {
  id: tracks
  matchingFolder: "/path/to/FeatureMatching/UID/”
}
  • Create a FeaturesViewer to visualize features position, scale, orientation and optionally information about the feature status regarding tracks and SfmData.
FeaturesViewer {
  colorOffset: 0
  describerType: "sift"
  featureFolder: "/path/to/features/folder"
  mTracks: tracks
  viewId: 101245654
  color: “blue”
  landmarkColor: “red”
  displayMode: FeaturesViewer.Points
  mSfmData: sfmData
}
  • Create an MSfMDataStats to display global statistics about your SfMData:
MSfMDataStats {
  msfmData: msfmData
  mTracks: mTracks
}
  • Create an MViewStats to display statistics about a specific View of your SfMData:
MViewStats {
  msfmData: msfmData
  viewId: 451244710
}
  • Create a FloatImageViewer to display an image with floating point precision, allowing to dynamically adjust the gain and gamma:
FloatImageViewer {
  source: "/path/to/image"
  gamma: 1.0
  gain: 1.0
  width: textureSize.width || 500
  height: textureSize.height || 500
  channelMode: "RGB" 
}
  • Create a DepthMapEntity to display a depth map as a point cloud in a 3D viewer:
import DepthMapEntity 1.0

Scene3D {
  DepthMapEntity {
    source: "depthmap.exr"
  }
}
  • Create a SfmDataEntity to display point clouds (in .abc, .sfm or .json format) and cameras in a 3D viewer:
import SfmDataEntity 1.0

Scene3D {
  SfmDataEntity {
    source: "/path/to/pointcloud.sfm"
  }
}

OpenImageIO backend

When added to the QT_PLUGIN_PATH, all supported image files will be loaded through this plugin.

qtalicevision's People

Contributors

cbentejac avatar deece avatar fabiencastan avatar fcastan avatar gregoire-dl avatar just-kiel avatar mugulmd avatar n0ls avatar nissim-kurle avatar nrondaud avatar servantftechnicolor avatar simogasp avatar theoleplomb avatar thomas-zorroche avatar yann-lty avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

qtalicevision's Issues

ILMbase errors

Hi, trying to run cmake and I see errors about ilmbase.

CMake Error at H:/github/vcpkg/scripts/buildsystems/vcpkg.cmake:499 (_add_library):
Target "qtAliceVisionPlugin" links to target "IlmBase::Imath" but the
target was not found. Perhaps a find_package() call is missing for an
IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
src/CMakeLists.txt:23 (add_library)

CMake Error at H:/github/vcpkg/scripts/buildsystems/vcpkg.cmake:499 (_add_library):
Target "qtAliceVisionPlugin" links to target "IlmBase::IlmThread" but the
target was not found. Perhaps a find_package() call is missing for an
IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
src/CMakeLists.txt:23 (add_library)

CMake Error at H:/github/vcpkg/scripts/buildsystems/vcpkg.cmake:499 (_add_library):
Target "qtAliceVisionPlugin" links to target "IlmBase::IexMath" but the
target was not found. Perhaps a find_package() call is missing for an
IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
src/CMakeLists.txt:23 (add_library)

CMake Error at H:/github/vcpkg/scripts/buildsystems/vcpkg.cmake:499 (_add_library):
Target "qtAliceVisionPlugin" links to target "IlmBase::Iex" but the target
was not found. Perhaps a find_package() call is missing for an IMPORTED
target, or an ALIAS target is missing?
Call Stack (most recent call first):
src/CMakeLists.txt:23 (add_library)

CMake Error at H:/github/vcpkg/scripts/buildsystems/vcpkg.cmake:499 (_add_library):
Target "qtAliceVisionPlugin" links to target "IlmBase::Half" but the target
was not found. Perhaps a find_package() call is missing for an IMPORTED
target, or an ALIAS target is missing?
Call Stack (most recent call first):
src/CMakeLists.txt:23 (add_library)

CMake Error at H:/github/vcpkg/scripts/buildsystems/vcpkg.cmake:499 (_add_library):
Target "qtAliceVisionPlugin" links to target "IlmBase::Imath" but the
target was not found. Perhaps a find_package() call is missing for an
IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
src/CMakeLists.txt:23 (add_library)

CMake Error at H:/github/vcpkg/scripts/buildsystems/vcpkg.cmake:499 (_add_library):
Target "qtAliceVisionPlugin" links to target "IlmBase::IlmThread" but the
target was not found. Perhaps a find_package() call is missing for an
IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
src/CMakeLists.txt:23 (add_library)

CMake Error at H:/github/vcpkg/scripts/buildsystems/vcpkg.cmake:499 (_add_library):
Target "qtAliceVisionPlugin" links to target "IlmBase::IexMath" but the
target was not found. Perhaps a find_package() call is missing for an
IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
src/CMakeLists.txt:23 (add_library)

CMake Error at H:/github/vcpkg/scripts/buildsystems/vcpkg.cmake:499 (_add_library):
Target "qtAliceVisionPlugin" links to target "IlmBase::Iex" but the target
was not found. Perhaps a find_package() call is missing for an IMPORTED
target, or an ALIAS target is missing?
Call Stack (most recent call first):
src/CMakeLists.txt:23 (add_library)

CMake Error at H:/github/vcpkg/scripts/buildsystems/vcpkg.cmake:499 (_add_library):
Target "qtAliceVisionPlugin" links to target "IlmBase::Half" but the target
was not found. Perhaps a find_package() call is missing for an IMPORTED
target, or an ALIAS target is missing?
Call Stack (most recent call first):
src/CMakeLists.txt:23 (add_library)

CMake Error at H:/github/vcpkg/scripts/buildsystems/vcpkg.cmake:499 (_add_library):
Target "qtAliceVisionPlugin" links to target "IlmBase::Imath" but the
target was not found. Perhaps a find_package() call is missing for an
IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
src/CMakeLists.txt:23 (add_library)

CMake Error at H:/github/vcpkg/scripts/buildsystems/vcpkg.cmake:499 (_add_library):
Target "qtAliceVisionPlugin" links to target "IlmBase::IlmThread" but the
target was not found. Perhaps a find_package() call is missing for an
IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
src/CMakeLists.txt:23 (add_library)

CMake Error at H:/github/vcpkg/scripts/buildsystems/vcpkg.cmake:499 (_add_library):
Target "qtAliceVisionPlugin" links to target "IlmBase::IexMath" but the
target was not found. Perhaps a find_package() call is missing for an
IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
src/CMakeLists.txt:23 (add_library)

CMake Error at H:/github/vcpkg/scripts/buildsystems/vcpkg.cmake:499 (_add_library):
Target "qtAliceVisionPlugin" links to target "IlmBase::Iex" but the target
was not found. Perhaps a find_package() call is missing for an IMPORTED
target, or an ALIAS target is missing?
Call Stack (most recent call first):
src/CMakeLists.txt:23 (add_library)

CMake Error at H:/github/vcpkg/scripts/buildsystems/vcpkg.cmake:499 (_add_library):
Target "qtAliceVisionPlugin" links to target "IlmBase::Half" but the target
was not found. Perhaps a find_package() call is missing for an IMPORTED
target, or an ALIAS target is missing?
Call Stack (most recent call first):
src/CMakeLists.txt:23 (add_library)

CMake Error at H:/github/vcpkg/scripts/buildsystems/vcpkg.cmake:499 (_add_library):
Target "qtAliceVisionPlugin" links to target "IlmBase::Imath" but the
target was not found. Perhaps a find_package() call is missing for an
IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
src/CMakeLists.txt:23 (add_library)

CMake Error at H:/github/vcpkg/scripts/buildsystems/vcpkg.cmake:499 (_add_library):
Target "qtAliceVisionPlugin" links to target "IlmBase::IlmThread" but the
target was not found. Perhaps a find_package() call is missing for an
IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
src/CMakeLists.txt:23 (add_library)

CMake Error at H:/github/vcpkg/scripts/buildsystems/vcpkg.cmake:499 (_add_library):
Target "qtAliceVisionPlugin" links to target "IlmBase::IexMath" but the
target was not found. Perhaps a find_package() call is missing for an
IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
src/CMakeLists.txt:23 (add_library)

CMake Error at H:/github/vcpkg/scripts/buildsystems/vcpkg.cmake:499 (_add_library):
Target "qtAliceVisionPlugin" links to target "IlmBase::Iex" but the target
was not found. Perhaps a find_package() call is missing for an IMPORTED
target, or an ALIAS target is missing?
Call Stack (most recent call first):
src/CMakeLists.txt:23 (add_library)

CMake Error at H:/github/vcpkg/scripts/buildsystems/vcpkg.cmake:499 (_add_library):
Target "qtAliceVisionPlugin" links to target "IlmBase::Half" but the target
was not found. Perhaps a find_package() call is missing for an IMPORTED
target, or an ALIAS target is missing?
Call Stack (most recent call first):
src/CMakeLists.txt:23 (add_library)

Ceres dependency?

Hello;

I am trying to build Meshroom, which in turn means I need to build this package as a dependency. I've installed all fo the prescribed dependencies via vcpkg, but cmake complains about Ceres when I try to generate makefiles.

I can install ceres via vcpkg, and point Ceres_DIR to "C:\vcpkg\installed\x64-windows\share\ceres", which contains the cmake files cmake seems to want, but it doesn't seem happy about that:


-- Selecting Windows SDK version 10.0.18362.0 to target Windows 10.0.18363.
CMake Error at C:/Program Files/CMake/share/cmake-3.19/Modules/CMakeFindDependencyMacro.cmake:47 (find_package):
By not providing "FindCeres.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "Ceres", but
CMake did not find one.

Could not find a package configuration file provided by "Ceres" with any of
the following names:

CeresConfig.cmake
ceres-config.cmake

Add the installation prefix of "Ceres" to CMAKE_PREFIX_PATH or set
"Ceres_DIR" to a directory containing one of the above files. If "Ceres"
provides a separate development package or SDK, be sure it has been
installed.


Any advice about how I might properly build this project?

MSfMDataStats Doesn't Compile

Trying to build qtAliceVision as part of building the full AliceVision/Meshroom stack in an NVIDIA-enabled docker container.

OS: AliceVision Docker image derived from nvidia/cudagl:11.2.2-devel-ubuntu20.04
Python 3.8.10
Qt/PySide 5.14.1
Meshroom version: release v2021.1.0 (HEAD-ad9f1e87)
AliceVision version: release v2.4.0 (HEAD-38d899f54)
CUDA version: 11.2.2

The build errors out when compiling MSfMDataStats.cpp with the following error:

[ 91%] Building CXX object src/CMakeFiles/qtAliceVisionPlugin.dir/MSfMDataStats.cpp.o
/tmp/Meshroom_build/qtAliceVision/src/MFeatures.cpp: In member function 'virtual void qtAliceVision::FeaturesIORunnable::run()':
/tmp/Meshroom_build/qtAliceVision/src/MFeatures.cpp:63:24: error: 'loadFeaturesPerDescPerView' is not a member of 'aliceVision::sfm'; did you mean 'loadFeaturesPerView'?
63 | bool loaded = sfm::loadFeaturesPerDescPerView(regionsPerViewPerDesc, viewIds, {folder.toLocalFile().toStdString()}, imageDescriberTypes);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
| loadFeaturesPerView
make[6]: *** [src/CMakeFiles/qtAliceVisionPlugin.dir/build.make:102: src/CMakeFiles/qtAliceVisionPlugin.dir/MFeatures.cpp.o] Error 1
make[6]: *** Waiting for unfinished jobs....
make[5]: *** [CMakeFiles/Makefile2:95: src/CMakeFiles/qtAliceVisionPlugin.dir/all] Error 2
make[4]: *** [Makefile:130: all] Error 2
make[3]: *** [CMakeFiles/qtAliceVision.dir/build.make:112: qtAliceVision-prefix/src/qtAliceVision-stamp/qtAliceVision-build] Error 2
make[2]: *** [CMakeFiles/Makefile2:80: CMakeFiles/qtAliceVision.dir/all] Error 2
make[1]: *** [CMakeFiles/Makefile2:87: CMakeFiles/qtAliceVision.dir/rule] Error 2
make: *** [Makefile:118: qtAliceVision] Error 2

I tried replacing loadFeaturesPerDescPerView with loadFeaturesPerView but then MFeatures.cpp errors out with:

[ 16%] Building CXX object src/CMakeFiles/qtAliceVisionPlugin.dir/MFeatures.cpp.o
/tmp/Meshroom_build/qtAliceVision/src/MFeatures.cpp: In member function 'virtual void qtAliceVision::FeaturesIORunnable::run()':
/tmp/Meshroom_build/qtAliceVision/src/MFeatures.cpp:64:44: error: invalid initialization of reference of type 'aliceVision::feature::FeaturesPerView&' from expression of type 'std::vector<std::vector<std::unique_ptraliceVision::feature::Regions > >'
64 | bool loaded = sfm::loadFeaturesPerView(regionsPerViewPerDesc, viewIds, {folder.toLocalFile().toStdString()}, imageDescriberTypes);
| ^~~~~~~~~~~~~~~~~~~~~
In file included from /tmp/Meshroom_build/qtAliceVision/src/MFeature.hpp:7,
from /tmp/Meshroom_build/qtAliceVision/src/MFeatures.hpp:3,
from /tmp/Meshroom_build/qtAliceVision/src/MFeatures.cpp:1:
/opt/AliceVision_install/include/aliceVision/sfm/pipeline/regionsIO.hpp:63:52: note: in passing argument 1 of 'bool aliceVision::sfm::loadFeaturesPerView(aliceVision::feature::FeaturesPerView&, const aliceVision::sfmData::SfMData&, const std::vector<std::__cxx11::basic_string >&, const std::vectoraliceVision::feature::EImageDescriberType&)'
63 | bool loadFeaturesPerView(feature::FeaturesPerView& featuresPerView,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
make[6]: *** [src/CMakeFiles/qtAliceVisionPlugin.dir/build.make:102: src/CMakeFiles/qtAliceVisionPlugin.dir/MFeatures.cpp.o] Error 1
make[5]: *** [CMakeFiles/Makefile2:95: src/CMakeFiles/qtAliceVisionPlugin.dir/all] Error 2
make[4]: *** [Makefile:130: all] Error 2
make[3]: *** [CMakeFiles/qtAliceVision.dir/build.make:112: qtAliceVision-prefix/src/qtAliceVision-stamp/qtAliceVision-build] Error 2
make[2]: *** [CMakeFiles/Makefile2:80: CMakeFiles/qtAliceVision.dir/all] Error 2
make[1]: *** [CMakeFiles/Makefile2:87: CMakeFiles/qtAliceVision.dir/rule] Error 2
make: *** [Makefile:118: qtAliceVision] Error 2

Any assistance is appreciated.

‘readImageSpec’ is not a member of ‘aliceVision::image’; did you mean ‘readImageDirect’

[ 17%] Building CXX object src/qtAliceVisionImageIO/CMakeFiles/qtAliceVisionImageIOPlugin.dir/QtAliceVisionImageIOHandler.cpp.o
/home/skinkie/Sources/alice/QtAliceVision/src/qtAliceVisionImageIO/QtAliceVisionImageIOHandler.cpp: In member function ‘virtual bool QtAliceVisionImageIOHandler::read(QImage*)’:
/home/skinkie/Sources/alice/QtAliceVision/src/qtAliceVisionImageIO/QtAliceVisionImageIOHandler.cpp:96:50: error: ‘readImageSpec’ is not a member of ‘aliceVision::image’; did you mean ‘readImageDirect’?
   96 |     oiio::ImageSpec inSpec = aliceVision::image::readImageSpec(path);
      |                                                  ^~~~~~~~~~~~~
      |                                                  readImageDirect
/home/skinkie/Sources/alice/QtAliceVision/src/qtAliceVisionImageIO/QtAliceVisionImageIOHandler.cpp: In member function ‘virtual QVariant QtAliceVisionImageIOHandler::option(QImageIOHandler::ImageOption) const’:
/home/skinkie/Sources/alice/QtAliceVision/src/qtAliceVisionImageIO/QtAliceVisionImageIOHandler.cpp:168:48: error: ‘readImageSpec’ is not a member of ‘aliceVision::image’; did you mean ‘readImageDirect’?
  168 |     oiio::ImageSpec spec = aliceVision::image::readImageSpec(path);
      |                                                ^~~~~~~~~~~~~
      |                                                readImageDirect
make[2]: *** [src/qtAliceVisionImageIO/CMakeFiles/qtAliceVisionImageIOPlugin.dir/build.make:104: src/qtAliceVisionImageIO/CMakeFiles/qtAliceVisionImageIOPlugin.dir/QtAliceVisionImageIOHandler.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:137: src/qtAliceVisionImageIO/CMakeFiles/qtAliceVisionImageIOPlugin.dir/all] Error 2

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.