- Generative Adversarial Networks Projects
- Kailash Ahirwar
- 128字
- 2021-07-02 13:38:52
Visualizing a 3D image
Let's visualize a 3D image using matplotlib, as shown in the following code:
- Start by creating a matplotlib figure and adding a subplot to it:
fig = plt.figure()
ax = fig.gca(projection='3d')
ax.set_aspect('equal')
- Next, add voxels to the plot:
ax.voxels(voxels, edgecolor="red")
- Next, show the figure and save it as an image, so that we can visualize and understand it later:
plt.show()
plt.savefig(file_path)
The first screenshot represents an aircraft in a 3D plane:
The second screenshot represents a table in a 3D plane:

The third screenshot represents a chair in a 3D plane:

We have successfully downloaded, extracted, and explored the dataset. We have also looked at how to use voxels. In the next section, we will implement a 3D-GAN in the Keras framework.
推薦閱讀
- Word 2003、Excel 2003、PowerPoint 2003上機指導與練習
- 腦動力:C語言函數速查效率手冊
- 基于LabWindows/CVI的虛擬儀器設計與應用
- Getting Started with Oracle SOA B2B Integration:A Hands-On Tutorial
- 手把手教你玩轉RPA:基于UiPath和Blue Prism
- 21天學通Java
- Troubleshooting OpenVPN
- 我也能做CTO之程序員職業規劃
- 從零開始學PHP
- ESP8266 Robotics Projects
- Cloud Security Automation
- Introduction to R for Business Intelligence
- 玩機器人 學單片機
- PowerPoint 2010幻燈片制作高手速成
- 智能+:制造業的智能化轉型