?? segmentedimagegroup.java
字號:
//===========================================================================//=-------------------------------------------------------------------------=//= Module history: =//= - August 21 2006 - Oscar Chavarro: Original base version =//===========================================================================package scivis;import java.util.ArrayList;import vsdk.toolkit.media.IndexedColorImage;/**A `SegmentedImageGroup` is the segmented image set equivalent to the normalimage set contained in a `TimeTake`. A `SegmentedImageGroup` is closelyrelated to its owning `TimeTake`, and for each image in the later, shouldbe another (possibly null) in the former. One TimeTake can have multiple`SegmentedImageGroup`s, as each is limited to only 256 segment labels.*/public class SegmentedImageGroup{ private ArrayList<IndexedColorImage> segmentedImagesArray; private ArrayList <StartPointPosition> startingPositionsArray; public SegmentedImageGroup() { segmentedImagesArray = new ArrayList <IndexedColorImage>(); startingPositionsArray = new ArrayList<StartPointPosition>(); } public void setSegmentedImageAt(IndexedColorImage img, int relativeSlice, int xpos, int ypos) { while ( segmentedImagesArray.size() <= relativeSlice ) { segmentedImagesArray.add(null); } segmentedImagesArray.set(relativeSlice, img); StartPointPosition p = new StartPointPosition(xpos, ypos); startingPositionsArray.set(relativeSlice, p); }}//===========================================================================//= EOF =//===========================================================================
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -