วันพฤหัสบดีที่ 27 เมษายน พ.ศ. 2560

New Plugin การสร้าง plugin ใหม่ในโปรแกรม ImageJ

Plugin

เปิดหน้าต่างว่างพร้อมด้วย prototype plugin สำหรับ implement plugin สำหรับ เปิด คัดลอก และสร้างรูปภาพ prototype จะแสดงคำว่า Hello world! กดปุ่ม Ctrl R (File->Run Macro) เพื่อคอมไพล์ และสั่งให้ทำงาน  หมายเหตุ ชื่อของ plugin ควรประกอบด้วย underscroe อย่างน้อย 1ตัว ดูเพิ่มเติม https://imagej.nih.gov/ij/plugins/steps.html


ตัวอย่าง หน้าเว็บ Step Maker ประกอบด้วย

Author:
Wayne Rasband (wayne@codon.nih.gov)
History:
2000/8/24: First version
2002/05/15: Added ip.resetMinAndMax() so 16 and 32 bit images would display correctly
Requirements:
ImageJ 1.18p or later
Source:
Step_Maker.java
Installation:
Download Step_Maker.class to the plugins folder and restart ImageJ.
Description:
This plugin shows how to use the ImageProcessor.setValue() method to generate test images using all four data types supported by ImageJ (unsigned byte, unsigned short, float and RGB).


ตัวอย่างการใช้เมนู

1. เปิดเมนู



2. หน้าต่างการทำงาน


ไม่มีความคิดเห็น:

แสดงความคิดเห็น