摘要 |
A device includes a processor and a memory configured to store computer-readable instructions that, when executed by the processor, cause the device to perform processes that include acquiring image data, extracting one or more first pixels, arranging one or more first line segments in one or more first positions, determining one or more first colors, connecting the one or more first line segments, arranging one or more second line segments in one or more second positions such that none of the one or more second line segments overlaps with any one of the one or more first positions, determining one or more second colors, connecting the one or more second line segments, and creating embroidery data based on the connected one or more first line segments and on the connected one or more second line segments. |
主权项 |
1. A device, comprising:
a processor; and a memory configured to store computer-readable instructions that, when executed by the processor, cause the device to perform processes comprising:
acquiring image data, the image data including data for a physical quantity indicating respective colors of a plurality of pixels;extracting, based on the image data, one or more first pixels from among the plurality of pixels, each of the one or more first pixels being a pixel for which a physical quantity indicating a color of the pixel is different, by at least a specified amount, from a physical quantity indicating a color of an adjacent pixel;arranging one or more first line segments in one or more first positions respectively corresponding to the one or more first pixels;determining one or more first colors respectively corresponding to the one or more first line segments, based on one or more respective colors of the one or more first pixels;connecting the one or more first line segments for each of the one or more first colors;arranging one or more second line segments in one or more second positions respectively corresponding to one or more second pixels such that none of the one or more second line segments overlaps with any one of the one or more first positions, the one or more second pixels being one or more pixels, among the plurality of pixels, other than the one or more first pixels;determining one or more second colors respectively corresponding to the one or more second line segments, based at least on one or more respective colors of the one or more second pixels;connecting the one or more second line segments for each of the one or more second colors; andcreating embroidery data based on the one or more first line segments connected for each of the one or more first colors and on the one or more second line segments connected for each of the one or more second colors, the embroidery data indicating one or more first stitches and one or more second stitches and indicating that the one or more first stitches are sewn before the one or more second stitches, the one or more first stitches respectively corresponding to the one or more first line segments, and the one or more second stitches respectively corresponding to the one or more second line segments. |