Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
eyes:logics:createimage [2017/06/09 13:52]
jschlie1 created
eyes:logics:createimage [2017/06/09 14:37] (current)
jschlie1
Line 1: Line 1:
 ====== CreateImage ====== ====== CreateImage ======
-This logic creates simple arbitrary ​1D, 2D or 3D (geometric) objects of a specified size. These objects can be used as example data or masks during image processing. The objects are binary, which means that all pixel values are either set to one (white pixel) or zero (black pixel).+This logic creates simple arbitrary 2D or 3D (geometric) objects of a specified size. These objects can be used as example data or masks during image processing. The objects are binary, which means that all pixel values are either set to one (white pixel) or zero (black pixel).
  
 ===== Usage ===== ===== Usage =====
-Will create an image of a geometrical object with pixel values of 1. The created shape or volume is either mass-centered or x/y/z shifted (in pixel) relative to the center of the canvas/​volume. ​ +Will create an image of a geometrical object with pixel values of 1. The created shape or volume is either mass-centered or x/y/z shifted (in pixel) relative to the center of the canvas/​volume, if the respective parameters are setTo mask any image or volume with the created image/​volume,​ create a “mask” with this CreateImage logic, setting the same dimensions (DimX/Y/Z) as your original image(s) / volume(s) which is/are to be masked. Subject the output of this logic to the [[eyes:​logics:​arithmeticswithtwoimages]] logic to multiply (a stack of) image(s)/ volume(s) with your mask. Areas which are black (pixel value 0) within the mask image/​volume will be erased from the original image(s) / volume(s). ​
- +
-===== Example ==== +
-FIXME+
  
 ===== Parameters and I/O ===== ===== Parameters and I/O =====
-==== thisIsTheNameOfMode1 ==== +Several types of shapes/volumes may be created
-Here, a short introduction for the given mode should be placed. Again, state WHAT and WHY this mode us useful in not more than 2 sentences. +
- +
-|< 100% 30% >| +
-^ Parameters ​                ^ Description ​    ^ +
-| Some changeable parameter ​ | Description ​of this parameter | +
-| -> and its sub-parameter ​  | more description | +
-| Next main parameter ​       | and more more more | +
-| -> and its sub-parameter ​  | ... descriptions | +
- +
-|< 100% 30% >| +
-^ Input   ^ Description ^ +
-| FirstInput ​ | Input Description 1 | +
-| SecondInput | Input Description 2 | +
-//​ThirdInput// ​ | Input Description 3Optional Input in Italic | +
- +
-|< 100% 30% >| +
-^ Output ​  ^ Description ^ +
-| FirstOutput | Output Description | +
- +
-|< 100% 30% >| +
-^ New/Changed Header Values ^ Description ^ +
-| headerValue1 | what does it say? how is it changed? | +
-| headerValue2 | what does it say? how is it changed? | +
-| headerValue3 | what does it say? how is it changed? | +
-| headerValue4 | what does it say? how is it changed? | +
- +
-==== thisIsTheNameOfMode2 ==== +
-Here, a short introduction for the given mode should be placed. Again, state WHAT and WHY this mode us useful in not more than 2 sentences. +
- +
-|< 100% 30% >| +
-^ Parameters ​                ^ Description ​    ^ +
-| Some changeable parameter ​ | Description of this parameter | +
-| -> and its sub-parameter ​  | more description | +
-| Next main parameter ​       | and more more more | +
-| -> and its sub-parameter ​  | ... descriptions | +
- +
-|< 100% 30% >| +
-^ Input   ^ Description ^ +
-| FirstInput ​ | Input Description 1 | +
-| SecondImput | Input Description 2 | +
-| ThridImput ​ | Input Description 1 |+
  
 |< 100% 30% >| |< 100% 30% >|
-Output ​  Description ​+Shape                 Dimensionality ​
-FirstOutput ​Output Description ​|+disc                  ​2D             |  
 +| sphere ​               | 3D             |  
 +| rectangle ​            | 2D             |  
 +| cuboid ​               | 3D             |  
 +| cylinder ​             | 3D             
  
 |< 100% 30% >| |< 100% 30% >|
-New/Changed Header Values ​^ Description ^ +Parameters ​             ​^ Description ​    ​
-headerValue1 ​what does it say? how is it changed? ​+Image size X            ​Size of canvas/​volume in x direction ​      | 
-headerValue2 ​what does it say? how is it changed? ​+| Image size Y            | Size of canvas/​volume in y direction ​      | 
-headerValue3 ​what does it say? how is it changed? ​+| Image size Z            | Size of canvas/​volume in z direction ​      | 
-headerValue4 ​what does it say? how is it changed? ​|+| Depth [percent/​pixel] ​  | Depth of created object in pixels or percent of the total canvas/​volume size (z-axis) | 
 +| Height [percent/​pixel] ​ | Height of created object in pixels or percent of the total canvas/​volume size (y-axis) | 
 +| Width [percent/​pixel] ​  | Width of created object in pixels or percent of the total canvas/​volume size (x-axis) ​
 +X shift from center ​    Shift on x-axis in pixel, can be positive and negative regarding the direction ​
 +Y shift from center ​    Shift on y-axis in pixel, can be positive and negative regarding the direction ​
 +Z shift from center ​    Shift on y-axis in pixel, can be positive and negative regarding the direction ​|
  
-===== Concept ===== 
-In this paragraph, the "HOW a logic works under the hood" and WHY someone should use it can be elaborated with higher detail. Describes a scenario in an image processing workflow where this logic can be used to solve the resulting problem. Also, wikipages, publications or anything else describing the theory behind an algorithm should be linked here, if applicable.