This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// This software is released under the MIT license. | |
// | |
// Copyright (c) 2022 Jino Park (http://github.com/pjessesco) | |
// | |
// Permission is hereby granted, free of charge, to any person obtaining a copy | |
// of this software and associated documentation files (the "Software"), to deal | |
// in the Software without restriction, including without limitation the rights | |
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
// copies of the Software, and to permit persons to whom the Software is |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Reference : https://stackoverflow.com/a/59539843 | |
from PyQt5.QtCore import * | |
from PyQt5.QtGui import * | |
from PyQt5.QtWidgets import * | |
from PyQt5.QtCore import QObject, pyqtSignal | |
import sys | |
import time | |
import threading |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Differential rendering (Deb98) script for mitsuba2 | |
import mitsuba | |
mitsuba.set_variant('scalar_rgb') | |
from mitsuba.core import Thread, Float, Color3f | |
from mitsuba.core.xml import load_file | |
from mitsuba.python.util import traverse | |
import pyexr | |
import numpy as np |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pyexr | |
import numpy as np | |
if __name__ == '__main__': | |
shift_coords = [[]] | |
path = "path_to_exr.exr" | |
img = pyexr.read(path) |