What is claimed is:
1. A three-dimensional image data generation system comprising:
a hardware processor which, under control of a stored program, executes processes comprising:
an editing process of editing grayscale image data in which a density level for specifying a foaming height of a thermally expandable sheet is set for each coordinate in a planar direction; and
a conversion process of, when the editing process changes a size in the planar direction of an image region included in the grayscale image data, converting the density level in correspondence with a ratio of the image region between before and after the change,
wherein in a case where a density level in the grayscale image data after the conversion is expected to be not in a density level range in which a three-dimensional image is formable, the conversion process corrects and converts the density level so that the whole grayscale image data is in the density level range in which a three-dimensional image is formable.
2. The three-dimensional image data generation system according to claim 1 , wherein in a case where the density level in the grayscale image data after the conversion is expected to be distributed only in a part of the density level range in which a three-dimensional image is formable, the conversion process corrects and converts the density level so that the whole grayscale image data is distributed throughout the whole density level range in which a three-dimensional image is formable.
3. The three-dimensional image data generation system according to claim 1 , wherein the conversion process corrects and converts the density level so that a density distribution of the grayscale image data is in a predetermined density level range.
4. The three-dimensional image data generation system according to claim 3 , wherein the conversion process linearly corrects and converts the density level so that an upper limit and a lower limit of the density level range in which a three-dimensional image is formable are respectively an upper limit and a lower limit of the predetermined density level range.
5. The three-dimensional image data generation system according to claim 3 , wherein the conversion process corrects and converts the density level so that a density level change at a predetermined position in a density level range is more noticeable.
6. The three-dimensional image data generation system according to claim 1 , wherein the conversion process sets data exceeding a density level 0 as a conversion target and excludes data of the density level 0 from the conversion target, from among density levels in the grayscale image data.
7. A three-dimensional image data generation method comprising:
editing grayscale image data in which a density level for specifying a foaming height of a thermally expandable sheet is set for each coordinate in a planar direction; and
when the editing changes a size in the planar direction of an image region included in the grayscale image data, converting the density level in correspondence with a ratio of the image region between before and after the change,
wherein in a case where a density level in the grayscale image data after the conversion is expected to be not in a density level range in which a three-dimensional image is formable, the converting corrects and converts the density level so that the whole grayscale image data is in the density level range in which a three-dimensional image is formable.
8. The three-dimensional image data generation method according to claim 7 , wherein in a case where the density level in the grayscale image data after the conversion is expected to be distributed only in a part of the density level range in which a three-dimensional image is formable, the converting corrects and converts the density level so that the whole grayscale image data is distributed throughout the whole density level range in which a three-dimensional image is formable.
9. The three-dimensional image data generation method according to claim 7 , wherein the converting corrects and converts the density level so that a density distribution of the grayscale image data is in a predetermined density level range.
10. The three-dimensional image data generation method according to claim 9 , wherein the converting linearly corrects and converts the density level so that an upper limit and a lower limit of the density level range in which a three-dimensional image is formable are respectively an upper limit and a lower limit of the predetermined density level range.
11. The three-dimensional image data generation method according to claim 7 , wherein the converting sets data exceeding a density level 0 as a conversion target and excludes data of the density level 0 from the conversion target, from among density levels in the grayscale image data.
12. A non-transitory computer-readable recording medium having stored thereon a program executable by a computer of a three-dimensional image data generation system, the program causing the computer to perform a procedure comprising:
an editing process of editing grayscale image data in which a density level for specifying a foaming height of a thermally expandable sheet is set for each coordinate in a planar direction; and
a conversion process of, when a size in the planar direction of an image region included in the grayscale image data is changed, converting the density level in correspondence with a ratio of the image region between before and after the change,
wherein in a case where a density level in the grayscale image data after the conversion is expected to be not in a density level range in which a three-dimensional image is formable, the conversion process corrects and converts the density level so that the whole grayscale image data is in the density level range in which a three-dimensional image is formable.
13. The non-transitory computer-readable recording medium according to claim 12 , wherein in a case where the density level in the grayscale image data after the conversion is expected to be distributed only in a part of the density level range in which a three-dimensional image is formable, the conversion process corrects and converts the density level so that the whole grayscale image data is distributed throughout the whole density level range in which a three-dimensional image is formable.
14. The non-transitory computer-readable recording medium according to claim 12 , wherein the conversion process corrects and converts the density level so that a density distribution of the grayscale image data is in a predetermined density level range.
15. The non-transitory computer-readable recording medium according to claim 14 , wherein the conversion process linearly corrects and converts the density level so that an upper limit and a lower limit of the density level range in which a three-dimensional image is formable are respectively an upper limit and a lower limit of the predetermined density level range.
16. The non-transitory computer-readable recording medium according to claim 14 , wherein the conversion process corrects and converts the density level so that a density level change at a predetermined position in a density level range is more noticeable.
17. The non-transitory computer-readable recording medium according to claim 12 , wherein the conversion process sets data exceeding a density level 0 as a conversion target and excludes data of the density level 0 from the conversion target, from among density levels in the grayscale image data.