国内从 Docker Hub 拉取镜像有时会遇到困难,此时可以配置镜像加速器。
Dockerized 实践 https://github.com/y0ngb1n/dockerized
| /** | |
| * Convert standard camera intrinsic and extrinsic parameters to a vtkCamera instance for rendering | |
| * Assume square pixels and 0 skew (for now). | |
| * | |
| * focal_len : camera focal length (units pixels) | |
| * nx,ny : image dimensions in pixels | |
| * principal_pt: camera principal point, | |
| * i.e. the intersection of the principal ray with the image plane (units pixels) | |
| * camera_rot, camera_trans : rotation, translation matrix mapping world points to camera coordinates | |
| * depth_min, depth_max : needed to set the clipping range |
| import vtk | |
| import numpy as np | |
| from vtk.util import numpy_support | |
| import cv2 | |
| class Camera_VTK(): | |
| """ | |
| Example class showing how to project a 3D world coordinate onto a 2D image plane using VTK |
国内从 Docker Hub 拉取镜像有时会遇到困难,此时可以配置镜像加速器。
Dockerized 实践 https://github.com/y0ngb1n/dockerized
| # Get a dental CT scan | |
| import SampleData | |
| volumeNode = SampleData.SampleDataLogic().downloadDentalSurgery()[1] | |
| # Define curve | |
| curveNode = slicer.mrmlScene.AddNewNodeByClass('vtkMRMLMarkupsCurveNode') | |
| curveNode.CreateDefaultDisplayNodes() | |
| curveNode.GetCurveGenerator().SetNumberOfPointsPerInterpolatingSegment(25) # add more curve points between control points than the default 10 | |
| curveNode.AddControlPoint(vtk.vtkVector3d(-45.85526315789473, -104.59210526315789, 74.67105263157896)) | |
| curveNode.AddControlPoint(vtk.vtkVector3d(-50.9078947368421, -90.06578947368418, 66.4605263157895)) |
A small multi-threaded C++ library (so, does not include any main) compiled with emscripten and pthread running under the main thread in the browser, a web worker or using node.js.
Note: Emscripten will produce lib.js.
Running this lib in the main thread is fine but, obviously, block the main thread. Running it using a web worker leads no error with modification of the worker script (see below)
Run fine except that it prevents Node app from ever exiting.
| This list was compiled from https://web.archive.org/web/20230911135706/https://docs.docker.com/desktop/release-notes/, retrieved on 2024-05-24 | |
| It appears links for later updates than 4.22.1 are currently (as of early Aug 2024) being kept up to date on https://docs.docker.com/desktop/release-notes, I'm not going to continuously update this but others may in the comments below, so check that link or the comments if you need a later version than 4.22.1. | |
| The information may not be correct in all cases, or may have changed since archive.org archived the page. At time of posting, I spot-checked a few links and they appeared to be good, but really, all I've done is copied, pasted, and visually formatted the information I found on archive.org, so no warrantee that it's good. | |
| If the download links don't work, sometimes archive.org has the download archive, and you can try adding https://web.archive.org/web/20230911135706/ to the beginning of the URL. For instance, as of this writing, the 4.22.1 Windows download i |