<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://www.yasunaga-lab.bio.kyutech.ac.jp/Eos/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://www.yasunaga-lab.bio.kyutech.ac.jp/Eos/index.php?action=history&amp;feed=atom&amp;title=lmrcImageROI2D%28API%29</id>
		<title>lmrcImageROI2D(API) - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://www.yasunaga-lab.bio.kyutech.ac.jp/Eos/index.php?action=history&amp;feed=atom&amp;title=lmrcImageROI2D%28API%29"/>
		<link rel="alternate" type="text/html" href="http://www.yasunaga-lab.bio.kyutech.ac.jp/Eos/index.php?title=lmrcImageROI2D(API)&amp;action=history"/>
		<updated>2026-05-14T12:07:37Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.23.6</generator>

	<entry>
		<id>http://www.yasunaga-lab.bio.kyutech.ac.jp/Eos/index.php?title=lmrcImageROI2D(API)&amp;diff=3793&amp;oldid=prev</id>
		<title>Kinoshita: Created page with &quot;DataManip/mrcImage/src/'''lmrcImageROI2D''' is API to cut out ROI file(2D). Mainly, it is used by mrcImageROI, mrcImageROIs. Also this API is used, when part of image...&quot;</title>
		<link rel="alternate" type="text/html" href="http://www.yasunaga-lab.bio.kyutech.ac.jp/Eos/index.php?title=lmrcImageROI2D(API)&amp;diff=3793&amp;oldid=prev"/>
				<updated>2014-09-03T00:46:26Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;DataManip/mrcImage/src/&amp;#039;&amp;#039;&amp;#039;lmrcImageROI2D&amp;#039;&amp;#039;&amp;#039; is API to cut out ROI file(2D). Mainly, it is used by &lt;a href=&quot;/Eos/index.php/mrcImageROI&quot; title=&quot;mrcImageROI&quot;&gt;mrcImageROI&lt;/a&gt;, &lt;a href=&quot;/Eos/index.php/mrcImageROIs&quot; title=&quot;mrcImageROIs&quot;&gt;mrcImageROIs&lt;/a&gt;. Also this API is used, when part of image...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;DataManip/mrcImage/src/'''lmrcImageROI2D''' is API to cut out ROI file(2D). Mainly, it is used by [[mrcImageROI]], [[mrcImageROIs]]. Also this API is used, when part of image data needs for calculation. e.g. [[mrcImageAutoRotationCorrelation]]&lt;br /&gt;
== constant ==&lt;br /&gt;
It is used as value of Shape(lmrcImageSingleROIInfo's member).&lt;br /&gt;
 typedef enum lmrcImageROIShape {&lt;br /&gt;
 	Rect   =0,&lt;br /&gt;
 	Rect2  =1,&lt;br /&gt;
 	Circle =2,&lt;br /&gt;
 	Line   =3&lt;br /&gt;
 } lmrcImageROIShape;&lt;br /&gt;
&lt;br /&gt;
== struct ==&lt;br /&gt;
Setting data of lmrcImageSingleROI. By using lmrcImageROIsInformationGet, ROI Information in file is read, and store it.&lt;br /&gt;
 typedef struct lmrcImageROIsInfo {&lt;br /&gt;
 	lmrcImageSingleROIInfo* ROI;&lt;br /&gt;
 	int                numROI;&lt;br /&gt;
 } lmrcImageROIsInfo;&lt;br /&gt;
&lt;br /&gt;
Setting data of each ROI Information.&lt;br /&gt;
 typedef struct lmrcImageSingleROIInfo {&lt;br /&gt;
 	char* FileName;&lt;br /&gt;
 	lmrcImageROIShape Shape;&lt;br /&gt;
 	float centerx;     /* For All Shape */&lt;br /&gt;
 	float centery;     &lt;br /&gt;
 	float blx;         /* For Rect, Rect2, Circle */&lt;br /&gt;
 	float bly;&lt;br /&gt;
 	float brx;&lt;br /&gt;
 	float bry;&lt;br /&gt;
 	float trx;&lt;br /&gt;
 	float try;&lt;br /&gt;
 	float tlx;&lt;br /&gt;
 	float tly;&lt;br /&gt;
 	float startx;      /* For Line */&lt;br /&gt;
 	float starty;&lt;br /&gt;
 	float endx; &lt;br /&gt;
 	float endy;&lt;br /&gt;
 &lt;br /&gt;
 	/* For Post Modification */&lt;br /&gt;
 	int flagWidth;     /* For Rect, Rect2, Circle, Line */&lt;br /&gt;
 	float width;&lt;br /&gt;
 	int flagHeight;    /* For Rect, Rect2, Circle */&lt;br /&gt;
 	float height; &lt;br /&gt;
 &lt;br /&gt;
 	float radius;&lt;br /&gt;
 	int mode;&lt;br /&gt;
 &lt;br /&gt;
 	int flagRotation;&lt;br /&gt;
 	float angle;&lt;br /&gt;
 &lt;br /&gt;
 	int flagMagnifiedWidth;&lt;br /&gt;
 	float magnifiedWidth;&lt;br /&gt;
 &lt;br /&gt;
 	int flagMagnifiedHeight;&lt;br /&gt;
 	float magnifiedHeight;&lt;br /&gt;
 &lt;br /&gt;
 	int flagNonPeriodic;&lt;br /&gt;
 	/* For Layer Line Information */&lt;br /&gt;
 	int flagLayerLine;&lt;br /&gt;
 	float truePitch;&lt;br /&gt;
 	float Ly;&lt;br /&gt;
 	float dY;&lt;br /&gt;
 } lmrcImageSingleROIInfo;&lt;br /&gt;
&lt;br /&gt;
== API ==&lt;br /&gt;
===Read ROI Information===&lt;br /&gt;
Read Setting data in file, and store at ROI Information('''linfo''').&lt;br /&gt;
 extern void lmrcImageROIsInformationGet(FILE* fpt, lmrcImageROIsInfo* linfo); &lt;br /&gt;
&lt;br /&gt;
===ROI file===&lt;br /&gt;
Cut out ROI file depending on ROI Information('''linfo''') in Input file('''in''').&lt;br /&gt;
 extern void lmrcImageSingleROI(mrcImage* out, mrcImage* in, lmrcImageSingleROIInfo* linfo, int mode);&lt;/div&gt;</summary>
		<author><name>Kinoshita</name></author>	</entry>

	</feed>