![]() |
![]() |
|
|||||||
| Resources Scripts, samples, demos,... |
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
Attached is the zip file for two customize crop modules that I created and am currently updating and maintaining.
1) Custom Crop :: This module was created out of the need for two things in Avizo's current crop functionality. The first being a crop module that doesn't modify the original dataset. The second being a crop module that optionally crops by measurement (in this case, millimeters). It also crops (by default) by pixels (image pixels, not screen pixels) Features include: - Crop-by-pixel - Crop-by-measurement - Limited min and max values for both pixels and millimeters - Creates a new dataset This module was created mostly for the purpose of creating a new dataset. (The data we work with can become very large very quickly, and cloning a dataset to crop is often impractical) 2) Cube Crop :: This module was created out of the need to be able to view a small section, most typically a cube, of data, most typically bone. This module has the users input the X, Y, and Z coordinates of the center of the "cube" to be cropped, and the distance (or pixels) to the side. Features include: - Crop-by-pixel - Crop-by-measurement - Limited min and max values for both pixels and millimeters - Creates a new dataset - Crop-by-pixel creates a voxel-cubic dataset (e.g. 255x255x255) - Crop-by-measurement creates a "true-cubic" dataset (dimensions depend on voxel size, but will always create a true cube, by measurement) NOTICES (Compiled with Linux 64bit) - When this code is compiled, it will cause a WARNING regarding libcustomcrops.so. If this warning comes up, you MUST either run 'dso open "/DIRECTORY_TO/libcustomcrops.so" ' or 'dso addPath "/DIRECTORY_TO" ' for the module to be used. - If you do not run the dso open or dso addPath commands, when you try to Right-Click -> Local -> Custom Crop or Cube Crop, there will be an error regarding "Bad type" and "cannot find libcustomcrops.so" If you have any feedback, suggestions, or hate mail, please post here. There modules are in an early beta phase, and I am looking for any kind of feedback regarding module improvement.
__________________
Emmet Ludington Programming Consultant - The Pennsylvania State University emmet@psu.edu Last edited by EmmetL; 15th February 2010 at 16:43. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|