VSG Logo   Avizo Forum

Go Back   Avizo Forum > Resources

Resources Scripts, samples, demos,...

Reply
 
Thread Tools Display Modes
  #1  
Old 14th July 2009, 20:02
EmmetL EmmetL is offline
Senior Member
 
Join Date: Jul 2009
Location: The Pennsylvania State University
Posts: 10
Default Custom Crop Modules (HxUniformScalarField3)

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.
Attached Files
File Type: zip CropPackage.zip (9.1 KB, 11 views)
__________________
Emmet Ludington
Programming Consultant - The Pennsylvania State University
emmet@psu.edu

Last edited by EmmetL; 15th February 2010 at 16:43.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 17:45.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
Copyright VSG SAS, 2008.