protected void addListeners(
final GenericDialog gd,
final Vector<?> tf,
final Label label,
final long[] dim )
{
final TextField downsample = (TextField)tf.get( 2 );
downsample.addTextListener(
new TextListener()
{
@Override
public void textValueChanged(TextEvent arg0)
{
int downsampling = Integer.parseInt( downsample.getText() );
final long numPixels = numPixels( dim, downsampling );
final long megabytes = (numPixels * 4) / (1024*1024);
label.setText( "Image size for segmentation: " +
(dim[ 0 ])/downsampling + " x " +
(dim[ 1 ])/downsampling + " x " +
(dim[ 2 ])/downsampling + " pixels, " + megabytes + " MB" );
label.setForeground( GUIHelper.good );
}
} );
}
AutomaticBoundingBox.java 文件源码
java
阅读 31
收藏 0
点赞 0
评论 0
项目:SPIM_Registration
作者:
评论列表
文章目录