[go: up one dir, main page]

TWI818426B - Image generation method - Google Patents

Image generation method Download PDF

Info

Publication number
TWI818426B
TWI818426B TW111103665A TW111103665A TWI818426B TW I818426 B TWI818426 B TW I818426B TW 111103665 A TW111103665 A TW 111103665A TW 111103665 A TW111103665 A TW 111103665A TW I818426 B TWI818426 B TW I818426B
Authority
TW
Taiwan
Prior art keywords
picture
pattern
block
generation method
patterns
Prior art date
Application number
TW111103665A
Other languages
Chinese (zh)
Other versions
TW202331641A (en
Inventor
黃英俊
Original Assignee
黃英俊
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 黃英俊 filed Critical 黃英俊
Priority to TW111103665A priority Critical patent/TWI818426B/en
Publication of TW202331641A publication Critical patent/TW202331641A/en
Application granted granted Critical
Publication of TWI818426B publication Critical patent/TWI818426B/en

Links

Landscapes

  • Image Generation (AREA)
  • Magnetic Resonance Imaging Apparatus (AREA)
  • Ultra Sonic Daignosis Equipment (AREA)
  • Diaphragms For Electromechanical Transducers (AREA)

Abstract

一種圖片產生方法,包含下列步驟:A. 取得一第一圖案數量及複數個第一填入單元;B. 取得一圖片;C. 在圖片中定義一區塊生成範圍;D. 在區塊生成範圍內生成至少一封閉區塊;E. 將所生成的至少一封閉區塊中填入一第一填入單元,以形成一圖案;F. 重覆步驟C至E直到所形成的圖案之數量達到第一圖案數量,以形成一第一圖片。藉此,可自動產生具有圖案的圖片。A picture generation method, including the following steps: A. Obtaining a first pattern quantity and a plurality of first filling units; B. Obtaining a picture; C. Defining a block generation range in the picture; D. Generating in the block Generate at least one closed block within the range; E. Fill the generated at least one closed block with a first filling unit to form a pattern; F. Repeat steps C to E until the number of patterns formed The first number of patterns is reached to form a first picture. In this way, pictures with patterns can be automatically generated.

Description

圖片產生方法Image generation method

本發明係與圖片處理有關;特別是指一種圖片產生方法。The present invention relates to image processing; in particular, it refers to a method for generating images.

傳統上的具有圖案的圖片係由人類所繪製,例如以畫具繪製或電腦軟體繪製,藉由圖片上的多個圖案的組合及排列方式而產生視覺上的美感,讓圖片可作為美術品供人欣賞,或可印製於衣服、鞋子、背包等物件上。Traditionally, pictures with patterns are drawn by humans, such as with painting tools or computer software. The combination and arrangement of multiple patterns on the picture create visual beauty, allowing the picture to be used as a work of art. Enjoy it or print it on clothes, shoes, backpacks and other items.

由於傳統的圖片由人類所繪製,因此,圖片的產出時間較長。並且,圖片的著作權大多屬於圖片的創作人,若他人欲使用圖片,需經創作人的授權方可合法使用,例如需支付圖片的授權金給創作者,或者向創作者買斷圖片。Since traditional pictures are drawn by humans, the production of pictures takes a long time. Moreover, most copyrights of pictures belong to the creator of the picture. If others want to use the picture, they must obtain authorization from the creator before they can use it legally. For example, they need to pay the creator a license fee for the picture, or buy out the picture from the creator.

傳統上由圖片產生至取得圖片將耗費較久的時間成本與金錢成本。Traditionally, it takes a long time and money to produce the image and obtain it.

有鑑於此,本發明之目的在於提供一種圖片產生方法,可以取代人類自行繪製圖片,減少取得圖片所需的成本。In view of this, the purpose of the present invention is to provide a picture generation method that can replace human beings in drawing pictures by themselves and reduce the cost of obtaining pictures.

緣以達成上述目的,本發明提供的一種圖片產生方法,包含下列步驟:A. 取得一第一圖案數量及複數個第一填入單元;B. 取得一圖片;C. 在圖片中定義一區塊生成範圍;D. 在區塊生成範圍內生成至少一封閉區塊;E. 將所生成的至少一封閉區塊中填入一第一填入單元,以形成一圖案;F. 重覆步驟C至E直到所形成的圖案之數量達到第一圖案數量,以形成一第一圖片。In order to achieve the above purpose, the present invention provides a picture generation method, which includes the following steps: A. Obtaining a first pattern quantity and a plurality of first filling units; B. Obtaining a picture; C. Defining an area in the picture Block generation range; D. Generate at least one closed block within the block generation range; E. Fill the generated at least one closed block with a first filling unit to form a pattern; F. Repeat the steps C to E until the number of patterns formed reaches the first number of patterns to form a first picture.

本發明之效果在於,可自動產生具有圖案的圖片,取代人類自行繪製圖片,有效減少取得圖片所需的時間及金錢成本。The effect of the present invention is that it can automatically generate pictures with patterns, instead of humans drawing pictures by themselves, and effectively reduce the time and money costs required to obtain pictures.

為能更清楚地說明本發明,茲舉較佳實施例並配合圖式詳細說明如後。請參圖1所示,為本發明第一較佳實施例之圖片產生方法的流程圖,該圖片產生方法係由一電腦系統所執行,電腦系統至少包括一運算裝置,運算裝置可例如個人電腦、筆記型電腦、工作站、平板電腦、手機、伺服器等可執行運算的電子裝置。該圖片產生方法包含下列步驟:In order to illustrate the present invention more clearly, the preferred embodiments are described in detail below along with the drawings. Please refer to FIG. 1 , which is a flow chart of an image generating method according to a first preferred embodiment of the present invention. The image generating method is executed by a computer system. The computer system at least includes a computing device. The computing device may be, for example, a personal computer. , laptops, workstations, tablets, mobile phones, servers and other electronic devices that can perform calculations. The image generation method includes the following steps:

步驟S01:取得一第一圖案數量及複數個第一填入單元。如圖2所示,在運算裝置所連接的一螢幕上顯示一使用者介面10,讓使用選填入所需要的第一圖案數量,並且以調色盤的介面讓使用者點選或框選調色盤上的複數個填入塊102作為所需要的第一填入單元,例如用滑鼠的左鍵選取第一填入單元的填入塊102。藉此,即可取得該第一圖案數量及該些第一填入單元。本實施例中,該些塊入填102包括單色、多重顏色、漸層色、灰階、材質、圖形、圖樣,因此,各該第一填入單元為單色、多重顏色、漸層色、灰階、材質、圖形、以及圖樣之一者。於使用者點選「輸出」的按鈕圖像104後,進行圖片的生成。此外,於本實施例中,使用者介面10更提供了讓使用者選擇所要產生的圖片的數量。Step S01: Obtain a first pattern number and a plurality of first filling units. As shown in Figure 2, a user interface 10 is displayed on a screen connected to the computing device, allowing the user to fill in the required number of first patterns, and using a color palette interface to allow the user to click or select a frame. A plurality of filling blocks 102 on the color palette serve as the required first filling unit. For example, use the left button of a mouse to select the filling block 102 of the first filling unit. In this way, the first pattern quantity and the first filling units can be obtained. In this embodiment, the block filling 102 includes single color, multiple colors, gradient colors, gray scales, materials, graphics, and patterns. Therefore, each first filling unit is a single color, multiple colors, or gradient colors. , grayscale, material, graphics, and one of patterns. After the user clicks the "Output" button image 104, the image is generated. In addition, in this embodiment, the user interface 10 further allows the user to select the number of images to be generated.

步驟S02:取得一圖片。本實施例中,係採用空白內容的圖片,如圖3所示,該圖片12係由複數個畫素所構成,例如水平畫素×垂直畫素為3360×3840,當然亦可由使用者自訂畫素。在一實施例中,該圖片12亦可為使用者選擇的已經有內容的圖片。Step S02: Obtain a picture. In this embodiment, a picture with blank content is used, as shown in Figure 3. The picture 12 is composed of a plurality of pixels, for example, horizontal pixels × vertical pixels are 3360 × 3840. Of course, it can also be customized by the user. pixels. In one embodiment, the picture 12 may also be a picture selected by the user that already has content.

步驟S03:在該圖片12中定義一區塊生成範圍14。本實施例中,係在該圖片12中隨機選擇一區域定義為該區塊生成範圍14。Step S03: Define a block generation range 14 in the picture 12. In this embodiment, an area is randomly selected in the picture 12 to be defined as the block generation range 14 .

步驟S04:在該區塊生成範圍14內生成至少一封閉區塊。請配合圖4,其中(a)至(c)示出本實施例中產生封閉區塊16的步驟。本實施例中,係於該區塊生成範圍14內生成二錨定點18與至少一節點20,依據該二錨定點18與該至少一節點20形成該至少一封閉區塊16。更詳而言,錨定點18與節點20的位置是隨機生成(圖4(a)參照),再依據該二錨定點18與該至少一節點20形成以一樣條(spline)22為例的曲線(圖4(b)參照)但不以此為限,再將該二錨定點18之間連線,以形成該至少一封閉區塊16(圖4(c)參照),於圖4(c)中該二錨定點18之間以直線連線,但不以此為限。錨定點18與節點20只是用於說明產生封閉區塊16,不會在圖片中顯示。曲線亦可為弧線、貝茲曲線。Step S04: Generate at least one closed block within the block generation range 14. Please refer to FIG. 4 , in which (a) to (c) illustrate the steps of generating the closed block 16 in this embodiment. In this embodiment, two anchor points 18 and at least one node 20 are generated within the block generation range 14 , and the at least one closed block 16 is formed based on the two anchor points 18 and the at least one node 20 . More specifically, the positions of the anchor points 18 and the nodes 20 are randomly generated (see Figure 4(a) ), and then a curve taking a spline 22 as an example is formed based on the two anchor points 18 and the at least one node 20 (Refer to Figure 4(b)) But not limited to this, connect the two anchor points 18 to form the at least one closed block 16 (Refer to Figure 4(c)), as shown in Figure 4(c) ), the two anchor points 18 are connected by a straight line, but it is not limited to this. Anchor point 18 and node 20 are only used to illustrate the generation of closed block 16 and will not be shown in the picture. The curve can also be an arc or a Bezier curve.

上述中節點20的數量亦可是隨機決定為一個、二個或二個以上,如圖5所示為隨機生成二個節點20,且兩個節點20是在該二錨定點18的直線連線的相對兩側,藉此,可形成二個封閉區塊16。The number of nodes 20 mentioned above can also be randomly determined to be one, two or more. As shown in Figure 5, two nodes 20 are randomly generated, and the two nodes 20 are connected by a straight line between the two anchor points 18. Opposite sides, thereby forming two closed sections 16 .

亦可如圖6所示,在該區塊生成範圍14內選擇另外至少一節點24,並依據該二錨定點18與該另外至少一節點24形成一樣條26為例的曲線作為該二錨定點18之間的連線,而形成封閉區塊16。在一實施例中,亦可如圖7(a)至(c)所示,為依據該二錨定點18與該至少一節點20形成二條直線,再將兩個錨定點18以直線連接,形成三角形的封閉區塊16。As shown in FIG. 6 , at least one other node 24 can be selected within the block generation range 14 , and the two anchor points 18 and the at least one other node 24 form a line 26 as the two anchor points. 18 to form a closed block 16. In one embodiment, as shown in Figure 7 (a) to (c), in order to form two straight lines based on the two anchor points 18 and the at least one node 20, the two anchor points 18 are then connected with a straight line to form Triangular closed block 16.

步驟S05:復如圖4(d)所示,將所生成的該至少一封閉區塊16中填入一該第一填入單元28,以形成以一圖案30。本實施例中,係由步驟S01中使用者所選擇的該些第一填入單元中隨機選擇一者填入封閉區塊16。本實施例中,封閉區塊16的邊線不在圖片中顯示,在填入第一填入單元28後,封閉區塊16的邊線即可隱藏或刪去。於其它實施例中,封閉區塊16的邊線亦可保留在圖片中。Step S05: As shown in FIG. 4(d), fill the generated at least one closed block 16 with the first filling unit 28 to form a pattern 30. In this embodiment, one of the first filling units selected by the user in step S01 is randomly selected to fill in the closed block 16 . In this embodiment, the edges of the closed block 16 are not displayed in the picture. After the first filling unit 28 is filled in, the edges of the closed block 16 can be hidden or deleted. In other embodiments, the edges of the closed region 16 may also remain in the picture.

步驟S06:重覆步驟S03至S05直到所形成的圖案30之數量達到該第一圖案數量,以形成一第一圖片32(圖8參照)。將第一圖片32儲存於一儲存媒體成為一圖片檔。本實施例中,請配合圖9,在重覆步驟S03至S05的過程中,可以允許當次於步驟S03中所選擇的該區塊生成範圍14與在其之前的一次或多次的步驟S03中所選擇的該區塊生成範圍14有至少一部分重疊,使得當次步驟S05所生成的圖案30覆蓋在其之前的一次或多次的步驟S05所生成的圖案30’的至少一部分。藉此,可以讓所生成的圖案30, 30’有部分重疊,增加第一圖片的美感。較佳者每次生成的圖案30具有不同於前次生成的圖案30的尺寸、形狀。Step S06: Repeat steps S03 to S05 until the number of formed patterns 30 reaches the first number of patterns to form a first picture 32 (refer to FIG. 8 ). The first picture 32 is stored in a storage medium as a picture file. In this embodiment, please refer to Figure 9. In the process of repeating steps S03 to S05, the block generation range 14 selected in step S03 can be allowed to be different from one or more previous step S03. The selected block generation range 14 overlaps at least partially, so that the pattern 30 generated in the current step S05 covers at least a part of the pattern 30' generated in one or more previous steps S05. In this way, the generated patterns 30 and 30' can be partially overlapped, thereby increasing the beauty of the first picture. Preferably, the pattern 30 generated each time has a size and shape different from the pattern 30 generated last time.

之後,本實施例的圖片產生方法更包含,重覆步驟S01至S06複數次,以得到複數個該第一圖片32,34,36(圖8、10、11),且該些第一圖片32,34,36彼此的圖案的位置與形狀不同。本實施例中,係可由使用者介面中的所輸入的圖片數量決定要重覆的次數,以輸入3張為例,則總共產生3張第一圖片32,34,36。藉此,即可得到具有不同圖案的第一圖片32,34,36。After that, the picture generation method of this embodiment further includes repeating steps S01 to S06 a plurality of times to obtain a plurality of first pictures 32, 34, 36 (Figures 8, 10, 11), and the first pictures 32 ,34,36 The positions and shapes of each other’s patterns are different. In this embodiment, the number of repetitions can be determined by the number of pictures input in the user interface. Taking the input of 3 pictures as an example, a total of 3 first pictures 32, 34, 36 will be generated. In this way, the first pictures 32, 34, and 36 with different patterns can be obtained.

圖12為本發明第二較佳實施例的圖片產生方法,其係以第一實施例之步驟S01至S05為基礎,更包含:Figure 12 is a picture generation method according to the second preferred embodiment of the present invention, which is based on steps S01 to S05 of the first embodiment, and further includes:

取得一第二圖案數量及複數個第二填入單元。請配合圖13,於本實施例中係在步驟S01中更包含,在使用者介面10’中可以填入所需要的第二圖案的數量,而第二填入單元的選擇可例如使滑鼠方右鍵在調色盤的介面點選或框選所需要的第二填入單元的填入塊102。藉此即可取得該第二圖案數量及該些第二填入單元。各該第二填入單元為單色、多重顏色、漸層色、灰階、材質、圖形、以及圖樣之一者。於使用者點選「輸出」的按鈕圖像104後,進行圖片的生成。當然取得該第二圖案數量及該些第二填入單元之步驟亦可在步驟S06之後執行。Obtain a second pattern quantity and a plurality of second filling units. Please cooperate with Figure 13. In this embodiment, step S01 further includes that the required number of second patterns can be filled in the user interface 10', and the selection of the second filling unit can be, for example, using a mouse. Right-click or select the filling block 102 of the required second filling unit in the palette interface. Thereby, the second pattern quantity and the second filling units can be obtained. Each second filling unit is one of single color, multiple colors, gradient color, gray scale, material, graphics, and pattern. After the user clicks the "Output" button image 104, the image is generated. Of course, the step of obtaining the second pattern number and the second filling units can also be performed after step S06.

步驟S07:如圖14所示,在該第一圖片40中定義另一區塊生成範圍42,圖14中第一圖片40以兩個圖案30作為示意。本步驟與步驟S03大致相同,差別在於,係在該第一圖片40中選擇一區域定義為該另一區塊生成範圍42。Step S07: As shown in FIG. 14, define another block generation range 42 in the first picture 40. In FIG. 14, the first picture 40 is illustrated by two patterns 30. This step is substantially the same as step S03 , except that an area is selected in the first picture 40 to be defined as another block generation range 42 .

步驟S08:在該另一區塊生成範圍42內生成至少另一封閉區塊44。本步驟與步驟S04大致相同,差別在於,在該另一區塊生成範圍42內生成該至少另一封閉區塊44。Step S08: Generate at least another closed block 44 within the another block generation range 42. This step is substantially the same as step S04 , except that the at least one other closed block 44 is generated within the other block generation range 42 .

步驟S09:將所生成的該至少另一封閉區塊44中填入一該第二填入單元46,以形成另一圖案48。本步驟與步驟S05大致相同,差別在於,在該至少另一封閉區塊44中填入該第二填入單元46,該另一封閉區塊44的邊線可以保留或刪去。該另一圖案48覆蓋於原本第一圖片40中的圖案30的一部分之上,且有部分重疊,增加第二圖片的美感。Step S09: Fill the generated at least another closed block 44 with the second filling unit 46 to form another pattern 48. This step is substantially the same as step S05 , except that the second filling unit 46 is filled in the at least one other closed block 44 , and the edges of the other closed block 44 can be retained or deleted. The other pattern 48 covers a part of the original pattern 30 in the first picture 40 and partially overlaps, thereby increasing the beauty of the second picture.

步驟S10:重覆步驟S07至S09直到所形成的該另一圖案48之數量達到該第二圖案數量,以形成一第二圖片50(圖15參照)。將第二圖片50儲存於儲存媒體成為一圖片檔。在重覆步驟S07至S09的過程中,可以允許當次於步驟S07中所選擇的該另一區塊生成範圍42與在其之前的一次或多次的步驟S09中所選擇的該另一區塊生成範圍42有至少一部分重疊,使得當次步驟S09所生成的該另一圖案48覆蓋在其之前的一次或多次的步驟S09所生成的該另一圖案48的至少一部分。藉此,可以讓所生成的該另一圖案48有部分重疊,增加第二圖片的美感。Step S10: Repeat steps S07 to S09 until the number of the other patterns 48 formed reaches the second pattern number, so as to form a second picture 50 (refer to FIG. 15). The second picture 50 is stored in the storage medium as a picture file. In the process of repeating steps S07 to S09, it is possible to allow the generation range 42 of another block selected in step S07 to be the same as the another area selected in step S09 one or more times before it. At least a part of the block generation range 42 overlaps, so that the other pattern 48 generated in the current step S09 covers at least a part of the another pattern 48 generated in one or more previous steps S09 . Thereby, the generated another pattern 48 can be partially overlapped, thereby increasing the beauty of the second picture.

之後,本實施例的圖片產生方法更包含,重覆步驟S01至S10複數次,以得到複數個該第二圖片50,52,54(圖15、16、17),且該些第二圖片50,52,54彼此的該圖案與該另一圖案的位置與形狀不同。本實施例中,係可由使用者介面10’中的所輸入的圖片數量決定要重覆的次數,以輸入3張為例,則總共產生3張第二圖片50,52,54。藉此,即可得到具有不同圖案的第二圖片50,52,54。After that, the picture generation method of this embodiment further includes repeating steps S01 to S10 a plurality of times to obtain a plurality of second pictures 50, 52, 54 (Figures 15, 16, and 17), and the second pictures 50 ,52,54 The position and shape of the pattern and the other pattern are different from each other. In this embodiment, the number of repetitions can be determined by the number of pictures input in the user interface 10'. Taking input of 3 pictures as an example, a total of 3 second pictures 50, 52, 54 will be generated. In this way, second pictures 50, 52, and 54 with different patterns can be obtained.

在本發明的第三較佳實施例中亦可如圖18所示,所形成第一圖片56或第二圖片58上的圖案60具有不同類型的形狀。形狀可例如由使用者選定的一形狀資料集中隨機選擇,形成封閉區塊後再隨機填入使用者選定的第一填色單元或第二填色單元。In the third preferred embodiment of the present invention, as shown in FIG. 18 , the patterns 60 formed on the first picture 56 or the second picture 58 have different types of shapes. For example, the shape can be randomly selected from a shape data set selected by the user, and then a closed block is formed and then randomly filled in the first color-filling unit or the second color-filling unit selected by the user.

圖19所示為本發明第四較佳實施例之電腦系統70,該電腦系統70包含一或多個終端裝置72與一運算裝置74,本實施例中以一個終端裝置72為例。該終端裝置72與該運算裝置74透過網路76連接,網路76可為網際網路或區域網路。該終端裝置72例如是個人電腦、筆記型電腦、平板電腦、手機等可連接網路76的終端裝置72。該運算裝置74例如是工作站、伺服器等可連接網路的運算裝置74,且其運算效能優於終端裝置72。Figure 19 shows a computer system 70 according to the fourth preferred embodiment of the present invention. The computer system 70 includes one or more terminal devices 72 and a computing device 74. In this embodiment, one terminal device 72 is taken as an example. The terminal device 72 and the computing device 74 are connected through a network 76, which may be the Internet or a local area network. The terminal device 72 is, for example, a terminal device 72 capable of connecting to the network 76 such as a personal computer, a notebook computer, a tablet computer, and a mobile phone. The computing device 74 is, for example, a workstation, a server, or other computing device 74 that can be connected to the network, and its computing performance is better than that of the terminal device 72 .

本實施例的電腦系統70用以執行與第一實施例大致相同的圖片產生方法,不同的是:The computer system 70 of this embodiment is used to perform substantially the same image generation method as the first embodiment, except that:

在步驟S01中,係由該終端裝置72將該第一圖案數量及該些第一填入單元28經由網路76傳送至該運算裝置74,且由該運算裝置74取得該第一圖案數量及該些第一填入單元28。本實施例中,終端裝置72以手機為例,於其螢幕722(可為觸控螢幕)上顯示如圖2所示的使用者介面10,供使用者輸入該第一圖案數量及該些第一填入單元28,而後終端裝置72將使用者輸入的該第一圖案數量及該些第一填入單元28傳送到運算裝置。In step S01, the terminal device 72 transmits the first pattern number and the first filling units 28 to the computing device 74 via the network 76, and the computing device 74 obtains the first pattern number and the first filling units 28. The first filling cells 28. In this embodiment, the terminal device 72 takes a mobile phone as an example, and displays the user interface 10 as shown in FIG. 2 on its screen 722 (which may be a touch screen) for the user to input the first pattern number and the third pattern number. A filling unit 28, and then the terminal device 72 transmits the first pattern number input by the user and the first filling units 28 to the computing device.

之後,由運算裝置74執行步驟S02至S06,以形成第一圖片。或者運算裝置再重覆步驟S01至S06複數次,以得到複數個該第一圖片。Afterwards, the computing device 74 executes steps S02 to S06 to form the first picture. Or the computing device repeats steps S01 to S06 a plurality of times to obtain a plurality of first pictures.

該運算裝置74將所產生的一個或多個該第一圖片經由該網路76傳送至該終端裝置72。The computing device 74 transmits the generated one or more first pictures to the terminal device 72 via the network 76 .

藉此,可以減輕終端裝置72的運算負擔。Thereby, the computing load of the terminal device 72 can be reduced.

在本發明第五較佳實施例中,同樣可以使用第四較佳實施例之電腦系統70執行第二實施例的圖片產生方法,不同的是,由該終端裝置72將該第一圖案數量、該些第一填入單元28、該第二圖案數量、該些第二填入單元46經由網路76傳送至該運算裝置74。之後,由運算裝置74續執行步驟S01至步驟S10,或者運算裝置74再重覆步驟S01至S10複數次,以得到一或多個第二圖片。In the fifth preferred embodiment of the present invention, the computer system 70 of the fourth preferred embodiment can also be used to execute the picture generating method of the second embodiment. The difference is that the terminal device 72 converts the first pattern number, The first filling units 28 , the second pattern number, and the second filling units 46 are transmitted to the computing device 74 via the network 76 . Thereafter, the computing device 74 continues to execute steps S01 to S10, or the computing device 74 repeats steps S01 to S10 a plurality of times to obtain one or more second pictures.

該運算裝置74將所產生的一個或多個該第二圖片經由該網路76傳送至該終端裝置72。實務上,該運算裝置74亦可不將第一圖片傳送至該終端裝置72。The computing device 74 transmits the generated one or more second pictures to the terminal device 72 via the network 76 . In practice, the computing device 74 may not send the first picture to the terminal device 72 .

另外,第四較佳實施例之電腦系統70亦可用以執行第三實施例的圖片產生方法。In addition, the computer system 70 of the fourth preferred embodiment can also be used to execute the image generation method of the third embodiment.

據上所述,本發明之圖片產生方法可自動產生具有不同圖案圖片,可以取代人類自行繪製圖片,並可減少取得圖片所需的時間及金錢的成本。According to the above, the picture generation method of the present invention can automatically generate pictures with different patterns, can replace human beings from drawing pictures by themselves, and can reduce the time and money costs required to obtain pictures.

以上所述僅為本發明較佳可行實施例而已,舉凡應用本發明說明書及申請專利範圍所為之等效變化,理應包含在本發明之專利範圍內。The above are only the best possible embodiments of the present invention. Any equivalent changes made by applying the description and patent scope of the present invention should be included in the patent scope of the present invention.

10:使用者介面 10':使用者介面 102:填入塊 104:按鈕圖像 12:圖片 14:區塊生成範圍 16:封閉區塊 18:錨定點 20:節點 22:樣條 24:另外至少一節點 26:樣條 28:第一填入單元 30:圖案 30':圖案 32:第一圖片 36:第一圖片 38:第一圖片 40:第一圖片 42:區塊生成範圍 44:封閉區塊 46:第二填入單元 48:圖案 50:第二圖片 52:第二圖片 54:第二圖片 56:第一圖片 58:第二圖片 60:圖案 70:電腦系統 72:終端裝置 722:螢幕 74:運算裝置 76:網路 S01~S10:步驟 10:User interface 10':User interface 102: Fill in block 104:Button image 12:Pictures 14: Block generation range 16: Closed block 18: anchor point 20:node 22:Spline 24:At least one other node 26:Spline 28: The first filling unit 30: Pattern 30':Pattern 32:First picture 36:First picture 38:First picture 40:First picture 42: Block generation range 44: Closed block 46: Second filling unit 48:Pattern 50:Second picture 52: Second picture 54:Second picture 56:First picture 58:Second picture 60: Pattern 70:Computer system 72:Terminal device 722:Screen 74:Computing device 76:Internet S01~S10: steps

圖1為本發明第一較佳實施例之圖片產生方法的流程圖。 圖2為本發明第一較佳實施例之使用者介面的示意圖。 圖3為本發明第一較佳實施例之圖片的示意圖。 圖4為本發明第一較佳實施例之產生封閉區塊及圖案的示意圖。 圖5為本發明第一較佳實施例之另一個產生封閉區塊的示意圖。 圖6為本發明第一較佳實施例之另一個產生封閉區塊的示意圖。 圖7為本發明另一較佳實施例之產生封閉區塊的示意圖。 圖8為本發明第一較佳實施例之一第一圖片。 圖9為本發明第一較佳實施例之產生的圖案重疊的示意圖。 圖10為本發明第一較佳實施例之另一第一圖片。 圖11為本發明第一較佳實施例之又一第一圖片。 圖12為本發明第二較佳實施例之圖片產生方法的流程圖。 圖13為本發明第二較佳實施例之使用者介面的示意圖。 圖14為本發明第二較佳實施例之在第一圖片上產生另一圖案的示意圖。 圖15為本發明第二較佳實施例之一第二圖片。 圖16為本發明第二較佳實施例之另一第二圖片。 圖17為本發明第二較佳實施例之又一第二圖片。 圖18為本發明第三較佳實施例之一第一圖片或第二圖片的示意圖。 圖19為本發明第四較佳實施例之電腦系統的示意圖。 Figure 1 is a flow chart of a picture generation method according to the first preferred embodiment of the present invention. FIG. 2 is a schematic diagram of the user interface of the first preferred embodiment of the present invention. Figure 3 is a schematic diagram of a picture of the first preferred embodiment of the present invention. FIG. 4 is a schematic diagram of generating closed blocks and patterns according to the first preferred embodiment of the present invention. FIG. 5 is another schematic diagram of generating a closed block according to the first preferred embodiment of the present invention. FIG. 6 is another schematic diagram of generating a closed block according to the first preferred embodiment of the present invention. FIG. 7 is a schematic diagram of generating closed blocks according to another preferred embodiment of the present invention. Figure 8 is a first picture of the first preferred embodiment of the present invention. FIG. 9 is a schematic diagram of pattern overlay produced in the first preferred embodiment of the present invention. Figure 10 is another first picture of the first preferred embodiment of the present invention. Figure 11 is another first picture of the first preferred embodiment of the present invention. Figure 12 is a flow chart of a picture generation method according to the second preferred embodiment of the present invention. Figure 13 is a schematic diagram of the user interface of the second preferred embodiment of the present invention. FIG. 14 is a schematic diagram of generating another pattern on the first picture according to the second preferred embodiment of the present invention. Figure 15 is a second picture of the second preferred embodiment of the present invention. Figure 16 is another second picture of the second preferred embodiment of the present invention. Figure 17 is yet another second picture of the second preferred embodiment of the present invention. Figure 18 is a schematic diagram of a first picture or a second picture according to the third preferred embodiment of the present invention. Figure 19 is a schematic diagram of a computer system according to the fourth preferred embodiment of the present invention.

S01~S06:步驟S01~S06: Steps

Claims (12)

一種圖片產生方法,包含下列步驟:A.取得一第一圖案數量及複數個第一填入單元;B.取得一圖片;C.在該圖片中定義一區塊生成範圍;D.在該區塊生成範圍內生成至少一封閉區塊;其中,步驟D中係於該區塊生成範圍內隨機生成二錨定點與至少一節點,依據該二錨定點與該至少一節點形成一曲線,再將該二錨定點之間連線,以形成該至少一封閉區塊;E.將所生成的該至少一封閉區塊中填入一該第一填入單元,以形成一圖案;F.重覆步驟C至E直到所形成的圖案之數量達到該第一圖案數量,以形成一第一圖片。 A picture generation method, including the following steps: A. Obtain a first pattern number and a plurality of first filling units; B. Obtain a picture; C. Define a block generation range in the picture; D. In the area At least one closed block is generated within the block generation range; wherein, in step D, two anchor points and at least one node are randomly generated within the block generation range, and a curve is formed based on the two anchor points and the at least one node, and then A line is connected between the two anchor points to form the at least one closed block; E. Fill the generated at least one closed block with the first filling unit to form a pattern; F. Repeat Steps C to E are performed until the number of patterns formed reaches the first number of patterns to form a first picture. 如請求項1所述之圖片產生方法,其中該曲線為一樣條(spline)。 The image generation method as described in claim 1, wherein the curve is a spline. 如請求項1所述之圖片產生方法,其中步驟D中係將該二錨定點之間以直線連線,而形成該至少一封閉區塊。 The image generation method of claim 1, wherein in step D, the two anchor points are connected with a straight line to form the at least one closed block. 如請求項1所述之圖片產生方法,其中步驟D係再選擇另外至少一節點,並依據該二錨定點與該另外至少一節點形成一曲線作為該二錨定點之間的連線,而形成該至少一封閉區塊。 The image generation method as described in claim 1, wherein step D is to select at least one other node and form a curve based on the two anchor points and the at least one other node as a connection line between the two anchor points. The at least one closed block. 如請求項1所述之圖片產生方法,其中步驟C中係在該圖片中隨機選擇一區域定義為該區塊生成範圍。 The picture generation method as described in claim 1, wherein in step C, an area is randomly selected in the picture to define the block generation range. 如請求項5所述之圖片產生方法,其中當次於步驟C中所選擇的該區塊生成範圍與在其之前的步驟C中所選擇的該區塊生成範圍 有至少一部分重疊,使得當次步驟E所生成的圖案覆蓋在其之前的步驟E所生成的圖案的至少一部分。 The image generation method as described in claim 5, wherein the block generation range selected in step C is the same as the block generation range selected in step C before it. There is at least a partial overlap, so that the pattern generated in the current step E covers at least a part of the pattern generated in the previous step E. 如請求項1所述之圖片產生方法,其中步驟E中係由該些第一填入單元中隨機選擇一該第一填入單元並填入該至少一封閉區塊中。 The image generation method as described in claim 1, wherein in step E, one of the first filling units is randomly selected from the first filling units and filled in the at least one closed block. 如請求項1所述之圖片產生方法,包含重覆步驟A至F複數次,以得到複數個該第一圖片,且該些第一圖片彼此的圖案的位置與形狀不同。 The picture generating method of claim 1 includes repeating steps A to F a plurality of times to obtain a plurality of first pictures, and the positions and shapes of the patterns of the first pictures are different from each other. 如請求項1所述之圖片產生方法,包含取得一第二圖案數量及複數個第二填入單元;在步驟F之後更包含:G.在該第一圖片中定義另一區塊生成範圍;H.在該另一區塊生成範圍內生成至少另一封閉區塊;I.將所生成的該至少另一封閉區塊中填入一該第二填入單元,以形成另一圖案;J.重覆步驟G至I直到所形成的該另一圖案之數量達到該第二圖案數量,以形成一第二圖片。 The image generation method as described in claim 1 includes obtaining a second pattern quantity and a plurality of second filling units; after step F, it further includes: G. defining another block generation range in the first image; H. Generate at least another closed block within the generation range of the other block; I. Fill the generated at least another closed block with the second filling unit to form another pattern; J. .Repeat steps G to I until the number of formed another patterns reaches the number of second patterns to form a second picture. 如請求項9所述之圖片產生方法,包含重覆步驟A至J複數次,以得到複數個該第二圖片,且該些第二圖片彼此的該圖案及該另一圖案的位置與形狀不同。 The picture generation method as described in claim 9, including repeating steps A to J a plurality of times to obtain a plurality of second pictures, and the positions and shapes of the pattern and the other pattern of the second pictures are different from each other. . 如請求項1所述之圖片產生方法,其中,各該第一填入單元為單色、多重顏色、漸層色、灰階、材質、圖形、以及圖樣之一者。 The image generation method as described in claim 1, wherein each first filling unit is one of single color, multiple colors, gradient color, gray scale, material, graphics, and pattern. 如請求項1所述的圖片產生方法,其中,步驟A中係由一終端裝置將該第一圖案數量及該些第一填入單元經由一網路傳送至 一運算裝置,且由該運算裝置取得該第一圖案數量及該些第一填入單元;步驟B中,係由該運算裝置取得該圖片;步驟C中,係由該運算裝置在該圖片中定義該區塊生成範圍;步驟D中,係由該運算裝置在該區塊生成範圍內生成該至少一封閉區塊;步驟E中,係由該運算裝置將所生成的該至少一封閉區塊中填入一該第一填入單元,以形成該圖案;步驟F中,係由該運算裝置重覆步驟C至E直到所形成的圖案之數量達到該第一圖案數量,以形成該第一圖片;步驟F之後更包含,由該運算裝置將該第一圖片經由該網路傳送至該終端裝置。 The image generation method as described in claim 1, wherein in step A, a terminal device transmits the first pattern quantity and the first filling units to An arithmetic device, and the arithmetic device obtains the first pattern number and the first filling units; in step B, the arithmetic device obtains the picture; in step C, the arithmetic device calculates the image in the image Define the block generation range; in step D, the computing device generates the at least one closed block within the block generation range; in step E, the computing device generates the at least one closed block Fill in a first filling unit to form the pattern; in step F, the computing device repeats steps C to E until the number of patterns formed reaches the first pattern number to form the first pattern. Picture; after step F, it further includes: the computing device transmits the first picture to the terminal device via the network.
TW111103665A 2022-01-27 2022-01-27 Image generation method TWI818426B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW111103665A TWI818426B (en) 2022-01-27 2022-01-27 Image generation method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW111103665A TWI818426B (en) 2022-01-27 2022-01-27 Image generation method

Publications (2)

Publication Number Publication Date
TW202331641A TW202331641A (en) 2023-08-01
TWI818426B true TWI818426B (en) 2023-10-11

Family

ID=88558998

Family Applications (1)

Application Number Title Priority Date Filing Date
TW111103665A TWI818426B (en) 2022-01-27 2022-01-27 Image generation method

Country Status (1)

Country Link
TW (1) TWI818426B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201839716A (en) * 2017-04-26 2018-11-01 偉詮電子股份有限公司 Scene stitching method and system thereof
CN109767384A (en) * 2018-11-29 2019-05-17 四川大学 A method of making a seamless collage pattern simulating a pebbled leather surface
CN112712576A (en) * 2021-01-19 2021-04-27 东华大学 Intelligent pattern design generation method
EP3822766A1 (en) * 2018-07-13 2021-05-19 Boe Technology Group Co., Ltd. Image processing method and device for tiled screen and tiled screen

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201839716A (en) * 2017-04-26 2018-11-01 偉詮電子股份有限公司 Scene stitching method and system thereof
EP3822766A1 (en) * 2018-07-13 2021-05-19 Boe Technology Group Co., Ltd. Image processing method and device for tiled screen and tiled screen
CN109767384A (en) * 2018-11-29 2019-05-17 四川大学 A method of making a seamless collage pattern simulating a pebbled leather surface
CN112712576A (en) * 2021-01-19 2021-04-27 东华大学 Intelligent pattern design generation method

Also Published As

Publication number Publication date
TW202331641A (en) 2023-08-01

Similar Documents

Publication Publication Date Title
US7164424B2 (en) Interactive water effects using texture coordinate shifting
US10754515B2 (en) Systems and methods for 3D scripting language for manipulation of existing 3D model data
JP7432005B2 (en) Methods, devices, equipment and computer programs for converting two-dimensional images into three-dimensional images
CN103984720B (en) Method and device for creating tile map based on OpenGL
CN113228111A (en) Image processing method, image processing system, and program
CN115690359B (en) Point cloud processing method and device, electronic equipment and storage medium
US20080018665A1 (en) System and method for visualizing drawing style layer combinations
US10957115B2 (en) Wearable item visualizer
CN115457206A (en) Three-dimensional model generation method, device, equipment and storage medium
TWI818426B (en) Image generation method
KR101680672B1 (en) Method for providing texture effect and display apparatus applying the same
US20200279440A1 (en) Programmatic hairstyle opacity compositing for 3d rendering
TWI871122B (en) 3d object imaging method and 3d object imaging system
JP2739447B2 (en) 3D image generator capable of expressing wrinkles
WO2024234736A1 (en) Rendering method and apparatus for flowing-light effect, and electronic device
Merizzi Procedural terrain generation with style transfer
JP3701627B2 (en) Drawing processing program, recording medium storing drawing processing program, drawing processing apparatus and method
Wu et al. Field Coupling‐Based Image Filter for Sand Painting Stylization
CN118135156B (en) Augmented reality anchor point placement method, device, electronic device and readable storage medium
JP2001043394A (en) Image display method and apparatus
JP7429496B2 (en) Image processing device and image processing method
CN112907695B (en) Method, system, electronic device and storage medium for generating decorative painting frame
CN117252974A (en) Mapping method and device for three-dimensional image, electronic equipment and storage medium
TWI441079B (en) Method for generating a drawing of a graphics primitive
CN117689756A (en) Image processing method, device, non-volatile storage medium and computer equipment