-
Notifications
You must be signed in to change notification settings - Fork 13
/
copy.txt
67 lines (39 loc) · 1.89 KB
/
copy.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
.. _copy:
copy
****
There are 2 forms of this command.
:code:`copy(input image, output image)`
=======================================
Copies input image to output image. If pixel data types are not the same, performs conversion.
This command can be used in the distributed processing mode. Use :ref:`distribute` command to change processing mode from local to distributed.
Arguments
---------
input image [input]
~~~~~~~~~~~~~~~~~~~
**Data type:** uint8 image, uint16 image, uint32 image, uint64 image, int8 image, int16 image, int32 image, int64 image, float32 image, complex32 image
Input image.
output image [output]
~~~~~~~~~~~~~~~~~~~~~
**Data type:** uint8 image, uint16 image, uint32 image, uint64 image, float32 image, int8 image, int16 image, int32 image, int64 image, complex32 image
Output image.
:code:`copy(source image, target image, location)`
==================================================
Copies pixel values from source image to target image to specified location. The size of the target image is not changed and out-of-bounds pixels are not copied. See also :ref:`set` command.
This command cannot be used in the distributed processing mode. If you need it, please contact the authors.
Arguments
---------
source image [input]
~~~~~~~~~~~~~~~~~~~~
**Data type:** uint8 image, uint16 image, uint32 image, uint64 image, int8 image, int16 image, int32 image, int64 image, float32 image, complex32 image
Image that is copied to the target image.
target image [output]
~~~~~~~~~~~~~~~~~~~~~
**Data type:** uint8 image, uint16 image, uint32 image, uint64 image, int8 image, int16 image, int32 image, int64 image, float32 image, complex32 image
Image whose values are set.
location [input]
~~~~~~~~~~~~~~~~
**Data type:** 3-component integer vector
Location where the target image is placed in the source image.
See also
--------
:ref:`scale`, :ref:`bin`, :ref:`maskedbin`, :ref:`scalelabels`