METHODS AND SYSTEMS FOR GENERATING A NOISE-PATTERN IMAGE
Disclosed is a method for generating a noise-pattern image. The method includes receiving an input image from an imaging device and generating a patch-wise randomized image by fusing a plurality of noises into an input image in a patch-wise manner. Further, the method includes generating, using a first machine learning model, a coarse grain image based on the patch-wise randomized image. Furthermore, the method includes generating, using a second machine learning model, a refined grain image based on the coarse grain image. Moreover, the method includes generating a per-pixel fused film grain image based on the refined grain image. Further, the method includes generating the noise-pattern image based on merging the input image with the per-pixel fused film grain image.
Latest Samsung Electronics Patents:
This application is a continuation of International Application No. PCT/KR2026/002917, filed on Feb. 20, 2026, which is based on and claims priority to Indian Provisional Application No. 202541025962, filed Mar. 21, 2025, and Indian Non-Provisional Patent Application No. 202541025962, filed on Dec. 3, 2025, in the Indian Patent Office, the disclosures of which are incorporated by reference herein in their entireties.
BACKGROUND 1. FieldThe present disclosure relates to digital imaging, and more particularly relates to systems and methods for generating a noise-pattern image.
2. Description of Related ArtWith the proliferation of smartphones, mobile photography has become an integral part of daily life. Users increasingly rely on mobile devices to capture personal, professional, and artistic moments through digital images. However, cameras in mobile devices are inherently constrained by factors such as small sensor size, limited optical performance, and real-time processing limitations. Such constraints often result in the digital images that lack fine textures and details typically observed in real-world scenes.
As computational photography continues to evolve, there is a growing emphasis on improving both realism and aesthetic quality of the digital images. Mobile imaging systems, in particular, have made significant advancements by leveraging multi-frame processing, machine learning, and sensor fusion techniques in the digital images. However, such advancements often come at the cost of natural image texture, especially in telephoto or high-zoom capture modes. At such focal lengths, aggressive noise reduction and upscaling algorithms can lead to overly smooth, plastic-like renderings that diminish perceived detail and reduce the overall visual appeal of the digital image.
Various existing techniques reintroduce or simulate texture, including the addition of film grain or synthetic noise. While such existing techniques may help restore a sense of realism, the existing techniques frequently present trade-offs. Some of the existing techniques are computationally intensive, making them unsuitable for real-time, on-device execution within the power and memory constraints of mobile hardware. Other existing techniques may generate repetitive or uniform patterns that fail to convincingly replicate natural image grain, leading to artifacts that further detract from image authenticity. For example,
Hence, there is a need for improved digital imaging systems and methods that overcome the above-mentioned and other related problems.
SUMMARYAdditional aspects will be set forth in part in the description which follows and, in part, will be apparent from the description, or may be learned by practice of the presented embodiments.
In an embodiment, a method for generating a noise-pattern image, the method may comprise receiving an input image from an imaging device. The method may comprise generating a patch-wise randomized image by fusing a plurality of noises into an input image in a patch-wise manner. The patch-wise randomized image may indicate an image generated by randomly transforming a plurality of spatially distinct patches extracted from the input image. The method may comprise generating, using a first machine learning model, a coarse grain image based on the patch-wise randomized image. The coarse grain image may indicate an image with grains of the grain patterns having a size exceeding a predetermined grain size and having a grain strength exceeding a predetermined grain strength. The method may comprise generating, using a second machine learning model, a refined grain image based on the coarse grain image. The refined grain image may indicate an image having a grain structure that is spatially aligned with the coarse grain image. The method may comprise generating a per-pixel fused film grain image based on the refined grain image and the input image. The per-pixel fused film grain image may indicate an image with the grain patterns distributed in a non-periodic manner and uniform luminance across spatial regions of the refined grain image. The method may comprise generating the noise-pattern image based on merging the input image with the per-pixel fused film grain image.
In an embodiment, a system for generating a noise-pattern image, the system may comprise one or more processors including processing circuitry. The system may comprise memory coupled to the one or more processors. The memory may be configured to store one or more instructions. The one or more instructions, when executed individually or collectively by the one or more processors, may cause the system to receive an input image from an imaging device. The one or more instructions, when executed individually or collectively by the one or more processors, may cause the system to generate a patch-wise randomized image by fusing a plurality of noises in a patch-wise manner in an input image. The patch-wise randomized image may indicate an image generated by randomly transforming a plurality of spatially distinct patches extracted from the input image. The one or more instructions, when executed individually or collectively by the one or more processors, may cause the system to generate, using a first machine learning model, a coarse grain image based on the patch-wise randomized image. The coarse grain image may indicate an image with grains of the grain patterns having a size exceeding a predetermined grain size and having a grain strength exceeding a predetermined grain strength. The one or more instructions, when executed individually or collectively by the one or more processors, may cause the system to generate, using a second machine learning model, a refined grain image based on the coarse grain image. The refined grain image may indicate an image having a grain structure that is spatially aligned with the coarse grain image. The one or more instructions, when executed individually or collectively by the one or more processors, may cause the system to generate a per-pixel fused film grain image based on the refined grain image and the input image. The per-pixel fused film grain image may indicate an image with the grain patterns distributed in a non-periodic manner and uniform luminance across spatial regions of the refined grain image. The one or more instructions, when executed individually or collectively by the one or more processors, may cause the system to generate the noise-pattern image based on merging the input image with the per-pixel fused film grain image.
In an embodiment, a non-transitory computer-readable medium storing one or more instructions that, when executed individually or collectively by one or more processors of a system, may cause the system to receive an input image from an imaging device. The non-transitory computer-readable medium storing one or more instructions that, when executed individually or collectively by one or more processors of a system, may cause the system to generate a patch-wise randomized image by fusing a plurality of noises into an input image in a patch-wise manner. The patch-wise randomized image may indicate an image generated by randomly transforming a plurality of spatially distinct patches extracted from the input image. The non-transitory computer-readable medium storing one or more instructions that, when executed individually or collectively by one or more processors of a system, may cause the system to generate, using a first machine learning model, a coarse grain image based on the patch-wise randomized image. The coarse grain image may indicate an image with grains of the grain patterns having a size exceeding a predetermined grain size and having a grain strength exceeding a predetermined grain strength. The grain patterns may be adjusted, using the first machine learning model, to avoid repetition. The non-transitory computer-readable medium storing one or more instructions that, when executed individually or collectively by one or more processors of a system, may cause the system to generate, using a second machine learning model, a refined grain image based on the coarse grain image. The refined grain image may indicate an image having a grain structure that is spatially aligned with the coarse grain image. The non-transitory computer-readable medium storing one or more instructions that, when executed individually or collectively by one or more processors of a system, may cause the system to generate a per-pixel fused film grain image based on the refined grain image and the input image. The per-pixel fused film grain image may indicate an image with the grain patterns distributed in a non-periodic manner and uniform luminance across spatial regions of the refined grain image. The non-transitory computer-readable medium storing one or more instructions that, when executed individually or collectively by one or more processors of a system, may cause the system to generate the noise-pattern image based on merging the input image with the per-pixel fused film grain image.
The above and other aspects, features, and advantages of certain embodiments of the present disclosure will be more apparent from the following description taken in conjunction with the accompanying drawings, in which:
Further, skilled artisans will appreciate that those elements in the drawings are illustrated for simplicity and may not have necessarily been drawn to scale. For example, the flow charts illustrate the method in terms of the most prominent operations involved to help to improve understanding of aspects of the present invention. Furthermore, in terms of the construction of the device, one or more components of the device may have been represented in the drawings by conventional symbols, and the drawings may show only those specific details that are pertinent to understanding the embodiments of the present invention so as not to obscure the drawings with details that will be readily apparent to those of ordinary skill in the art having the benefit of the description herein.
DETAILED DESCRIPTIONFor the purpose of promoting an understanding of the principles of the present disclosure, reference will now be made to the various embodiments, and specific language will be used to describe the same. It will nevertheless be understood that no limitation of the scope of the present disclosure is thereby intended, such alterations and further modifications in the illustrated system, and such further applications of the principles of the present disclosure as illustrated therein, being contemplated as would normally occur to one skilled in the art to which the present disclosure relates.
It will be understood by those skilled in the art that the foregoing general description and the following detailed description are explanatory of the present disclosure and are not intended to be restrictive thereof.
Whether or not a certain feature or element was limited to being used only once, it may still be referred to as “one or more features” or “one or more elements,” “at least one feature,” or “at least one element.” Furthermore, the use of the terms “one or more” or “at least one” feature or element does not preclude there being none of that feature or element, unless otherwise specified by limiting language, including, but not limited to, “there needs to be one or more . . . ” or “one or more elements are required.”
Reference is made herein to some “embodiments.” It should be understood that an embodiment is an example of a possible implementation of any features and/or elements of the present disclosure. Some embodiments have been described for the purpose of explaining one or more of the potential ways in which the specific features and/or elements of the proposed disclosure fulfil the requirements of uniqueness, utility, and non-obviousness.
Use of the phrases and/or terms including, but not limited to, “a first embodiment,” “a further embodiment,” “an alternate embodiment,” “one embodiment,” “an embodiment,” “multiple embodiments,” “some embodiments,” “other embodiments,” “further embodiment”, “furthermore embodiment”, “additional embodiment” or other variants thereof do not necessarily refer to the same embodiments. Unless otherwise specified, one or more particular features and/or elements described in connection with one or more embodiments may be found in one embodiment, or may be found in more than one embodiment, or may be found in all embodiments, or may be found in no embodiments. Although one or more features and/or elements may be described herein in the context of only a single embodiment, or in the context of more than one embodiment, or in the context of all embodiments, the features and/or elements may instead be provided separately or in any appropriate combination or not at all. Conversely, any features and/or elements described in the context of separate embodiments may alternatively be realized as existing together in the context of a single embodiment.
Any particular and all details set forth herein are used in the context of some embodiments and therefore should not necessarily be taken as limiting factors to the proposed disclosure.
The terms “comprises”, “comprising”, or any other variations thereof, are intended to cover a non-exclusive inclusion, such that a process or method that comprises a list of operations does not include only those operations but may include other operations not expressly listed or inherent to such process or method. Similarly, one or more devices or sub-systems or elements or structures or components preceded by “comprises . . . a” does not, without more constraints, preclude the existence of other devices or other sub-systems or other elements or other structures or other components or additional devices or additional sub-systems or additional elements or additional structures or additional components.
The term “couple” and the derivatives thereof refer to any direct or indirect communication between two or more elements, whether or not those elements are in physical contact with each other. The terms “transmit”, “receive”, and “communicate”, as well as the derivatives thereof, encompass both direct and indirect communication. The term “or” is an inclusive term meaning “and/or”. The phrase “associated with,” as well as derivatives thereof, refer to include, be included within, interconnect with, contain, be contained within, connect to or with, couple to or with, be communicable with, cooperate with, interleave, juxtapose, be proximate to, be bound to or with, have, have a property of, have a relationship to or with, or the like. The term “controller” refers to any device, system, or part thereof that controls at least one operation. The functionality associated with any particular controller may be centralized or distributed, whether locally or remotely. The phrase “at least one of,” when used with a list of items, means that different combinations of one or more of the listed items may be used, and only one item in the list may be needed. For example, “at least one of A, B, and C” includes any of the following combinations: A, B, C, A and B, A and C, B and C, and A and B and C, and any variations thereof. As an additional example, the expression “at least one of a, b, or c” may indicate only a, only b, only c, both a and b, both a and c, both b and c, all of a, b, and c, or variations thereof. Similarly, the term “set” means one or more. Accordingly, the set of items may be a single item or a collection of two or more items.
Moreover, multiple functions described below may be implemented or supported by one or more computer programs, each of which is formed from computer-readable program code and embodied in a computer-readable medium. The terms “application” and “program” refer to one or more computer programs, software components, sets of instructions, procedures, functions, objects, classes, instances, related data, or a portion thereof adapted for implementation in a suitable computer-readable program code. The phrase “computer-readable program code” includes any type of computer code, including source code, object code, and executable code. The phrase “computer-readable medium” includes any type of medium capable of being accessed by a computer, such as Read Only Memory (ROM), Random Access Memory (RAM), a hard disk drive, a Compact Disc (CD), a Digital Video Disc (DVD), or any other type of memory. A “non-transitory” computer-readable medium excludes wired, wireless, optical, or other communication links that transport transitory electrical or other signals. A non-transitory computer-readable medium includes media where data may be permanently stored and media where data may be stored and later overwritten, such as a rewritable optical disc or an erasable memory device.
Any particular and all details set forth herein are used in the context of some embodiments and therefore should NOT be necessarily taken as limiting factors to the attached claims. The attached claims and their legal equivalents can be realized in the context of embodiments other than the ones used as illustrative examples in the description below.
Further, skilled artisans will appreciate those elements in the drawings that are illustrated for simplicity and may not have necessarily been drawn to scale. For example, the flow charts illustrate the method in terms of the most prominent operations involved to help improve understanding of aspects of the present disclosure. Furthermore, in terms of the construction of the device, one or more components of the device may have been represented in the drawings by conventional symbols, and the drawings may show only those specific details that are pertinent to understanding the embodiments of the present disclosure so as not to obscure the drawings with details that will be readily apparent to those of ordinary skill in the art having the benefit of the description herein.
For the sake of clarity, the first digit of a reference numeral of each component of the present disclosure is indicative of the FIG. number, in which the corresponding component is shown. For example, reference numerals starting with digit “1” are shown at least in
It should be noted that the terms “evidence” and “at least one proof of evidence” have been used interchangeably throughout the description and the drawings. Further, the terms “policy” and “one or more policy configurations” have been used interchangeably throughout the description and the drawings.
The present disclosure provides a near real-time, on-device solution for film grain generation that may dynamically adapt to image content, bridging the aesthetic gap between digital imaging and analog film. To elaborate, an artificial natural noise may be introduced to simulate texture and restore naturalness. One such artificial noise may be film grain noise, which enhances image perception by mimicking real world textures. The film grain noise may elevate artistic quality of the digital image by introducing finely tuned texture variations that add visual depth and richness. The present disclosure may carefully control the density and spatial distribution of grain, rather than relying on synthetic noise or repetitive patterns. Further, in telephoto scenarios, where camera sensors often fall short in capturing fine textures due to limited optical field, the digital image may appear overly smooth and lacking in detail. The strategic injection of controlled film grain may compensate for such limitations by adding micro textures that mimic natural surface details.
Embodiments of the present disclosure will be described below in detail with reference to the accompanying drawings.
Referring to
In an embodiment, the system 206 may include software, hardware, a combination of software and hardware, an in-built application on the electronic device 204, or an application to be installed and operated on the electronic device 204 in communication with a network interface (not shown). The system 106 may also be accessible at the electronic device 204 via the server (a cloud-based server), and available remotely from the electronic device 204.
In the embodiment where the system 206 is located outside the electronic device 204, the network interface may be configured to provide network connectivity and enable communication between the system 206 and the electronic device 204. The network connectivity may be provided via a wireless connection or a wired connection. For example, the network connectivity may be provided via cellular technology, such as 3rd Generation (3G), 4th Generation (4G), 5th Generation (5G), pre-5G, 6th Generation (6G), Bluetooth, Local Area Network (LAN), Wi-Fi, cable, or any other wired/wireless communication technology.
In an embodiment, the system 206 may be configured to receive an input image from the imaging device 204. In a non-limiting example, the imaging device 204 may include, but is not limited to, a digital camera, a smartphone, and a sensor-enabled display device. In a non-limiting example, the input image may comprise a digital representation of visual data, which may be acquired from one or more sources including, but not limited to, a camera, scanner, image database, or user-uploaded file. The input image may be in any suitable format such as Joint Photographic Experts Group (JPEG), Portable Network Graphics (PNG), Bitmap (BMP), or Tagged Image File Format (TIFF), and may include color, grayscale, or binary image data. The imaging device 204 may be integrated within the electronic device 204, such as a smartphone, tablet, wearable device, or any other user equipment capable of image acquisition.
In an embodiment, the system 206 may be configured to generate a patch-wise randomized image by fusing a plurality of noises into an input image in a patch-wise manner. In a non-limiting example, the patch-wise randomized image may indicate an image generated by randomly transforming a plurality of spatially distinct patches extracted from the input image.
In an embodiment, the system 206 may be configured to generate, using a first machine learning model, a coarse grain image based on the patch-wise randomized image. In a non-limiting example, the coarse grain image may indicate an image with grains of the grain patterns having a size exceeding a predetermined grain size and minimal repetitive patterns across the patch-wise randomized image. The coarse grain image may indicate an image having a grain strength exceeding a predetermined grain strength. The grain strength may indicate a density of the grains of the grain patterns.
In an embodiment, the system 206 may be configured to generate, using a second machine learning model, a refined grain image based on the coarse grain image. In a non-limiting example, the refined grain image may indicate an image having a grain structure that is spatially aligned with the coarse grain image.
In an embodiment, the system 206 may be configured to generate a per-pixel fused film grain image based on the refined grain image. In a non-limiting example, the per-pixel fused film grain image may indicate an image with the grain patterns distributed in a non-periodic manner and uniform luminance across spatial regions of the refined grain image.
In an embodiment, the system 206 may be configured to generate the noise-pattern image based on merging the input image with the per-pixel fused film grain image, thereby improving texture representation of the input image.
In an embodiment, to receive the input image from the imaging device, the system 206 may be configured to obtain the input image from at least one of a memory of the imaging device 204 or a real-time image captured by the imaging device 204. For example, the imaging device 204 may retrieve a previously stored image from the memory, such as a photograph taken earlier and saved in a storage module of the memory. Alternatively, the imaging device 204 may capture a live image in real time using the one or more camera sensors, such as a video frame recorded during active operation.
In an embodiment, to generate the patch-wise randomized image, the system 206 may be configured to segment the input image into a plurality of patches based on a predefined patch size. In a non-limiting example, the input image may be a digital image represented as a two-dimensional array of pixel values. In a non-limiting example, the patch may indicate a sub-region or sub-image of the input image, having a fixed spatial dimension defined by the patch size. For instance, if the predefined patch size is 32×32 pixels, then the input image is divided into multiple non-overlapping or overlapping patches, each of which comprises 32 pixels in width and 32 pixels in height. The segmentation may be performed by iteratively extracting rectangular regions from the input image using a sliding window approach. The stride of the window may be equal to or less than the patch size, thereby enabling either non-overlapping or overlapping patch extraction.
In an embodiment, the system 206 may be configured to perform a stochastic transformation on each of the plurality of patches based on a cost function. In a non-limiting example, the stochastic transformation may indicate a localised random modification of each of the plurality of patches, and the cost function corresponds to a degree of correlation between adjacent patches in the plurality of patches. The system 206 may be configured to reassemble each of the plurality of stochastically transformed patches to corresponding positions in the input image. The system 206 may further be configured to generate the patch-wise randomized image based on the reassembling of the plurality of stochastically transformed patches.
In an embodiment, to generate the coarse grain image, the system 206 may be configured to receive the patch-wise randomized image. The system 206 may be configured to apply, using the first machine learning model, a layer of coarse film grain image to the patch-wise randomized image. Further, the system 206 may be configured to generate the coarse grain image based on the application of layer of coarse film grain image.
In an embodiment, to generate the coarse grain image, the system 206 may be configured to receive the patch-wise randomized image. The system 206 may be configured to apply, using the first machine learning model, a coarse film grain layer to the patch-wise randomized image. Further, the system 206 may be configured to generate the coarse grain image based on the application.
In an embodiment, to generate the refined grain image, the system 206 may be configured to receive the coarse grain image and generate one or more latent noise patterns based on one or more predetermined parameters associated with the one or more latent noise patterns and a predefined gain strength. In a non-limiting example, the one or more predetermined parameters may include, but are not limited to, at least one of a dimensionality of the latent space, a type of distribution (such as Gaussian, uniform), a mean and variance of the distribution, a seed value for random number generation, and any transformation matrices or filters applied to noise vectors. The vectors serve as inputs to a generative model and are used to introduce controlled randomness or variability in the generation of synthetic data, such as images or features. In a non-limiting example, the predefined gain strength may correspond to a scalar or vector value that modulates amplitude or intensity of the one or more latent noise patterns.
In an embodiment, the system 206 may be configured to fuse the coarse grain image with the one or more latent noise patterns (alternately referred hereinafter as “the coarse grain image with latent noise 702”). The system 206 may be configured to refine the coarse grain image fused with the one or more latent noise patterns by adjusting grain intensity based on one or more local image statistics. In a non-limiting example, the one or more local image statistics comprise at least pixel brightness and local contrast. The system 206 may be configured to generate the refined grain image based on the refinement.
In an embodiment, prior to generating the per-pixel fused film grain image, the system 206 may be configured to extract high-frequency components from the refined grain image based on a predetermined high-pass filter. In a non-limiting example, the high-frequency components may indicate spatial variation of the refined grain image and comprise texture information, grain structure, and edge details. In a non-limiting example, the high-pass filter may correspond to a signal or image processing technique that allows passage of the high-frequency components while attenuating or suppressing low-frequency components.
The system 206 may be configured to extract the low-frequency components from the input image based on a predetermined low-pass filter. In a non-limiting example, the low-frequency components may correspond to spatial variation of the input image and comprise intensity, brightness, and color information. In a non-limiting example, the low-pass filter may correspond to a signal or image processing technique that allows the passage of the low-frequency components while attenuating or suppressing the high-frequency components. The system 206 may be configured to derive per-pixel weights based on the extracted high-frequency components and the extracted low-frequency components. The system 206 may be configured to fuse the extracted high-frequency components and the extracted low-frequency components based on the per-pixel weights, to generate the processed refined grain image.
In an embodiment, the system 206 may be configured to train the first machine learning model. In an embodiment, to train the first machine learning model, the system 206 may be configured to receive a first set of images and a second set of images. In a non-limiting example, the first set of images is obtained from a sensor of the imaging device, and the second set of images is generated by applying one or more filters to one or more regions of the first set of images. The system 206 may be configured to generate a set of sample coarse grain images based on the first set of images. For example, the system 206 may be configured to generate a set of sample coarse grain images by applying, using the first machine learning model, a layer of coarse film grain image on each image in the first set of images . . . The system 206 may be configured to compute at least one loss value based on a comparison between the set of sample coarse grain images and the second set of images. For example, the system 206 may be configured to compute a style loss by calculating the distance between Gram matrix of the sample coarse grain image and the image in the second set of images . . . The system 206 may be configured to update parameters of the first machine learning model based on applied one or more losses. The system 206 may be configured to determine whether the computed loss value satisfies a convergence criterion defined by a pre-defined threshold dataset. The system 206 may be configured to continue or stop the training the model based on the determination.
In an embodiment, the system 206 may be configured to train the second machine learning model. In an embodiment, to train the second machine learning model, the system 206 may be configured to receive a third set of images and a second set of images. In a non-limiting example, the third set of images is generated by applying a layer of coarse grain image to each image in the first set of images. In a non-limiting example, the first set of images is obtained from a sensor of the imaging device. In a non-limiting example, the second set of images is generated by applying one or more filters to one or more regions of the first set of images. The system 206 may be configured to generate a set of refined sample grain images based on each of the third set of images fused with one or more latent noise. For example, the system 206 may be configured to generate a set of refined sample grain images, by adjusting grain intensity based on one or more local image statistics. The system 206 may be configured to compute at least one loss value by comparing the set of refined grain images to the second set of images. For example, the system 206 may be configured to compute a adversarial loss, using a discriminator model by setting the image in the second set of image as real data and the corresponding refined grain image as fake data. The system 206 may be further configured to compute a L1 loss by calculating mean absolute error of the pixels between the image in the second set of image and the corresponding refined grain image. The system 206 may be configured to update parameters of the second machine learning model based on the applied one or more losses. The system 206 may be configured to determine whether the computed loss value satisfies a convergence criterion defined by a pre-defined threshold dataset. The system 206 may be configured to continue or stop the training the model based on the determination.
In an embodiment, the system 206 may include at least a processor 302, a memory 304, a plurality of modules 306, and a data unit 308. The processor 302, the memory 304, the plurality of modules 306, and the data unit 308 are communicably coupled with each other.
In an embodiment, the at least one processor 302 may be in communication with the memory 304. The at least one processor 302 may be a single processing unit or several units, all of which could include multiple computing units. The at least one processor 302 may be implemented as one or more microprocessors, microcomputers, microcontrollers, digital signal processors, central processing units, state machines, logic circuitries, and/or any devices that manipulate signals based on operational instructions. Among other capabilities, the at least one processor 302 may be configured to fetch and execute computer-readable instructions and data stored in the memory 304.
In an embodiment, the memory 304 may include any non-transitory computer-readable medium known in the art including, for example, volatile memory, such as static random access memory (SRAM) and dynamic random access memory (DRAM), and/or non-volatile memory, such as read-only memory (ROM), erasable programmable ROM, flash memories, hard disks, optical disks, and magnetic tapes.
In an embodiment, the plurality of modules 306 may be configured to generate the context-aware texture image.
In some embodiments, the plurality of modules 306 may include a set of instructions that can be executed to cause the system 206 to perform any one or more of the methods disclosed. The system 206 may operate as a standalone device or may be connected, e.g., using a network, to other computer systems or peripheral devices. Further, while a single processing unit is illustrated, the term “processing unit” shall also be taken to include any collection of processing units, implemented across the system 206 that individually or jointly execute a set, or multiple sets, of instructions to perform one or more computer functions.
In an embodiment, the plurality of modules 306 may be implemented using one or more artificial intelligence (AI) units that may include a plurality of neural network layers. Examples of neural networks include, but are not limited to, Convolutional Neural Network (CNN), Deep Neural Network (DNN), Recurrent Neural Network (RNN), and Restricted Boltzmann Machine (RBM). Further, ‘learning’ may be referred to in the disclosure as a method for training a predetermined target device (for example, a robot) using a plurality of learning data to cause, allow, or control the target device to make a determination or prediction. Examples of learning techniques include, but are not limited to, supervised learning, unsupervised learning, semi-supervised learning, or reinforcement learning. At least one of a plurality of CNN, DNN, RNN, RMB models and the like may be implemented to thereby achieve execution of the present subject matter's mechanism through an AI model. A function associated with an AI unit may be performed through the non-volatile memory, the volatile memory, and the processor. The processor 302 may include one or a plurality of processors. At this time, one or a plurality of processors may be a general-purpose processor, such as a central processing unit (CPU), an application processor (AP), or the like, a graphics-only processing unit such as a graphics processing unit (GPU), a visual processing unit (VPU), and/or an AI-dedicated processor, such as a neural processing unit (NPU). One or a plurality of processors control the processing of the input data in accordance with a predefined operating rule or artificial intelligence (AI) model stored in the non-volatile memory and the volatile memory. The predefined operating rule or artificial intelligence model is provided through training or learning.
In an embodiment, the data unit 308, amongst other things, includes routines, programs, objects, components, data structures, and the like, which perform tasks or implement data types. The data unit 308 may also be implemented as signal processor(s), state machine(s), logic circuitries, and/or any other device or component that manipulates signals based on operational instructions. Further, the data unit 308 may be implemented in hardware, instructions executed by a processing unit, or by a combination thereof. The processing unit may comprise a processor, such as the at least one processor 302, a state machine, a logic array, or any other suitable device capable of processing instructions. The processing unit may be a general-purpose processor that executes instructions to cause the general-purpose processor to perform the required tasks, or the processing unit can be dedicated to performing the required functions. In embodiment of the present disclosure, the data unit 308 may be machine-readable instructions (software) that, when executed by the processor 302, perform any of the described functionalities.
As illustrated in
Cost=λ1×min (Correlation(Oi, Oj))+λ2×min(diff (Pi−Oi), diff (Pj−Oj)),
where Oi and Oj are the respective outputs after stochastic fusion of the patches Pi and Pj. Further, the correlation term ensures minimal similarity between fused patches, while the difference term regulates the deviation between original and fused patches, thereby controlling noise levels. Thus, generating the patch-wise randomized image 404 by fusing a plurality of noises into an input image in a patch-wise manner.
As shown in
As shown, the coarse grain image 502 shows the layer of coarse film grain image applied at different positions 602 and 604. At the position 602, a grain-like texture is added to the coarse grain image 502 to simulate natural surface irregularities. At position 604, grain strength applied to the coarse grain image 502 is higher than desired and may require reduction to achieve the intended visual balance. Additionally, grain size is larger than necessary, which may affect the natural appearance and texture fidelity. Thus, at position 604, the grain strength as well as the grain size are required to be fine-tuned to align with the target aesthetic and structural requirements.
As shown in
As shown in
As shown in
As shown in
As shown in
In an embodiment, to train the first machine learning model, the system 206 may include receiving the first set of images 1202 and the second set of images 1204. In a non-limiting example, the first set of images 1202 is obtained from the sensor of the imaging device, and the second set of images 1204 are generated by applying the one or more filters to the one or more regions of the first set of images. For instance, the first set of images 1202 may be sensor input and the second set of images 1204 may be ground truth images with manually applied film grain. Further, the ground truth images may be generated by applying a series of custom filters with varying parameters to different image regions. In addition, different regions within the ground truth images, such as sky, skin, and foliage, may receive custom filter parameters to mimic the unique textural properties of film grain observed in analog photography. At operation 1214, the system may be configured to generate a set of sample coarse grain images based on the first set of images 1202. At operation 1208, the system 206 may be configured to compute the loss value based on the comparison between the set of sample coarse grain images and the second set of images 1204. At operation 1208, the system 206 may be configured to update parameters of the first machine learning model based on the one or more losses. At operation 1210, the system 206 may be configured to determine whether the computed loss value satisfies the convergence criteria defined by the pre-defined threshold dataset.
In an embodiment, the first machine learning model may be trained to generate a foundational layer of coarse film grain over the input image 402. During the training process, the loss value may be computed, which maintains a balance between preservation of texture and introduction of spatial randomness. Furthermore, a style loss component may be incorporated to ensure that the generated grain patterns exhibit similarity to those typically observed in film-like textures. The style loss may ensure proper grain transfer to the input image 402.
In an embodiment, to train the second machine learning model, the system 206 may receive the third set of images and the second set of images 1204. In a non-limiting example, the third set of images may be generated by applying the layer of the sample coarse grain image to each image in the first set of images. At operation 1206, the system 206 may generate the set of refined sample grain images based on each of the images of the third set of images fused with one or more latent noise. At operation 1208, the system 206 may compute the loss value by comparing the set of refined sample grain images to the second set of images 1204. At operation 1208, the system 206 may configured to update parameters of the second machine learning model based on the one or more losses. At operation 1210, the system 206 may determine whether the computed loss value satisfies the convergence criteria defined by the pre-defined threshold dataset.
In an embodiment, the second machine learning model may be trained to perform refinement of the initially generated coarse grain image, thereby ensuring controlled intensity of the grain and preventing the occurrence of excessive grain in spatially uniform regions of the image. In order to maintain perceptual realism of the refined grain image, an adversarial loss function may be introduced during the training process to maintain naturalness or randomness in the generated image. Additionally, an L1 loss function may be employed to ensure pixel-level fidelity in the refined output, thereby preserving the accuracy of the image details. The L1 loss function may preserve pixel-wise accuracy and fidelity of the input image 402.
At operation 1302, the method 1300 may include receiving the input image 402 from the imaging device 204. In a non-limiting example, the imaging device 204 may include, but is not limited to, the digital camera, the smartphone, and the sensor-enabled display device. In a non-limiting example, the input image may comprise a digital representation of visual data, which may be acquired from one or more sources, including, but not limited to, a camera, scanner, image database, or user-uploaded file. The input image 402 may be in any suitable format, such as Joint Photographic Experts Group (JPEG), Portable Network Graphics (PNG), Bitmap (BMP), or Tagged Image File Format (TIFF), and may include color, grayscale, or binary image data. The imaging device 204 may be integrated within the electronic device 204, such as a smartphone, tablet, wearable device, or any other user equipment capable of image acquisition.
At operation 1304, the method 1300 may include generating the patch-wise randomized image 404 image by fusing a plurality of noises into an input image in a patch-wise manner. In a non-limiting example, the patch-wise randomized image 404 may indicate an image generated by randomly transforming a plurality of spatially distinct patches extracted from the input image 402.
At operation 1306, the method 1300 may include generating, using the first machine learning model, the coarse grain image 502 based on the patch-wise randomized image 404. In a non-limiting example, the coarse grain image 502 may indicate an image with grain patterns having a size exceeding a predetermined grain pattern and having a grain strength exceeding a predetermined grain strength.
At operation 1308, the method 1300 may include generating, using the second machine learning model, the refined grain image 802 based on the coarse grain image 502. In a non-limiting example, the refined grain image 802 image may indicate an image having a grain structure that is spatially aligned with the coarse grain image 502.
At operation 1310, the method 1300 may include generating the per-pixel fused film grain image 1002 based on the refined grain image 802 and the input image 402. In a non-limiting example, the per-pixel fused film grain image 1002 may indicate grain patterns distributed in a non-periodic manner and uniform luminance across spatial regions of the refined grain image 802.
At operation 1312, the method 1300 may include generating the noise-pattern image 1102 based on merging the input image 402 with the per-pixel fused film grain image 1002, thereby improving the texture representation of the input image 402.
In an embodiment, a method for generating a noise-pattern image, the method may comprise receiving an input image from an imaging device. The method may comprise generating a patch-wise randomized image by fusing a plurality of noises into an input image in a patch-wise manner. The patch-wise randomized image may indicate an image generated by randomly transforming a plurality of spatially distinct patches extracted from the input image. The method may comprise generating, using a first machine learning model, a coarse grain image based on the patch-wise randomized image. The coarse grain image may indicate an image with grains of the grain patterns having a size exceeding a predetermined grain size and having a grain strength exceeding a predetermined grain strength. The method may comprise generating, using a second machine learning model, a refined grain image based on the coarse grain image. The refined grain image may indicate an image having a grain structure that is spatially aligned with the coarse grain image. The method may comprise generating a per-pixel fused film grain image based on the refined grain image and the input image. The per-pixel fused film grain image may indicate an image with the grain patterns distributed in a non-periodic manner and uniform luminance across spatial regions of the refined grain image. The method may comprise generating the noise-pattern image based on merging the input image with the per-pixel fused film grain image.
In an embodiment, the receiving the input image from the imaging device may comprise obtaining the input image from at least one of a memory of the imaging device or a real-time image captured by the imaging device. The imaging device may comprise at least one of a digital camera, a smartphone and a sensor-enabled display device.
In an embodiment, the generating the patch-wise randomized image may comprise segmenting the input image into a plurality of patches based on a predefined patch size. The generating the patch-wise randomized image may comprise performing a stochastic transformation on each of the plurality of patches based on a cost function. The stochastic transformation may indicate a localized random modification of each of the plurality of patches. The cost function may correspond to a degree of correlation between adjacent patches in the plurality of patches. The generating the patch-wise randomized image may comprise reassembling each of the plurality of stochastically transformed patches to corresponding positions in the input image. The generating the patch-wise randomized image may comprise generating the patch-wise randomized image based on the reassembled plurality of stochastically transformed patches.
In an embodiment, the generating the coarse grain image may comprise receiving the patch-wise randomized image. The generating the coarse grain image may comprise applying, using the first machine learning model, a layer of coarse film grain image to the patch-wise randomized image. The generating the coarse grain image may comprise generating the coarse grain image based on the layer of coarse film grain image being applied to the patch-wise randomized image.
In an embodiment, the generating the refined grain image may comprise receiving the coarse grain image. The generating the refined grain image may comprise generating one or more latent noise patterns based on one or more predetermined parameters and a predefined gain strength. The generating the refined grain image may comprise fusing the coarse grain image with the one or more latent noise patterns. The generating the refined grain image may comprise refining the coarse grain image fused with the one or more latent noise patterns through adjusting a grain intensity based on one or more local image statistics. The one or more local image statistics may comprise at least one of a pixel brightness and a local contrast. The generating the refined grain image may comprise generating the refined grain image based on the refined coarse grain image fused with the one or more latent noise patterns.
In an embodiment, the method may comprises extracting, by applying a high-pass filter to the refined grain image, high-frequency components from the refined grain image. The high-frequency components may indicate a spatial variation of the refined grain image. The high-frequency components may comprise texture information, the grain structure, and edge details. The method may comprise extracting, by applying a low-pass filter to the input image, low-frequency components from the input image. The low frequency components may correspond to a spatial variation of the input image. The low-frequency components may comprise an intensity, a brightness, and color information. The method may comprise deriving per-pixel weights based on the high-frequency components and the extracted low-frequency components. The method may comprise generating a processed refined grain image by fusing the high-frequency components and the low-frequency components with the refined grain image based on the per-pixel weights. The per-pixel fused film grain image may be generated based on the processed refined grain image.
In an embodiment, the method may comprise training the first machine learning model. The training the first machine learning model may comprise receiving a first set of images and a second set of images. The first set of images may be obtained from a sensor of the imaging device. The second set of images may be generated by applying one or more filters to one or more regions of the first set of images. The training the first machine learning model may comprise generating a set of sample coarse grain images based on the first set of images. The training the first machine learning model may comprise computing a loss value based on a comparison between the set of sample coarse grain images and the second set of images. The training the first machine learning model may comprise updating parameters of the first machine learning model based on the one or more losses. The training the first machine learning model may comprise determining whether the loss value satisfies a convergence criteria defined by a pre-defined threshold dataset.
In an embodiment, the method may comprise training the second machine learning model. The training the second machine learning model may comprise receiving a third set of images and a second set of images . The third set of images may be generated by applying a layer of a sample coarse grain image to each image in a first set of images. The first set of images may be obtained from a sensor of the imaging device. The second set of images may be generated by applying one or more filters to one or more regions of the first set of images. The training the second machine learning model may comprise generating a set of refined sample grain images by refining each image of the third set of images fused with one or more latent noise. The training the second machine learning model may comprise computing a loss value by comparing the set of refined sample grain images to the second set of images. The training the second machine learning model may comprise updating parameters of the second machine learning model based on the one or more losses. The training the second machine learning model may comprise determining whether the loss value satisfies a convergence criteria defined by a pre-defined threshold dataset.
In an embodiment, the segmenting the input image into the plurality of patches may comprise iteratively extracting rectangular regions from the input image.
In an embodiment, the one or more predetermined parameters may include at least one of a dimensionality of a latent space, a type of distribution, a mean and variance of a distribution, a seed value for random number generation, a transformation matrix, or filters applied to noise vectors.
In an embodiment, a system for generating a noise-pattern image, the system may comprise one or more processors including processing circuitry. The system may comprise memory coupled to the one or more processors. The memory may be configured to store one or more instructions. The one or more instructions, when executed individually or collectively by the one or more processors, may cause the system to receive an input image from an imaging device. The one or more instructions, when executed individually or collectively by the one or more processors, may cause the system to generate a patch-wise randomized image by fusing a plurality of noises in a patch-wise manner in an input image. The patch-wise randomized image may indicate an image generated by randomly transforming a plurality of spatially distinct patches extracted from the input image. The one or more instructions, when executed individually or collectively by the one or more processors, may cause the system to generate, using a first machine learning model, a coarse grain image based on the patch-wise randomized image. The coarse grain image may indicate an image with grains of the grain patterns having a size exceeding a predetermined grain size and having a grain strength exceeding a predetermined grain strength. The one or more instructions, when executed individually or collectively by the one or more processors, may cause the system to generate, using a second machine learning model, a refined grain image based on the coarse grain image. The refined grain image may indicate an image having a grain structure that is spatially aligned with the coarse grain image. The one or more instructions, when executed individually or collectively by the one or more processors, may cause the system to generate a per-pixel fused film grain image based on the refined grain image and the input image. The per-pixel fused film grain image may indicate an image with the grain patterns distributed in a non-periodic manner and uniform luminance across spatial regions of the refined grain image. The one or more instructions, when executed individually or collectively by the one or more processors, may cause the system to generate the noise-pattern image based on merging the input image with the per-pixel fused film grain image.
In an embodiment, the one or more instructions, when executed individually or collectively by the one or more processors, may cause the system to obtain the input image from at least one of a memory of the imaging device or a real-time image captured by the imaging device. The imaging device may comprise at least one of a digital camera, a smartphone and a sensor-enabled display device.
In an embodiment, the one or more instructions, when executed individually or collectively by the one or more processors, may cause the system to segment the input image into a plurality of patches based on a predefined patch size. The one or more instructions, when executed individually or collectively by the one or more processors, may cause the system to perform a stochastic transformation on each of the plurality of patches based on a cost function. The stochastic transformation may indicate a localized random modification of each of the plurality of patches. The cost function may correspond to a degree of correlation between adjacent patches in the plurality of patches. The one or more instructions, when executed individually or collectively by the one or more processors, may cause the system to reassemble each of the plurality of stochastically transformed patches to corresponding positions in the input image. The one or more instructions, when executed individually or collectively by the one or more processors, may cause the system to generate the patch-wise randomized image based on the reassembled plurality of stochastically transformed patches.
In an embodiment, the one or more instructions, when executed individually or collectively by the one or more processors, may cause the system to receive the patch-wise randomized image. The one or more instructions, when executed individually or collectively by the one or more processors, may cause the system to apply, using the first machine learning model, a layer of coarse film grain image to the patch-wise randomized image. The one or more instructions, when executed individually or collectively by the one or more processors, may cause the system to generate the coarse grain image based on the layer of coarse film grain image being applied to the patch-wise randomized image.
In an embodiment, when executed individually or collectively by the one or more processors, may cause the system to receive the coarse grain image. The one or more instructions, when executed individually or collectively by the one or more processors, may cause the system to generate one or more latent noise patterns based on one or more predetermined parameters and a predefined gain strength. The one or more instructions, when executed individually or collectively by the one or more processors, may cause the system to fuse the coarse grain image with the one or more latent noise patterns. The one or more instructions, when executed individually or collectively by the one or more processors, may cause the system to refine the coarse grain image fused with the one or more latent noise patterns through adjusting grain intensity based on one or more local image statistics. The one or more local image statistics may comprise at least one of a pixel brightness and a local contrast. The one or more instructions, when executed individually or collectively by the one or more processors, may cause the system to generate the refined grain image based on the refined coarse grain image fused with the one or more latent noise patterns.
In an embodiment, the one or more instructions, when executed individually or collectively by the one or more processors, may cause the system to extract, by applying a high-pass filter to the refined grain image, high-frequency components from the refined grain image. The high-frequency components may indicate a spatial variation of the refined grain image. The high-frequency components may comprise texture information, the grain structure, and edge details. The one or more instructions, when executed individually or collectively by the one or more processors, may cause the system to extract, by applying a low-pass filter to the input image, low-frequency components from the input image. The low-frequency components may correspond to a spatial variation of the input image and comprise an intensity, a brightness, and color information. The one or more instructions, when executed individually or collectively by the one or more processors, may cause the system to derive per-pixel weights based on the high-frequency components and the low-frequency components. The one or more instructions, when executed individually or collectively by the one or more processors, may cause the system to generate a processed refined grain image by fusing the high-frequency components and the low-frequency components with the refined grain image based on the per-pixel weights. The per-pixel fused film grain image may be generated based on the processed refined grain image.
In an embodiment, the one or more instructions, when executed individually or collectively by the one or more processors, may cause the system to train the first machine learning model by receiving a first set of images and a second set of images. The first set of images may be obtained from a sensor of the imaging device. The second set of images may be generated by applying one or more filters to one or more regions of the first set of images. The one or more instructions, when executed individually or collectively by the one or more processors, may cause the system to train the first machine learning model by generating a set of sample coarse grain images based on the first set of images. The one or more instructions, when executed individually or collectively by the one or more processors, may cause the system to train the first machine learning model by computing a loss value based on a comparison between the set of sample coarse grain images and the second set of images. The one or more instructions, when executed individually or collectively by the one or more processors, may cause the system to train the first machine learning model by updating parameters of the first machine learning model based on the one or more losses. The one or more instructions, when executed individually or collectively by the one or more processors, may cause the system to train the first machine learning model by determining whether the loss value satisfies a convergence criteria defined by a pre-defined threshold dataset.
In an embodiment, the one or more instructions, when executed individually or collectively by the one or more processors, may cause the system to train the second machine learning model by receiving a third set of images and a second set of images. The third set of images may be generated by applying a layer of a sample coarse grain image to each image in a first set of images. The first set of images may be obtained from a sensor of the imaging device. The second set of images may be generated by applying one or more filters to one or more regions of the first set of images. The one or more instructions, when executed individually or collectively by the one or more processors, may cause the system to train the second machine learning model by generating a set of refined sample grain images by refining each image of the third set of images fused with one or more latent noise. The one or more instructions, when executed individually or collectively by the one or more processors, may cause the system to train the second machine learning model by computing a loss value by comparing the set of refined sample grain images to the second set of images. The one or more instructions, when executed individually or collectively by the one or more processors, may cause the system to train the second machine learning model by updating parameters of the second machine learning model based on the applied one or more losses based on the determination that the loss value does not satisfy the convergence criteria. The one or more instructions, when executed individually or collectively by the one or more processors, may cause the system to train the second machine learning model by determining whether the loss value satisfies a convergence criteria defined by a pre-defined threshold dataset.
In an embodiment, the one or more predetermined parameters may include at least one of a dimensionality of a latent space, a type of distribution, a mean and variance of a distribution, a seed value for random number generation, a transformation matrix, or filters applied to noise vectors.
In an embodiment, a non-transitory computer-readable medium storing one or more instructions that, when executed individually or collectively by one or more processors of a system, may cause the system to receive an input image from an imaging device. The non-transitory computer-readable medium storing one or more instructions that, when executed individually or collectively by one or more processors of a system, may cause the system to generate a patch-wise randomized image by fusing a plurality of noises into an input image in a patch-wise manner. The patch-wise randomized image may indicate an image generated by randomly transforming a plurality of spatially distinct patches extracted from the input image. The non-transitory computer-readable medium storing one or more instructions that, when executed individually or collectively by one or more processors of a system, may cause the system to generate, using a first machine learning model, a coarse grain image based on the patch-wise randomized image. The coarse grain image may indicate an image with grains of the grain patterns having a size exceeding a predetermined grain size and having a grain strength exceeding a predetermined grain strength. The grain patterns may be adjusted, using the first machine learning model, to avoid repetition. The non-transitory computer-readable medium storing one or more instructions that, when executed individually or collectively by one or more processors of a system, may cause the system to generate, using a second machine learning model, a refined grain image based on the coarse grain image. The refined grain image may indicate an image having a grain structure that is spatially aligned with the coarse grain image. The non-transitory computer-readable medium storing one or more instructions that, when executed individually or collectively by one or more processors of a system, may cause the system to generate a per-pixel fused film grain image based on the refined grain image and the input image. The per-pixel fused film grain image may indicate an image with the grain patterns distributed in a non-periodic manner and uniform luminance across spatial regions of the refined grain image. The non-transitory computer-readable medium storing one or more instructions that, when executed individually or collectively by one or more processors of a system, may cause the system to generate the noise-pattern image based on merging the input image with the per-pixel fused film grain image.
The present disclosure provides various advantages as mentioned below:
-
- a) The present disclosure provides realistic, natural-looking grain that improves image texture without generating synthetic or repetitive patterns.
- b) The present disclosure enables preservation of subtle textures in the captured images, thereby contributing to the visual richness and realism of the captured images.
- c) The present disclosure is computationally efficient, allowing high-quality results without excessive processing overhead.
- d) The method and system of the present disclosure leverage parametric deep learning models to provide fine-grained control over noise characteristics, enabling precise customization.
- e) The present disclosure enhances the artistic and emotional impact of visual media, particularly in creative and cinematic applications.
- f) The present disclosure enables adaptive noise synthesis in near real-time, making the method and system suitable for both still image and video post-processing workflows.
As would be apparent to a person in the art, various working modifications may be made to the method in order to implement the inventive concept as taught herein. The drawings and the foregoing description give examples of embodiments. Those skilled in the art will appreciate that one or more of the described elements may well be combined into a single functional element. Alternatively, certain elements may be split into multiple functional elements. Elements from one embodiment may be added to another embodiment. For example, orders of processes described herein may be changed and are not necessarily limited to the manner described herein.
Moreover, the actions of any signal flow diagram need not be implemented in the order shown; nor do all of the acts necessarily need to be performed. Also, those acts that are not dependent on other acts may be performed in parallel with the other acts.
Claims
1. A method for generating a noise-pattern image, the method comprising:
- receiving an input image from an imaging device;
- generating a patch-wise randomized image by fusing a plurality of noises into an input image in a patch-wise manner, wherein the patch-wise randomized image indicates an image generated by randomly transforming a plurality of spatially distinct patches extracted from the input image;
- generating, using a first machine learning model, a coarse grain image based on the patch-wise randomized image, wherein the coarse grain image indicates an image with grains of the grain patterns having a size exceeding a predetermined grain size and having a grain strength exceeding a predetermined grain strength;
- generating, using a second machine learning model, a refined grain image based on the coarse grain image, wherein the refined grain image indicates an image having a grain structure that is spatially aligned with the coarse grain image;
- generating a per-pixel fused film grain image based on the refined grain image and the input image, wherein the per-pixel fused film grain image indicates an image with the grain patterns distributed in a non-periodic manner and uniform luminance across spatial regions of the refined grain image; and
- generating the noise-pattern image based on merging the input image with the per-pixel fused film grain image.
2. The method as claimed in claim 1, wherein the receiving the input image from the imaging device comprises:
- obtaining the input image from at least one of a memory of the imaging device or a real-time image captured by the imaging device, and
- wherein the imaging device comprises at least one of a digital camera, a smartphone and a sensor-enabled display device.
3. The method as claimed in claim 1, wherein the generating the patch-wise randomized image comprises:
- segmenting the input image into a plurality of patches based on a predefined patch size;
- performing a stochastic transformation on each of the plurality of patches based on a cost function, wherein the stochastic transformation indicates a localized random modification of each of the plurality of patches, and wherein the cost function corresponds to a degree of correlation between adjacent patches in the plurality of patches;
- reassembling each of the plurality of stochastically transformed patches to corresponding positions in the input image; and
- generating the patch-wise randomized image based on the reassembled plurality of stochastically transformed patches.
4. The method as claimed in claim 1, wherein the generating the coarse grain image comprises:
- receiving the patch-wise randomized image;
- applying, using the first machine learning model, a layer of coarse film grain image to the patch-wise randomized image; and
- generating the coarse grain image based on the layer of coarse film grain image being applied to the patch-wise randomized image.
5. The method as claimed in claim 1, wherein the generating the refined grain image comprises:
- receiving the coarse grain image;
- generating one or more latent noise patterns based on one or more predetermined parameters and a predefined gain strength;
- fusing the coarse grain image with the one or more latent noise patterns;
- refining the coarse grain image fused with the one or more latent noise patterns through adjusting a grain intensity based on one or more local image statistics, wherein the one or more local image statistics comprise at least one of a pixel brightness and a local contrast; and
- generating the refined grain image based on the refined coarse grain image fused with the one or more latent noise patterns.
6. The method as claimed in claim 1, further comprising:
- extracting, by applying a high-pass filter to the refined grain image, high-frequency components from the refined grain image, wherein the high-frequency components indicate a spatial variation of the refined grain image, and wherein the high-frequency components comprise texture information, the grain structure, and edge details;
- extracting, by applying a low-pass filter to the input image, low-frequency components from the input image, wherein the low frequency components correspond to a spatial variation of the input image, and wherein the low-frequency components comprise an intensity, a brightness, and color information;
- deriving per-pixel weights based on the high-frequency components and the extracted low-frequency components; and
- generating a processed refined grain image by fusing the high-frequency components and the low-frequency components with the refined grain image based on the per-pixel weights,
- wherein the per-pixel fused film grain image is generated based on the processed refined grain image.
7. The method as claimed in claim 1, further comprising:
- training the first machine learning model, wherein the training the first machine learning model comprises: receiving a first set of images and a second set of images, wherein the first set of images is obtained from a sensor of the imaging device, and wherein the second set of images are generated by applying one or more filters to one or more regions of the first set of images; generating a set of sample coarse images based on the first set of images.; computing a loss value based on a comparison between the set of sample coarse grain images and the second set of images; updating parameters of the first machine learning model based on the one or more losses; and determining whether the loss value satisfies a convergence criteria defined by a pre-defined threshold dataset.
8. The method as claimed in claim 1, comprising:
- training the second machine learning model, wherein the training the second machine learning model comprises: receiving a third set of images and a second set of images, wherein the third set of images is generated by applying a layer of a sample coarse grain image to each image in a first set of images, wherein the first set of images is obtained from a sensor of the imaging device, and wherein the second set of images is generated by applying one or more filters to one or more regions of the first set of images; generating a set of refined sample grain images by refining each image of the third set of images fused with one or more latent noise; computing a loss value by comparing the set of refined sample grain images to the second set of images; updating parameters of the second machine learning model based on the one or more losses; and
- determining whether the loss value satisfies a convergence criteria defined by a pre-defined threshold dataset.
9. The method as claimed in claim 3, wherein the segmenting the input image into the plurality of patches comprises:
- iteratively extracting rectangular regions from the input image.
10. The method as claimed in claim 5, wherein the one or more predetermined parameters include at least one of a dimensionality of a latent space, a type of distribution, a mean and variance of a distribution, a seed value for random number generation, a transformation matrix, or filters applied to noise vectors.
11. A system for generating a noise-pattern image, the system comprising:
- one or more processors including processing circuitry; and
- memory coupled to the one or more processors and configured to store one or more instructions,
- wherein the one or more instructions, when executed individually or collectively by the one or more processors, cause the system to:
- receive an input image from an imaging device;
- generate a patch-wise randomized image by fusing a plurality of noises in a patch-wise manner in an input image, wherein the patch-wise randomized image indicates an image generated by randomly transforming a plurality of spatially distinct patches extracted from the input image;
- generate, using a first machine learning model, a coarse grain image based on the patch-wise randomized image, wherein the coarse grain image indicates an image with grains of the grain patterns having a size exceeding a predetermined grain size and having a grain strength exceeding a predetermined grain strength;
- generate, using a second machine learning model, a refined grain image based on the coarse grain image, wherein the refined grain image indicates an image having a grain structure that is spatially aligned with the coarse grain image;
- generate a per-pixel fused film grain image based on the refined grain image and the input image, wherein the per-pixel fused film grain image indicates an image with the grain patterns distributed in a non-periodic manner and uniform luminance across spatial regions of the refined grain image; and
- generate the noise-pattern image based on merging the input image with the per-pixel fused film grain image.
12. The system as claimed in claim 9, wherein the one or more instructions, when executed individually or collectively by the one or more processors, cause the system to:
- obtain the input image from at least one of a memory of the imaging device or a real-time image captured by the imaging device, and
- wherein the imaging device comprises at least one of a digital camera, a smartphone and a sensor-enabled display device.
13. The system as claimed in claim 9, wherein the one or more instructions, when executed individually or collectively by the one or more processors, cause the system to:
- segment the input image into a plurality of patches based on a predefined patch size;
- perform a stochastic transformation on each of the plurality of patches based on a cost function, wherein the stochastic transformation indicates a localized random modification of each of the plurality of patches, and wherein the cost function corresponds to a degree of correlation between adjacent patches in the plurality of patches;
- reassemble each of the plurality of stochastically transformed patches to corresponding positions in the input image; and
- generate the patch-wise randomized image based on the reassembled plurality of stochastically transformed patches.
14. The system as claimed in claim 9, wherein the one or more instructions, when executed individually or collectively by the one or more processors, cause the system to:
- receive the patch-wise randomized image;
- apply, using the first machine learning model, a layer of coarse film grain image to the patch-wise randomized image; and
- generate the coarse grain image based on the layer of coarse film grain image being applied to the patch-wise randomized image.
15. The system as claimed in claim 9, wherein the one or more instructions, when executed individually or collectively by the one or more processors, cause the system to:
- receive the coarse grain image;
- generate one or more latent noise patterns based on one or more predetermined parameters and a predefined gain strength;
- fuse the coarse grain image with the one or more latent noise patterns;
- refine the coarse grain image fused with the one or more latent noise patterns through adjusting grain intensity based on one or more local image statistics, wherein the one or more local image statistics comprise at least one of a pixel brightness and a local contrast; and
- generate the refined grain image based on the refined coarse grain image fused with the one or more latent noise patterns.
16. The system as claimed in claim 9, wherein the one or more instructions, when executed individually or collectively by the one or more processors, cause the system to:
- extract, by applying a high-pass filter to the refined grain image, high-frequency components from the refined grain image, wherein the high-frequency components indicate a spatial variation of the refined grain image, and wherein the high-frequency components comprise texture information, the grain structure, and edge details;
- extract, by applying a low-pass filter to the input image, low-frequency components from the input image, wherein the low-frequency components correspond to a spatial variation of the input image and comprise an intensity, a brightness, and color information;
- derive per-pixel weights based on the high-frequency components and the low-frequency components;
- generate a processed refined grain image by fusing the high-frequency components and the low-frequency components with the refined grain image based on the per-pixel weights, wherein the per-pixel fused film grain image is generated based on the processed refined grain image.
17. The system as claimed in claim 9, wherein the one or more instructions, when executed individually or collectively by the one or more processors, cause the system to train the first machine learning model by:
- receiving a first set of images and a second set of images, wherein the first set of images is obtained from a sensor of the imaging device, and wherein the second set of images are generated by applying one or more filters to one or more regions of the first set of images;
- generating a set of sample coarse grain images based on the first set of images.;
- computing a loss value based on a comparison between the set of sample coarse grain images and the second set of images;
- updating parameters of the first machine learning model based on the one or more losses; and
- determining whether the loss value satisfies a convergence criteria defined by a pre-defined threshold dataset.
18. The system as claimed in claim 9, wherein the one or more instructions, when executed individually or collectively by the one or more processors, causes the system to train the second machine learning model by:
- receiving a third set of images and a second set of images, wherein the third set of images is generated by applying a layer of a sample coarse grain image to each image in a first set of images, wherein the first set of images is obtained from a sensor of the imaging device, and wherein the second set of images is generated by applying one or more filters to one or more regions of the first set of images;
- generating a set of refined sample grain images by refining each image of the third set of images fused with one or more latent noise;
- computing a loss value by comparing the set of refined sample grain images to the second set of images;
- updating parameters of the second machine learning model based on the applied one or more losses; and
- determining whether the loss value satisfies a convergence criteria defined by a pre-defined threshold dataset.
19. The system as claimed in claim 13, wherein the one or more predetermined parameters include at least one of a dimensionality of a latent space, a type of distribution, a mean and variance of a distribution, a seed value for random number generation, a transformation matrix, or filters applied to noise vectors.
20. A non-transitory computer-readable medium storing one or more instructions that, when executed individually or collectively by one or more processors of a system, cause the system to:
- receive an input image from an imaging device;
- generate a patch-wise randomized image by fusing a plurality of noises into an input image in a patch-wise manner,
- wherein the patch-wise randomized image indicates an image generated by randomly transforming a plurality of spatially distinct patches extracted from the input image;
- generate, using a first machine learning model, a coarse grain image based on the patch-wise randomized image,
- wherein the coarse grain image indicates an image with grains of the grain patterns having a size exceeding a predetermined grain size and having a grain strength exceeding a predetermined grain strength,
- wherein the grain patterns are adjusted, using the first machine learning model, to avoid repetition;
- generate, using a second machine learning model, a refined grain image based on the coarse grain image,
- wherein the refined grain image indicates an image having a grain structure that is spatially aligned with the coarse grain image;
- generate a per-pixel fused film grain image based on the refined grain image and the input image,
- wherein the per-pixel fused film grain image indicates an image with the grain patterns distributed in a non-periodic manner and uniform luminance across spatial regions of the refined grain image; and
- generate the noise-pattern image based on merging the input image with the per-pixel fused film grain image.
Type: Application
Filed: Mar 24, 2026
Publication Date: Nov 26, 2026
Applicant: SAMSUNG ELECTRONICS CO., LTD. (Suwon-si)
Inventors: Sarvesh (Bengaluru), Yathish REDDY M (Bengaluru), Rishabh KAUSHIK (Bengaluru), Raj Narayana GADDE (Bengaluru), Addanki SANKARA RAO (Bengaluru), Youngjun KIM (Suwon-si), Gihun KIM (Suwon-si), Daehun KIM (Suwon-si)
Application Number: 19/576,419