資源簡介
ImageJ安裝包 ,不用安裝直接放到桌面,使用時直接打開exe文件即可。

代碼片段和文件信息
import?ij.*;
import?ij.process.*;
import?ij.gui.*;
import?java.awt.*;
import?java.awt.geom.*;
import?java.util.*;
import?ij.plugin.*;
import?ij.measure.*;
public?class?Grid_?implements?PlugIn?DialogListener?{
private?static?String[]?colors?=?{“Red““Green““Blue““Magenta““Cyan““Yellow““Orange““Black““White“};
private?static?String?color?=?“Cyan“;
private?final?static?int?LINES=0?HLINES=1?CROSSES=2?POINTS=3?NONE=4;
private?static?String[]?types?=?{“Lines““Horizontal?Lines“?“Crosses“?“Points“?“None“};
private?static?String?type?=?types[LINES];
private?static?double?areaPerPoint;
private?static?boolean?randomOffset;
private?Random?random?=?new?Random(System.currentTimeMillis());
private?ImagePlus?imp;
private?double?tileWidth?tileHeight;
private?int?xstart?ystart;
private?int?linesV?linesH;
private?double?pixelWidth=1.0?pixelHeight=1.0;
private?String?units?=?“pixels“;
public?void?run(String?arg)?{
if?(IJ.versionLessThan(“1.43u“)) ? return;
imp?=?IJ.getImage();
showDialog();
}
void?drawPoints()?{
int?one?=?1;
int?two?=?2;
GeneralPath?path?=?new?GeneralPath();
for(int?h=0;?h for(int?v=0;?v float?x?=?(float)(xstart+h*tileWidth);
float?y?=?(float)(ystart+v*tileHeight);
path.moveTo(x-two?y-one);?path.lineTo(x-two?y+one);
path.moveTo(x+two?y-one);?path.lineTo(x+two?y+one);
path.moveTo(x-one?y-two);?path.lineTo(x+one?y-two);
path.moveTo(x-one?y+two);?path.lineTo(x+one?y+two);
}
}
showGrid(path);
}
void?drawCrosses()?{
GeneralPath?path?=?new?GeneralPath();
float?arm??=?5;
for(int?h=0;?h for(int?v=0;?v float?x?=?(float)(xstart+h*tileWidth);
float?y?=?(float)(ystart+v*tileHeight);
path.moveTo(x-arm?y);
path.lineTo(x+arm?y);
path.moveTo(x?y-arm);
path.lineTo(x?y+arm);
}
}
showGrid(path);
}
void?showGrid(Shape?shape)?{
if?(shape==null)
imp.setOverlay(null);
else
imp.setOverlay(shape?getColor()?null);
}
void?drawLines()?{
GeneralPath?path?=?new?GeneralPath();
int?width?=?imp.getWidth();
int?height?=?imp.getHeight();
for(int?i=0;?i float?xoff?=?(float)(xstart+i*tileWidth);
path.moveTo(xoff0f);
path.lineTo(xoff?height);
}
for(int?i=0;?i float?yoff?=?(float)(ystart+i*tileHeight);
path.moveTo(0f?yoff);
path.lineTo(width?yoff);
}
showGrid(path);
}
void?drawHorizontalLines()?{
GeneralPath?path?=?new?GeneralPath();
int?width?=?imp.getWidth();
int?height?=?imp.getHeight();
for(int?i=0;?i float?yoff?=?(float)(ystart+i*tileHeight);
path.moveTo(0f?yoff);
path.lineTo(width?yoff);
}
showGrid(path);
}
void?showDialog()?{
int?width?=?imp.getWidth();
int?height?=?imp.getHeight();
Calibration?cal?=?imp.getCalibration();
int?places;
if?(cal.scaled())?{
pixelWidth?=?cal.pixelWidth;
pixelHeight?=?cal.pixelHeight;
units?=?cal.getUnit
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????1881669??2014-04-19?09:34??ImageJ\ij.jar
?????文件?????????90??2018-04-26?12:23??ImageJ\ImageJ.cfg
?????文件?????168448??2006-02-02?22:30??ImageJ\ImageJ.exe
?????文件???????2157??2014-04-19?09:38??ImageJ\README.html
?????文件?????????26??2008-03-04?06:31??ImageJ\run
?????文件???????2106??2012-06-25?03:12??ImageJ\ImageJ.app\Contents\Info.plist
?????文件??????????8??2003-10-28?22:53??ImageJ\ImageJ.app\Contents\PkgInfo
?????文件??????47744??2006-07-27?10:39??ImageJ\ImageJ.app\Contents\MacOS\JavaApplicationStub
?????文件??????51856??2004-05-13?05:31??ImageJ\ImageJ.app\Contents\MacOS\JavaApplicationStub-old
?????文件??????38257??2004-02-09?23:58??ImageJ\ImageJ.app\Contents\Resources\ImageJ.icns
?????文件?????????70??2006-03-03?05:15??ImageJ\ImageJ.app\Contents\Resources\Java\Where?is?ij.jar.txt
?????文件???????2216??2012-06-25?03:04??ImageJ\ImageJ64.app\Contents\Info.plist
?????文件??????????8??2003-10-28?22:53??ImageJ\ImageJ64.app\Contents\PkgInfo
?????文件??????14064??2007-09-29?14:53??ImageJ\ImageJ64.app\Contents\MacOS\JavaApplicationStub
?????文件??????38257??2004-02-09?23:58??ImageJ\ImageJ64.app\Contents\Resources\ImageJ.icns
?????文件????????768??2006-04-05?03:42??ImageJ\luts\16_Colors.lut
?????文件???????2438??2006-04-05?03:42??ImageJ\luts\5_Ramps.lut
?????文件????????768??2006-04-05?03:42??ImageJ\luts\6_Shades.lut
?????文件????????800??2006-04-05?03:42??ImageJ\luts\Blue_Orange_icb.lut
?????文件????????768??2006-04-05?03:42??ImageJ\luts\BRGBCMYW.lut
?????文件????????800??2006-04-05?03:42??ImageJ\luts\Cool.lut
?????文件????????768??2003-07-04?03:10??ImageJ\luts\Cyan_Hot.lut
?????文件????????800??2006-04-05?03:42??ImageJ\luts\Edges.lut
?????文件????????800??2006-04-05?03:42??ImageJ\luts\Gem.lut
?????文件???????3606??2010-06-10?08:24??ImageJ\luts\Glasbey.lut
?????文件????????768??2003-05-21?21:45??ImageJ\luts\Green_Fire_Blue.lut
?????文件????????768??2004-02-25?02:58??ImageJ\luts\HiLo.lut
?????文件????????768??2005-01-05?23:25??ImageJ\luts\ICA.lut
?????文件????????768??2005-01-05?23:24??ImageJ\luts\ICA2.lut
?????文件????????768??2004-12-01?01:54??ImageJ\luts\ICA3.lut
............此處省略210個文件信息
- 上一篇:嵌入式微系統msOS
- 下一篇:pr高級無縫轉場預設
評論
共有 條評論