Changes between Version 21 and Version 22 of Tutorial/ProjectionObjects


Ignore:
Timestamp:
Apr 12, 2021, 9:51:49 PM (4 years ago)
Author:
sommeria
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Tutorial/ProjectionObjects

    v21 v22  
    22
    33= [wiki:Tutorial] / Projection objects =
    4 Projection objects are used in various ways for image or field analysis, as shown in the following examples. Let us choose now a color image as input, UVMAT_DEMO02_color/images/frame1.jpg' (the folder 'UVMAT_DEMO02_color' is accessible on http://servforge.legi.grenoble-inp.fr/pub/soft-uvmat/).
     4Projection objects are used in various ways for image or field analysis, as shown in the following examples. Let us choose now a color image as input, UVMAT_DEMO02_color/images/frame1.jpg'.
    55
    66== Plotting a luminosity profile ==
    7 Create a line by the menu bar command '''[Projection object/line]'''. A new GUI '''set_object''' appears on the right side, with default settings '''[Type]'''='line', '''[!ProjMode]'''='projection'. Draw a line with the mouse, left hand side button to mark the beginning and end of the line. The luminosity profile, with the three rgb image components, appears in a new GUI '''view_field'''. The following figure shows the main GUI '''uvmat''', the GUI '''set_object''' which sets the object parameters, and the GUI '''view_field''' where the projected field is plotted:
     7Create a line by the menu bar command '''[Projection object/line]'''. A new GUI '''set_object''' appears on the right side, with default settings '''[Type]'''='line', '''[!ProjMode]'''='projection'. Draw a line with the mouse, press and release the left hand side button to mark the beginning and end of the line. The luminosity profile, with the three rgb image components, appears in a new GUI '''view_field'''. The following figure shows the main GUI '''uvmat''', the GUI '''set_object''' which sets the object parameters, and the GUI '''view_field''' where the projected field is plotted:
    88
    99[[Image(set_object.jpg)]]
     
    1717
    1818== Resampling the image ==
    19 The image can be resampled by linear interpolation of image luminosity on a grid, by selecting '''[Projection object/plane]'''. Then on the GUI '''set_object''', select 'interp_lin' in the menu '''[!ProjMode]'''. Set the mesh in x and y by the edit boxes '''[num_DX]''' and '''[num_DY]''', for instance with values 10, and press '''[REFRESH]'''. The image interpolated on this coarse grid is then displayed. It is also possible to reduce the range of x and y by the edit boxes '''[num_RangeX_1]''' and '''_2''' and '''[num_RangeY_1]''' and '''_2'''. Finally it is also possible to rotate a projection plane by setting the angle (in degrees) in the edit box '''[num_Angle_3'''].
     19The image can be resampled by linear interpolation of image luminosity on a grid, by selecting '''[Projection object/plane_xy]'''. Then on the GUI '''set_object''', select 'interp_lin' in the menu '''[!ProjMode]'''. Set the mesh in x and y by the edit boxes '''[num_DX]''' and '''[num_DY]''', for instance with values 10, and press '''[REFRESH]'''. The image interpolated on this coarse grid is then displayed. It is also possible to reduce the range of x and y by the edit boxes '''[num_RangeX_1]''' and '''_2''' and '''[num_RangeY_1]''' and '''_2'''. Finally it is also possible to rotate a projection plane by setting the angle (in degrees) in the edit box '''[num_Angle_3'''].