Skip to content

A Python script for placing a 3D patch at a specified point within a larger 3D volume, with cropping

Notifications You must be signed in to change notification settings

hasannasirkhan/3D-Patch-Placement

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

3D-Patch-Placement

A Python script for placing a 3D patch at a specified point within a larger 3D volume, with cropping

Overview

This script allows you to place a 3D patch at a specific point within a larger 3D volume. It's useful for tasks like medical imaging, data augmentation, and more.

Example

image link

Features

  • Place a 3D patch centered around a specified point in a larger volume.
  • Automatically handle boundary conditions and cropping.

Usage

  1. Clone this repository: git clone https://github.com/your-username/3D-Patch-Placement.git
  2. Install required libraries (numpy, matplotlib): pip install numpy matplotlib
  3. Replace patch_data with your own patch data in the script.
  4. Adjust center_point and desired_output_shape if necessary.
  5. Run the script: python 3d_patch_placement.py

Contributing

Feel free to contribute by opening issues or pull requests. If you have suggestions or improvements, please let us know!

Author:

Hasan Nasir Khan (hasannasirk@gmail.com)

About

A Python script for placing a 3D patch at a specified point within a larger 3D volume, with cropping

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages