{"id":973,"date":"2016-06-30T15:05:32","date_gmt":"2016-06-30T22:05:32","guid":{"rendered":"https:\/\/live-optics-wp.pantheonsite.io\/milster\/?page_id=973"},"modified":"2016-06-30T15:11:41","modified_gmt":"2016-06-30T22:11:41","slug":"input-from-file","status":"publish","type":"page","link":"https:\/\/wp.optics.arizona.edu\/milster\/resources\/optiscan-simulation-program\/optiscan-help-desk\/index\/input-from-file\/","title":{"rendered":"Input From File"},"content":{"rendered":"<p>Allows you to import your own bmp or mat files.<\/p>\n<h3>Specifying a Mask (Step 1) :<\/h3>\n<p>The Add A Piece wizard supports the importation of 256 color BITMAP&#8217;s and Matlab &#8220;MAT&#8221; files. BITMAPS can be created by a BITMAP drawing program, such as Paint Brush.<\/p>\n<ul>\n<li>Note: 24-bit BTIMAP&#8217;s do NOT work. MAT files can be generated in MATLAB using the save command. Figure (B) shows a sample input mask that is stored in a BITMAP file.<\/li>\n<\/ul>\n<div id=\"attachment_957\" style=\"width: 519px\" class=\"wp-caption alignleft\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-957\" class=\"wp-image-957 size-full\" src=\"http:\/\/wp.optics.arizona.edu\/milster\/wp-content\/uploads\/sites\/48\/2016\/06\/addpiece_wizard.specify_input.gif\" alt=\"addpiece_wizard.specify_input\" width=\"509\" height=\"180\" data-id=\"957\" \/><p id=\"caption-attachment-957\" class=\"wp-caption-text\">A<\/p><\/div>\n<div id=\"attachment_953\" style=\"width: 62px\" class=\"wp-caption alignleft\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-953\" class=\"wp-image-953 size-full\" src=\"http:\/\/wp.optics.arizona.edu\/milster\/wp-content\/uploads\/sites\/48\/2016\/06\/addpiece_wizard.sample.input_.gif\" alt=\"addpiece_wizard.sample.input\" width=\"52\" height=\"25\" data-id=\"953\" \/><p id=\"caption-attachment-953\" class=\"wp-caption-text\">B<\/p><\/div>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>If a matrix is choosen, the Add A Piece Wizard will ask which matrix it should use:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-956\" src=\"http:\/\/wp.optics.arizona.edu\/milster\/wp-content\/uploads\/sites\/48\/2016\/06\/addpiece_wizard.select_matrix.gif\" alt=\"addpiece_wizard.select_matrix\" width=\"506\" height=\"246\" data-id=\"956\" \/><\/p>\n<hr \/>\n<h3>Specifying The Pieces Size (Step 2) :<\/h3>\n<p>The Piece Size window is where the size and location of the input mask is specified.<\/p>\n<p>The input mask will be re-interpolated based on the sampling of the mask it is being placed into.<\/p>\n<p>If the Full Window Button is clicked, then the input mask will replace the old mask entirely.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-951\" src=\"http:\/\/wp.optics.arizona.edu\/milster\/wp-content\/uploads\/sites\/48\/2016\/06\/addpiece_wizard.piece_window.gif\" alt=\"addpiece_wizard.piece_window\" width=\"528\" height=\"327\" data-id=\"951\" \/><\/p>\n<hr \/>\n<h3>Scaling The Mask (Step 3) :<\/h3>\n<p>The Bitmap Scaling scaling parameters specify the dynamic range of the mask.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-955\" src=\"http:\/\/wp.optics.arizona.edu\/milster\/wp-content\/uploads\/sites\/48\/2016\/06\/addpiece_wizard.scaling.gif\" alt=\"addpiece_wizard.scaling\" width=\"509\" height=\"95\" data-id=\"955\" \/><\/p>\n<p>One purpose of Bitmap Scaling is the addition of a phase factor to the input mask.<\/p>\n<hr \/>\n<h3>Saving The Updated Mask (Step 4):<\/h3>\n<p>The Bitmap Scaling scaling parameters specify the dynamic range of the mask.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-958\" src=\"http:\/\/wp.optics.arizona.edu\/milster\/wp-content\/uploads\/sites\/48\/2016\/06\/addpiece_wizard.specify_output.gif\" alt=\"addpiece_wizard.specify_output\" width=\"508\" height=\"178\" data-id=\"958\" \/><\/p>\n<p>The target file, for example, contains two masks:<\/p>\n<ul>\n<li><strong>tar_br<\/strong> &#8211; Bulk Reflection<\/li>\n<li><strong>tar_yy<\/strong> &#8211; Kerr Component<\/li>\n<\/ul>\n<p>If the Add Piece Wizard was used to modify the &#8220;Bulk Reflection&#8221; component, and then this modified mask is saved to a new file, then the Add Piece Wizard will copy the the missing mask (tar_yy) into the new file. Most mask files, however, just contain one mask.<\/p>\n<hr \/>\n<h3>Sample Output :<\/h3>\n<p>This is the mark inserted into the target&#8217;s &#8220;Bulk Reflection&#8221; mask&#8217;:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-954\" src=\"http:\/\/wp.optics.arizona.edu\/milster\/wp-content\/uploads\/sites\/48\/2016\/06\/addpiece_wizard.sample.output.gif\" alt=\"addpiece_wizard.sample.output\" width=\"402\" height=\"347\" data-id=\"954\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Allows you to import your own bmp or mat files. Specifying a Mask (Step 1) : The Add A Piece wizard supports the importation of 256 color BITMAP&#8217;s and Matlab &#8220;MAT&#8221; files. BITMAPS can be created by a BITMAP drawing program, such as Paint Brush. Note: 24-bit BTIMAP&#8217;s do NOT work. MAT files can be generated in MATLAB using the<\/p>\n","protected":false},"author":3,"featured_media":0,"parent":894,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-973","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/wp.optics.arizona.edu\/milster\/wp-json\/wp\/v2\/pages\/973","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wp.optics.arizona.edu\/milster\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/wp.optics.arizona.edu\/milster\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/wp.optics.arizona.edu\/milster\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/wp.optics.arizona.edu\/milster\/wp-json\/wp\/v2\/comments?post=973"}],"version-history":[{"count":4,"href":"https:\/\/wp.optics.arizona.edu\/milster\/wp-json\/wp\/v2\/pages\/973\/revisions"}],"predecessor-version":[{"id":977,"href":"https:\/\/wp.optics.arizona.edu\/milster\/wp-json\/wp\/v2\/pages\/973\/revisions\/977"}],"up":[{"embeddable":true,"href":"https:\/\/wp.optics.arizona.edu\/milster\/wp-json\/wp\/v2\/pages\/894"}],"wp:attachment":[{"href":"https:\/\/wp.optics.arizona.edu\/milster\/wp-json\/wp\/v2\/media?parent=973"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}