All public logs
From KitwarePublic
Jump to navigationJump to search
Combined display of all available logs of KitwarePublic. You can narrow down the view by selecting a log type, the username (case-sensitive), or the affected page (also case-sensitive).
(newest | oldest) View (newer 50 | older 50) (20 | 50 | 100 | 250 | 500)- 03:05, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Math/HomogeneousLeastSquares (content was: "==HomogeneousLeastSquares.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkMath.h> allocate memory for an nrow x ncol matrix: template<class TReal> TReal **create_matrix ( long nrow, long ncol ) { typedef TReal* TRealPointer; TReal **m = new TRealPointer[nrow]; TReal* block = ( TReal* ) calloc ( nrow*ncol, sizeof ( TReal ) ); m[0] = block; for ( int row = 1; row < nrow; ++row ) { m[ row ] = &block[ row * ncol ]; } return m...")
- 03:05, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Math/LUFactorization (content was: "==LUFactorization.cxx== <source lang="cpp"> #include <vtkMath.h> template<class TReal> TReal **create_matrix ( long nrow, long ncol ) { typedef TReal* TRealPointer; TReal **m = new TRealPointer[nrow]; TReal* block = ( TReal* ) calloc ( nrow*ncol, sizeof ( TReal ) ); m[0] = block; for ( int row = 1; row < nrow; ++row ) { m[ row ] = &block[ row * ncol ]; } return m; } free a TReal matrix allocated with matrix(): template<class TReal> void fre...")
- 03:05, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Math/LeastSquares (content was: "This example solves XM = Y (an interesting way to write Ax = b). In particular, we are trying to solve <source lang="text"> [1 4] [-2] [1 2] M = [6] [2 3] [1] </source> It currently does not work. ==LeastSquares.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkMath.h> allocate memory for an nrow x ncol matrix: template<class TReal> TReal **create_matrix ( long nrow, long ncol ) { typedef TReal* TRealPointer; TReal **m = new TRe...")
- 03:05, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Math/MatrixInverse (content was: "==MatrixInverse.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkMatrix3x3.h> int main(int, char *[]) { vtkSmartPointer<vtkMatrix3x3> m = vtkSmartPointer<vtkMatrix3x3>::New(); m->SetElement(2,1,2.0); // Set element (0,0) to 1.0 std::cout << *m << std::endl; m->Invert(); std::cout << *m << std::endl; return EXIT_SUCCESS; } </source> {{VTKCMakeLists|{{SUBPAGENAME}}}} Category:VTKNoVizRequired")
- 03:05, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Math/MatrixTranspose (content was: "==MatrixTranspose.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkMatrix3x3.h> int main(int, char *[]) { vtkSmartPointer<vtkMatrix3x3> m = vtkSmartPointer<vtkMatrix3x3>::New(); m->SetElement(2,1,2.0); // Set element (2,1) to 2.0 std::cout << *m << std::endl; m->Transpose(); std::cout << *m << std::endl; return EXIT_SUCCESS; } </source> {{VTKCMakeLists|{{SUBPAGENAME}}}} Category:VTKNoVizRequired")
- 03:04, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Filtering/ExtractVisibleCells (content was: "= '''See [https://lorensen.github.io/VTKExamples/site/Cxx/Filtering/ExtractVisibleCells ExtractVisibleCells] on the new [https://lorensen.github.io/VTKExamples/site/ VTKExamples website].''' =")
- 03:03, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/IO/WritePNM (content was: "<div class="floatright">File:VTK_Examples_Baseline_IO_TestWritePNM.png</div> ==WritePNM.cxx== <source lang="cpp"> #include <vtkImageData.h> #include <vtkPNMWriter.h> #include <vtkSmartPointer.h> #include <vtkImageCanvasSource2D.h> #include <vtkSmartPointer.h> #include <vtkRenderWindow.h> #include <vtkRenderWindowInteractor.h> #include <vtkRenderer.h> #include <vtkImageActor.h> #include <vtkImageMapper3D.h> #include <vtkPNMReader.h> #include <vtkInteractorStyleImage.h> int...")
- 03:03, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/IO/WriteSTL (content was: "<div class="floatright">File:VTK_Examples_Baseline_IO_TestWriteSTL.png</div> An STL file describes a triangulated three-dimensional surface by the unit normal and vertices (ordered by the right-hand rule) of the triangles. This example saves a 3D geometric data stored in a {{class|vtkPolyData}} to an STL file using {{class|vtkSTLWriter}}. ==WriteSTL.cxx== <source lang="cpp"> #include <vtkPolyData.h> #include <vtkSTLWriter.h> #include <vtkST...")
- 03:03, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/IO/WriteTIFF (content was: "<div class="floatright">File:VTK_Examples_Baseline_IO_TestWriteTIFF.png</div> ==WriteTIFF.cxx== <source lang="cpp" highlight="3,34-38"> #include <vtkImageData.h> #include <vtkInteractorStyleImage.h> #include <vtkTIFFWriter.h> #include <vtkSmartPointer.h> #include <vtkImageCanvasSource2D.h> #include <vtkRenderWindow.h> #include <vtkRenderWindowInteractor.h> #include <vtkRenderer.h> #include <vtkImageActor.h> #include <vtkImageMapper3D.h> #include <vtkTIFFReader.h> int main(...")
- 03:03, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/IO/WriteVTI (content was: "<div class="floatright">File:VTK_Examples_Baseline_IO_TestWriteVTI.png</div> ==WriteVTI.cxx== <source lang="cpp"> #include <vtkVersion.h> #include <vtkSmartPointer.h> #include <vtkProperty.h> #include <vtkXMLImageDataWriter.h> #include <vtkXMLImageDataReader.h> #include <vtkImageData.h> #include <vtkRenderWindowInteractor.h> #include <vtkRenderer.h> #include <vtkImageDataGeometryFilter.h> #include <vtkRenderWindow.h> #include <vtkActor.h> #include <vtkPolyDataMapper.h> int...")
- 03:03, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/IO/WriteVTP (content was: "In this example, we add 10 points to a polygonal data (polydata) object and write the result to a VTP file. ==WriteVTP.cxx== <source lang="cpp"> #include <vtkVersion.h> #include <vtkCellArray.h> #include <vtkPoints.h> #include <vtkXMLPolyDataWriter.h> #include <vtkPolyData.h> #include <vtkSmartPointer.h> int main ( int, char *[] ) { // Create 10 points. vtkSmartPointer<vtkPoints> points = vtkSmartPointer<vtkPoints>::New(); for ( unsigned int i = 0; i < 10; ++i )...")
- 03:03, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/IO/WriteVTU (content was: "<div class="floatright">File:VTK_Examples_Baseline_IO_TestWriteVTUFile.png</div> This example writes a VTU file. ==WriteVTU.cxx== <source lang="cpp"> #include <vtkVersion.h> #include <vtkSmartPointer.h> #include <vtkTetra.h> #include <vtkCellArray.h> #include <vtkXMLUnstructuredGridReader.h> #include <vtkDataSetMapper.h> #include <vtkActor.h> #include <vtkRenderer.h> #include <vtkRenderWindow.h> #include <vtkRenderWindowInteractor.h> #include <vtkXMLUnstructuredGridWriter....")
- 03:03, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/IO/XMLPImageDataWriter (content was: "==XMLPImageDataWriter.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkXMLPImageDataWriter.h> #include <vtkImageCanvasSource2D.h> int main(int, char *[]) { vtkSmartPointer<vtkImageCanvasSource2D> drawing = vtkSmartPointer<vtkImageCanvasSource2D>::New(); drawing->SetNumberOfScalarComponents(3); drawing->SetScalarTypeToUnsignedChar(); drawing->SetExtent(0, 20, 0, 50, 0, 1); drawing->SetDrawColor(255.0, 255.0, 255.0); drawing->DrawCircle(5, 5, 3...")
- 03:03, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/IO/XMLPUnstructuredGridWriter (content was: " ==XMLPUnstructuredGridWriter.cxx== <source lang="cpp"> #include <vtkDelaunay3D.h> #include <vtkSmartPointer.h> #include <vtkSphereSource.h> #include <vtkXMLPUnstructuredGridWriter.h> int main(int, char *[]) { vtkSmartPointer<vtkSphereSource> sphereSource = vtkSmartPointer<vtkSphereSource>::New(); sphereSource->Update(); vtkSmartPointer<vtkDelaunay3D> delaunay = vtkSmartPointer<vtkDelaunay3D>::New(); delaunay->SetInputConnection(sphereSource->GetOutputPort());...")
- 03:03, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/IO/XMLStructuredGridWriter (content was: "==XMLStructuredGridWriter.cxx== <source lang="cpp"> #include <vtkVersion.h> #include <vtkCellArray.h> #include <vtkPoints.h> #include <vtkXMLStructuredGridWriter.h> #include <vtkStructuredGrid.h> #include <vtkSmartPointer.h> int main ( int, char *[] ) { // Create a grid vtkSmartPointer<vtkStructuredGrid> structuredGrid = vtkSmartPointer<vtkStructuredGrid>::New(); vtkSmartPointer<vtkPoints> points = vtkSmartPointer<vtkPoints>::New(); points->InsertNextPoint...")
- 03:03, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/ImageData/CellIdFromGridCoordinates (content was: "==CellIdFromGridCoordinates.cxx== <source lang="cpp"> #include <vtkVersion.h> #include <vtkSmartPointer.h> #include <vtkImageData.h> #include <vtkStructuredData.h> int main(int, char *[]) { vtkSmartPointer<vtkImageData> grid = vtkSmartPointer<vtkImageData>::New(); grid->SetOrigin(0, 0, 0); unsigned int numVoxelsPerDimension = 2; //the number of voxels in each dimension grid->SetSpacing(1, 1, 1); int extent[6]; extent[0] = 0; extent[1] = numVoxelsPerDimension...")
- 03:03, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/ImageData/ExtractVOI (content was: "<div class="floatright">300px</div> ==ExtractVOI.cxx== <source lang="cpp"> #include <vtkVersion.h> #include <vtkSmartPointer.h> #include <vtkImageData.h> #include <vtkImageMapper3D.h> #include <vtkExtractVOI.h> #include <vtkRenderWindow.h> #include <vtkRenderWindowInteractor.h> #include <vtkInteractorStyleImage.h> #include <vtkRenderer.h> #include <vtkImageActor.h> #include <vtkImageCast.h> #include <vtkImageMandelbrot...")
- 03:03, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/ImageData/GetCellCenter (content was: "Unfortunately this function is not built in directly, but rather quite convoluted to call. This is an easy to use wrapper. ==GetCellCenter.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkCell.h> #include <vtkImageData.h> static void GetCellCenter(vtkImageData* imageData, const unsigned int cellId, double center[3]); int main(int, char *[]) { // Create an image data vtkSmartPointer<vtkImageData> imageData = vtkSmartPointer<vt...")
- 03:03, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/ImageData/ImageDataGeometryFilter (content was: "<div class="floatright">File:VTK_Examples_Baseline_ImageData_TestImageDataGeometryFilter.png</div> Convert a vtkImageData to a vtkPolyData. ==ImageDataGeometryFilter.cxx== <source lang="cpp"> #include <vtkSphereSource.h> #include <vtkPolyData.h> #include <vtkSmartPointer.h> #include <vtkPolyDataMapper.h> #include <vtkActor.h> #include <vtkRenderWindow.h> #include <vtkRenderer.h> #include <vtkRenderWindowInteractor.h> #include <vtkImageData.h> #include <vtkImageCanvasSource...")
- 03:03, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/ImageData/ImageDataToPointSet (content was: "==ImageDataToPointSet.cxx== <source lang="cpp"> #include <vtkVersion.h> #include <vtkImageData.h> #include <vtkPoints.h> #include <vtkImageDataToPointSet.h> #include <vtkSmartPointer.h> #include <vtkXMLStructuredGridWriter.h> #include <vtkImageReader2.h> #include <vtkImageReader2Factory.h> #include <vtkStructuredGrid.h> static void CreateImage(vtkImageData* image); int main(int, char *[]) { vtkSmartPointer<vtkImageData> image = vtkSmartPointer<vtkImageData>::New(); Cr...")
- 03:03, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/ImageData/ImageIterator (content was: "Extracts an extent from an image using an image iterator. ==ImageIterator.cxx== <source lang="cpp"> #include <vtkVersion.h> #include <vtkSmartPointer.h> #include <vtkImageData.h> #include <vtkImageIterator.h> int main(int, char *[]) { // Create an image data vtkSmartPointer<vtkImageData> imageData = vtkSmartPointer<vtkImageData>::New(); // Specify the size of the image data imageData->SetDimensions(10,20,30); #if VTK_MAJOR_VERSION <= 5 imageData->SetNumberOf...")
- 03:03, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/ImageData/ImageNormalize (content was: "<div class="floatright">300px</div> ==ImageNormalize.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkImageData.h> #include <vtkImageMapper3D.h> #include <vtkImageSinusoidSource.h> #include <vtkImageNormalize.h> #include <vtkRenderWindow.h> #include <vtkRenderWindowInteractor.h> #include <vtkInteractorStyleImage.h> #include <vtkRenderer.h> #include <vtkImageActor.h> #include <vtkImageCast.h> int...")
- 03:03, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/ImageData/ImageReslice (content was: "==ImageReslice.cxx== <source lang="cpp"> #include <vtkVersion.h> #include <vtkActor.h> #include <vtkImageData.h> #include <vtkIntArray.h> #include <vtkProperty2D.h> #include <vtkRenderer.h> #include <vtkRenderWindow.h> #include <vtkRenderWindowInteractor.h> #include <vtkSmartPointer.h> #include <vtkImageReslice.h> int main(int, char *[] ) { vtkSmartPointer<vtkImageData> image = vtkSmartPointer<vtkImageData>::New(); image->SetExtent(0, 9, 0, 9, 0, 0); #if VTK_MAJOR_VER...")
- 03:03, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/ImageData/ImageTranslateExtent (content was: "<div class="floatcenter">File:VTK_Examples_Baseline_ImageData_TestImageTranslateExtent.png</div> If you are looking to change the extent to change the "origin" of the image from the corner to the center, see vtkImageChangeInformation (http://www.vtk.org/Wiki/VTK/Examples/Cxx/Images/CenterAnImage). Currently this method changes the extent (shown by the terminal output in the example), but does not change where the corner of the image is displayed relative to the sphere at (...")
- 03:03, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/ImageData/ImageWeightedSum (content was: "Sum multiple images. Images must be of the same size and type. <div class="floatcenter">300px</div> ==ImageWeightedSum.cxx== <source lang="cpp"> #include <vtkVersion.h> #include <vtkSmartPointer.h> #include <vtkImageData.h> #include <vtkImageCanvasSource2D.h> #include <vtkImageWeightedSum.h> #include <vtkImageMapper3D.h> #include <vtkRenderWindow.h> #include <vtkRenderWindowInteractor.h> #include <vtkInteractorS...")
- 03:03, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/ImageData/IntersectLine (content was: "<div class="floatcenter">File:VTK_Examples_Baseline_ImageData_TestIntersectLine.png</div> This example demonstrates a (rather manual) way of finding which cells of a vtkImageData a finite line intersects. Note that this is not exact - a cell-centric approach is used. That is, a discrete line (DDA-like http://en.wikipedia.org/wiki/Digital_differential_analyzer_%28graphics_algorithm%29) is followed on the cell grid between the cells that contain the intersection points of the...")
- 03:03, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/ImageData/IterateImageData (content was: "This example demonstrates how to set and access locations in a 3D image. ==IterateImageData.cxx== <source lang="cpp"> #include <vtkVersion.h> #include <vtkSmartPointer.h> #include <vtkImageData.h> int main(int, char *[]) { // Create an image data vtkSmartPointer<vtkImageData> imageData = vtkSmartPointer<vtkImageData>::New(); // Specify the size of the image data imageData->SetDimensions(2,3,1); #if VTK_MAJOR_VERSION <= 5 imageData->SetNumberOfScalarComponent...")
- 03:03, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/ImageProcessing/RescaleAnImage (content was: "==RescaleAnImage.cxx== <source lang="cpp"> #include <vtkImageData.h> #include <vtkImageShiftScale.h> #include <vtkMath.h> #include <vtkSmartPointer.h> static void CreateImage(vtkImageData* const image); int main(int argc, char *argv[]) { vtkSmartPointer<vtkImageData> image = vtkSmartPointer<vtkImageData>::New(); CreateImage(image); vtkSmartPointer<vtkImageShiftScale> shiftScaleFilter = vtkSmartPointer<vtkImageShiftScale>::New(); shiftScaleFilter->SetOutputScal...")
- 03:03, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Images/Actor2D (content was: "= '''See [https://lorensen.github.io/VTKExamples/site/Cxx/Images/Actor2D Actor2D] on the new [https://lorensen.github.io/VTKExamples/site/ VTKExamples website].''' =")
- 03:03, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Images/BackgroundImage (content was: "<div class="floatright">File:VTK_Examples_Baseline_Images_TestBackgroundImage.png</div> This example displays an image as the "background" of a scene, and renders a superquadric in front of it. The example accepts a jpeg file on the command line to use as a background image. If there is no file, it generates a simple background. ==BackgroundImage.cxx== <source lang="cpp"> #include <vtkVersion.h> #include <vtkActor.h> #include <vtkCamera.h> #include <vtkImageCanvasSource2D...")
- 03:03, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Images/BorderPixelSize (content was: "<div class="floatcenter">File:VTK_Examples_Baseline_Images_TestBorderPixelSize.png</div> ==BorderPixelSize.cxx== <source lang="cpp"> #include <vtkVersion.h> #include <vtkImageData.h> #include <vtkSmartPointer.h> #include <vtkRenderWindow.h> #include <vtkRenderWindowInteractor.h> #include <vtkInteractorStyleImage.h> #include <vtkRenderer.h> #include <vtkImageMapper.h> #include <vtkImageSliceMapper.h> #include <vtkImageSlice.h> #include <vtkImageProperty.h> static void Creat...")
- 03:03, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Images/CannyEdgeDetector (content was: "<div class="floatright">File:VTK_Examples_Baseline_Images_TestCannyEdgeDetector.png</div> ==CannyEdgeDetector.cxx== <source lang="cpp"> #include <vtkVersion.h> #include <vtkRenderer.h> #include <vtkImageActor.h> #include <vtkStructuredPoints.h> #include <vtkSmartPointer.h> #include <vtkRenderWindow.h> #include <vtkRenderWindowInteractor.h> #include <vtkPNGReader.h> #include <vtkImageLuminance.h> #include <vtkProperty.h> #include <vtkImageGaussianSmooth.h> #include <vtkImage...")
- 03:03, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Images/Cast (content was: "<div class="floatright">File:VTK_Examples_Baseline_Images_TestCast.png</div> Cast an image to a different type. ==Cast.cxx== <source lang="cpp"> #include <vtkImageData.h> #include <vtkSmartPointer.h> #include <vtkImageCast.h> #include <vtkImageMapper3D.h> #include <vtkImageActor.h> #include <vtkImageMandelbrotSource.h> #include <vtkRenderWindow.h> #include <vtkRenderWindowInteractor.h> #include <vtkRenderer.h> #include <vtkInteractorStyleImage.h> int main(int, char *[]) {...")
- 03:03, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Images/CenterAnImage (content was: "<div class="floatright">File:VTK_Examples_Baseline_Images_TestCenterAnImage.png</div> This moves (0,0) from the bottom left corner of the image to the center of the image. ==CenterAnImage.cxx== <source lang="cpp"> #include <vtkVersion.h> #include <vtkSmartPointer.h> #include <vtkActor.h> #include <vtkBorderRepresentation.h> #include <vtkBorderWidget.h> #include <vtkCommand.h> #include <vtkImageActor.h> #include <vtkImageMapper3D.h> #include <vtkImageChangeInformation.h> #...")
- 03:03, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Images/CombineImages (content was: "<div class="floatright">File:VTK_Examples_Baseline_Images_TestCombineImages.png</div> This example takes two images and super imposes them. The opacity of each image can be set to control how they are combined. ==CombineImages.cxx== <source lang="cpp"> #include <vtkRenderWindow.h> #include <vtkRenderWindowInteractor.h> #include <vtkRenderer.h> #include <vtkJPEGReader.h> #include <vtkImageData.h> #include <vtkSmartPointer.h> #include <vtkImageViewer2.h> #include <vtkImageBl...")
- 03:03, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Images/CombiningRGBChannels (content was: "<div class="floatright">600px</div> This example creates three images of a square. Each square slightly overlaps the previous square. These three layers are then interpreted as the R, G, and B channel of an RGB image, by the use of {{class|vtkImageAppendComponents}}. Note that you MUST add 3 inputs or no output will be produced. For the reverse operation, see [[../ExtractComponents]]. ==CombiningRGBChannels.c...")
- 03:03, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Images/DotProduct (content was: "<div class="floatright">File:VTK_Examples_Baseline_Images_TestDotProduct.png</div> This example demonstrates how to take the pixel-wise dot product of two vector images. The output is a scalar image. Two images, each 2x2x1, are created and filled with 3-vectors. The dot product of each pair of corresponding pixels is produced by the vtkImageDotProduct filter and output to the screen. ==DotProduct.cxx== <source lang="cpp"> #include <vtkVersion.h> #include <vtkSmartPointer....")
- 03:03, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Images/DrawOnAnImage (content was: "<div class="floatright">300px</div> This example draws a circle in the center of the input image using {{class|vtkImageCanvasSource2D}}'s <code>DrawCircle</code> method. ==DrawOnAnImage.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkRenderWindow.h> #include <vtkRenderWindowInteractor.h> #include <vtkRenderer.h> #include <vtkJPEGReader.h> #include <vtkImageData.h> #include <vtkImageMapper3D.h> #include...")
- 03:03, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Images/DrawShapes (content was: "<div class="floatright">File:VTK_Examples_Baseline_Images_TestDrawingShapes.png</div> ==DrawShapes.cxx== <source lang="cpp"> #include <vtkRenderWindow.h> #include <vtkRenderWindowInteractor.h> #include <vtkRenderer.h> #include <vtkImageData.h> #include <vtkSmartPointer.h> #include <vtkImageViewer2.h> #include <vtkImageCanvasSource2D.h> int main(int, char *[]) { // Create a blank, black image vtkSmartPointer<vtkImageCanvasSource2D> drawing = vtkSmartPointer<vtkIma...")
- 03:03, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Images/ExtractComponents (content was: "<div class="floatright">600px</div> This example separates an image into the red channel, the green channel, and the blue channel using {{class|vtkImageExtractComponents}}. For the reverse operation, see [[../CombiningRGBChannels]]. ==ExtractComponents.cxx== <source lang="cpp" highlight="4,32-36,55-57,70,82-87,108"> #include <vtkImageData.h> #include <vtkJPEGReader.h> #include <vtkSmartPointer.h> #include <vtkIma...")
- 03:03, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Images/FillWindow (content was: "<div class="floatcenter">File:VTK_Examples_Baseline_Images_TestFillWindow.png</div> ==FillWindow.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkImageData.h> #include <vtkCamera.h> #include <vtkImageMandelbrotSource.h> #include <vtkRenderWindow.h> #include <vtkRenderWindowInteractor.h> #include <vtkInteractorStyleImage.h> #include <vtkRenderer.h> #include <vtkImageSlice.h> #include <vtkImageSliceMapper.h> #include <vtkImageCast.h> #include <vtkImageMappe...")
- 03:03, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Images/Flip (content was: "<div class="floatright">600px</div> This example demonstrates how to flip an image over an axis. Need a better source image (non-symmetrical!). ==Flip.cxx== <source lang="cpp"> #include <vtkImageData.h> #include <vtkImageCast.h> #include <vtkSmartPointer.h> #include <vtkImageMapper3D.h> #include <vtkImageFlip.h> #include <vtkRenderWindow.h> #include <vtkRenderWindowInteractor.h> #include <vtkInteractorStyleImage.h> #include <...")
- 03:03, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Images/Gradient (content was: "<div class="floatcenter">600px</div> Find the gradient vector of an image at every pixel. Display the original image, the x component of the gradient, the y component of the gradient, and the gradient itself. The example takes an optional .jpeg image file. * Thanks to Eric Monson. ==Gradient.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkVersion.h> #include <vtkImageData.h> #include <vtkDoubleArray....")
- 03:03, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Images/ImageAccumulate (content was: "==ImageAccumulate.cxx== <source lang="cpp"> * In this example, the resulting histogram has 6 pixels (all of them) in the 3rd bin (value = 2) and zero in the rest of the bins: #include <vtkVersion.h> #include <vtkImageAccumulate.h> #include <vtkImageData.h> #include <vtkSmartPointer.h> static void CreateImage(vtkSmartPointer<vtkImageData> image); int main(int, char *[] ) { vtkSmartPointer<vtkImageData> image = vtkSmartPointer<vtkImageData>::New(); CreateImage(image)...")
- 03:03, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Images/ImageAccumulateGreyscale (content was: "<div class="floatright">300px</div> ==ImageAccumulateGreyscale.cxx== <source lang="cpp"> #include <vtkActor.h> #include <vtkBarChartActor.h> #include <vtkFieldData.h> #include <vtkImageAccumulate.h> #include <vtkImageData.h> #include <vtkImageExtractComponents.h> #include <vtkIntArray.h> #include <vtkJPEGReader.h> #include <vtkLegendBoxActor.h> #include <vtkProperty2D.h> #include <vtkRenderer.h> #include <vt...")
- 03:03, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Points/PointOccupancy (content was: "<div class="floatright">File:VTK_Examples_Baseline_Points_TestPointOccupancy.png</div> '''NOTE: The classes used in this example require vtk 7.1 or later.''' ==PointOccupancy.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkPointSource.h> #include <vtkPLYReader.h> #include <vtkSTLReader.h> #include <vtkXMLPolyDataReader.h> #include <vtkOBJReader.h>...", and the only contributor was "Lorensen" (talk))
- 03:03, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Points/NormalEstimation (content was: "<div class="floatright">File:VTK_Examples_Baseline_Points_TestNormalEstimation.png</div> ==NormalEstimation.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkPCANormalEstimation.h> #include <vtkPointSource.h> #include <vtkSphereSource.h> #include <vtkArrowSource.h> #include <vtkGlyph3D.h> #include <vtkMath.h> #include <vtkPolyDataMapper.h> #include <...", and the only contributor was "Lorensen" (talk))
- 03:03, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Points/MaskPointsFilter (content was: "<div class="floatright">File:VTK_Examples_Baseline_Points_TestMaskPointsFilter.png</div> '''NOTE: The classes used in this example require vtk 7.1 or later.''' ==MaskPointsFilter.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkMaskPointsFilter.h> #include <vtkBoundedPointSource.h> #include <vtkImageData.h> #include <vtkCone.h> #include <vtkSampleI...", and the only contributor was "Lorensen" (talk))
- 03:03, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Points/FitImplicitFunction (content was: "<div class="floatright">File:VTK_Examples_Baseline_Points_TestFitImplicitFunction.png</div> ==FitImplicitFunction.cxx== <source lang="cpp"> #include <vtkSmartPointer.h> #include <vtkFitImplicitFunction.h> #include <vtkBoundedPointSource.h> #include <vtkSphere.h> #include <vtkSphereSource.h> #include <vtkGlyph3D.h> #include <vtkMath.h> #include <vtkPolyDataMapper.h> #i...", and the only contributor was "Lorensen" (talk))
- 03:03, 28 April 2021 Cquammen talk contribs deleted page VTK/Examples/Cxx/Points/ExtractSurfaceDemo (content was: "<div class="floatcenter">File:VTK_Examples_Baseline_Filters_TestExtractSurfaceDemo.png</div> This example loosely follows the most excellent paper by Curless and Levoy: [https://graphics.stanford.edu/papers/volrange "A Volumetric Method for Building Complex Models from Range Images."] First it estimates normals from the points, then creates a signed distance field, fol...", and the only contributor was "Lorensen" (talk))