Giter VIP home page Giter VIP logo

data-visualization-pj's Introduction

Data-Visualization-PJ

庄吓海老师数据可视化PJ,具体内容见pdf文件。主程序为GUI.py。操作系统为win7。python第三方库为vtk8.1.0。

我们主要运用了python中的vtk和pyqt5设计出一个交互界面。用户通过拖动控制点实现3D物体的形变,并且物体的形变数据可以保存为ffd文件。使用的算法是b样条函数和贝塞尔函数。

初始交互界面中默认背景是一个iphone6: Image text

然后在上方菜单栏中选择add obj file可以导入obj文件,我们随便选择一张,例如:zxh-ape.obj,效果如下: Image text

在菜单栏选择导入ffd形变文件之后,会生成包围住物体的红色控制点,效果如下: Image text

用户可以拖动控制点,实现物体的形变,例如拖动鼻子附近控制点会把鼻子拉长: Image text

菜单栏中的to ffd可以将用户的形变操作保存为ffd文件。

我们默认采用的是B样条算法,菜单栏中的to Bezier将改为使用贝塞尔形变算法。

菜单栏中最后一项开启聚光灯功能还有bug未修复,点击时可能会出现程序崩溃。

工具栏中的第一个按钮是去除控制点,只显示原来的物体。 第二个按钮是退出程序。

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.