# Patent

## Title
Visualizing a custom product in situ

## Abstract

Techniques are described for visualizing a product at the actual location in the environment at which the product is to be used or displayed. An embodiment of the approaches described herein may be used in the context of a computer-based system that can receive and store digital images, receive a request to manufacture a custom framed product including an identification of an image to be framed and a type of mat and/or frame, and display a preview image of the custom framed product that simulates the actual appearance of the product as closely as possible. With such a system, the preview image may be highly realistic under idealized lighting and display conditions.

## Background
CROSS REFERENCE TO RELATED APPLICATIONS
This application claims under 35 U.S.C. §120 the benefit as a Continuation of application Ser. No. 13/539,788, filed Jul. 2, 2012, which claims the benefit under 35 U.S.C. §119(e) of Provisional Application No. 61/529,883, filed Aug. 31, 2011, the entire contents of each of which is hereby incorporated by reference as if fully set forth herein. The applicant(s) hereby rescind any disclaimer of claim scope in the parent application(s) or the prosecution history thereof and advise the USPTO that the claims in this application may be broader than any claim in the parent application(s).


This application is related to U.S. application Ser. No. 11/925,716, filed Oct. 26, 2007, U.S. application Ser. No. 12/257,016, filed Oct. 23, 2008, and U.S. application Ser. No. 12/546,582, filed Aug. 24, 2009, the entire contents of each of which are hereby incorporated by reference for all purposes as if fully set forth herein.
COPYRIGHT STATEMENT
A portion of the disclosure of this patent document contains material which is subject to copyright protection. The copyright owner has no objection to the facsimile reproduction by anyone of the patent document or the patent disclosure as it appears in the Patent and Trademark Office patent file or records, but otherwise reserves all copyright rights whatsoever.
APPENDIX DATA
This application includes a transmittal under 37 C.F.R. §1.52(e) of a Computer Program Listing Appendix. The Appendix, which comprises the below-listed text file that is IBM PC/XT/AT compatible and MS-Windows compatible. All of the material disclosed in the Computer Program Listing Appendix can be found at the U.S. Patent and Trademark Office archives and is hereby incorporated by reference into the present application for all purposes as if fully set forth herein.
Object Description: ThinningByCellularAutomata.txt, size 41,902 Bytes, created: Aug. 25, 2011
BACKGROUND
Certain approaches described in certain sections of this disclosure and identified as “background” or “prior approaches” are approaches that could be pursued, but not necessarily approaches that have been previously conceived or pursued. Therefore, unless otherwise indicated, it should not be assumed that any of the approaches that are so described actually qualify as prior art merely by virtue of identification as “background” or “prior approaches.”
Several computer-automated systems are presently available with which end users or consumers of products may design, preview, and order custom-manufactured products that incorporate images or graphics. Examples of products include wearing apparel, beverage vessels, and accessory items. In a typical system, an end user or consumer uses a general purpose computer terminal, such as a personal computer with a browser, to connect over a public network to a server computer. The user selects a stored graphic image, or uploads a digital image that the user obtained or made. The user selects a type of product to which the graphic image is to be applied and specifies various parameter values relating to the product such as color, size, image placement location, or others. The server computer or terminal generates a rendered image showing how the product will appear after custom manufacture with the specified image applied. The user approves the rendered image and places an order for the product. A manufacturer receives the order data, manufactures the product as specified and provides the custom manufactured product to the user.
One type of product of interest—not offered in typical prior systems—is framed or mounted materials. A frame may comprise wood molding, metal pieces, or plastics. The mounting may include one or more mats or may comprise float mounting. The materials may include digital images of film photographs, original digital art, prints, paintings, animation cells, or any other graphical work or work of the visual arts. Individualized online design and custom manufacture of such framed and mounted material is either impossible or imperfect using existing systems.



BRIEF DESCRIPTION OF DRAWINGS
FIG. 1 is a flowchart of a process for visualizing a custom product in-situ;
FIG. 2 illustrates an example marker.
FIG. 3 illustrates an example marker.
FIGS. 4A-B (collectively FIG. 4) is a flowchart of a process for characterizing a user site with a marker.
FIG. 5 is a flowchart of a process for building a digital asset with found user site data.
FIG. 6 is a block diagram that illustrates a computer system with which the techniques herein may be implemented.



DESCRIPTION OF EXAMPLE EMBODIMENTS
In the following description, for the purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the present invention. It will be apparent, however, that the present invention may be practiced without these specific details. In other instances, well-known structures and devices are shown in block diagram form in order to avoid unnecessarily obscuring the present invention.
Visualizing a Custom Product In Situ
An embodiment of the approaches herein may be used in the context of a computer-based system that can receive and store digital images, receive a request to manufacture a custom framed product including an identification of an image to be framed and a type of mat and/or frame, and display a preview image of the custom framed product that simulates the actual appearance of the product as closely as possible. With such a system, the preview image may be highly realistic under idealized lighting and display conditions. However, the appearance of actual framed images may vary widely in different environments. For example, custom framed products typically are displayed by hanging on a wall, but the appearance of the product may vary greatly in environments such as interior rooms with different levels of lighting, kinds of lighting, kinds of walls, wallpaper, reflective surfaces, or other background environment.
Frame elements and mats are represented in 3D models with parameterized values to permit resizing and use with different visual material. For example, 3D models of frame elements may be prepared by placing actual frame stick material in a fixed rig adjacent to a first surface mirror; a laser is projected at a known angle against the surface of the frame stick material and a digital image is formed of the molding together with the laser line and a programmed computer deduces, from the laser line, a geometry of a front surface of the frame stick material and the rear profile is obtained from the first surface mirror. A subsequent image is taken with the laser line shuttered off, to capture an actual surface texture of the molding. The resulting perspective view of the molding surface texture is flattened to permit subsequent mapping of the flattened texture onto a computer-generated 3D model of the molding. For mats, actual thickness may be manually measured and entered as a parameter value, and a flat plan view digital image of the mat texture may be taken and used in 3D texture mapping.
In an embodiment, the preview image of a custom framed product may be modified in a way that closely simulates the actual appearance that the custom framed product will have in a particular environment.
The approaches herein offer numerous benefits in comparison to prior approaches. For example, the design of the example markers shown herein and the nature of recognition is different for characterizing the geometry of the space. The design of the example markers and the processing logic described herein allows for both the characterization of the geometry and also the lighting. This robust characterization enables ensuring that geometry of a visualized product is accurate in the characterized environment. In addition, the logic herein can adjust the nature of the rendering to compensate for the color or lighting of the user environment based on a user image of a single marker and single user-provided photograph.
Further, the system(s) herein accommodate the dynamic nature of custom manufactured products, which can be configured both in the nature of the assembly as well as the nature of the embellishment. The system(s) contemplate the sharing of these characterized environments in an online marketplace together with configured/designed product to be visualized in-situ. The “complete” nature of the system(s) contemplate the characterization of product for configuration/embellishment, enabling users to configure/embellish and visualizing the resultant embodiments in characterized environments.
For purposes of illustrating the in-situ visualization system and method, embodiments described herein refer to a custom framed product. However, the in-situ visualization system and method may also be used to visualize other mountable or displayable custom products for which it is desirable to provide an in-situ visualization of the custom product to users. Examples of other custom products to which the in-situ visualization system and method may be applied include custom manufactured products with user provided images or text (see, for example, related U.S. patent application Ser. No. 12/546,582) and a product on which a customized embroidery has been placed (see, for example, related U.S. patent application Ser. No. 12/257,016).
A Process for Visualizing a Custom Product In-Situ
With reference to FIG. 1, in an embodiment, a data processing process comprises the following general steps:
A digital representation of a marker is transmitted (block 101) to a user. For example, the user, who may be an end consumer of a commercial custom manufactured product service, uses a computer terminal to connect to a server computer associated with the service. The user either establishes an account with the service or logs into an existing account. The user initiates a process of designing a custom product. The user is prompted to download or print a digital file, such as a PDF document or graphical image file, containing the representation of the marker.
The user prints (block 102) the marker on a sheet of paper. In an embodiment, the printed size of the sheet of paper is stored in the service in association with data describing the marker. For example, the service may store metadata indicating that a particular marker is 81⁄2×11 inches, or metric size A4, or any other suitable size, and the user will be prompted or otherwise required to print the marker on a sheet of that size.
The user positions (block 103) the paper with marker in their environment at a location at which the user wishes to visualize the custom manufactured product. For example, the user attaches the sheet of paper to a wall on which the user plans to mount or display a customizable product.
The user takes (block 104) a digital photo of the marker in-situ. In this context, “in situ” means at the actual location in the environment at which a custom product is to be used or displayed.
The user transmits (block 105) the photo to an In-Situ Visualization service.
As further described herein, the service uses the marker to characterize (block 106) the position, orientation and lighting of the user photograph.
The service produces (block 107) a digital asset that visualizes a custom product in-situ. The digital asset may be produced such that the custom product as visualized by the digital asset reflects the detected position and orientation of the marker in the user photograph and the lighting at the actual location of the marker. For example, the digital asset may be a digital graphic image that the service can cause to be displayed on the user computer terminal to give the user a simulated view of a realistic appearance of the custom manufactured product as if actually mounted or displayed in the user environment at the location where the user previously positioned the sheet. Instead of a digital image, the digital asset may be digital video, digital audio/visual program, or graphical model of the custom product. In an embodiment, displaying the digital asset as described in this paragraph may be implemented in part as described in U.S. application Ser. No. 11/925,716, filed Oct. 6, 2007, the entire contents of which are hereby incorporated by reference for all purposes as if fully set forth herein.
Aspects of components of the preceding general process are now described.
Marker
In an embodiment, a marker may have the following characteristics. The marker may have one or more linear components that may be recognized, using image recognition techniques, as lines in a photograph taken by a digital camera. For example, in an embodiment the marker comprises a plurality of lines that are typically 0.25′′ to 0.5′′ inches in width or thickness. Linear components of these sizes are expected to appear sufficiently thick or bold in a user image to permit computer-based recognition of the lines in the user image, even in the presence of background user environmental elements such as wall textures, other mounted materials, doors, wall corners, floors, and other elements. Lines that are too thin may be difficult to recognize as part of the marker, whereas lines that are too thick may be difficult to accurately position in space in relation to the environment.
In an embodiment, the marker has a border when printed and photographed, so that the linear components are isolated from other picture elements in the environment. The border may be a blank margin. Thus, in an embodiment, a blank border separates the linear components from an edge of a printed sheet showing the marker. Therefore, the border enables better recognition of the marker from the environment and breaks or separates the connectivity of the linear components from other image elements that are not part of the marker.
In an embodiment, the linear components are arranged to form a connectivity graph. The connectivity graph is any association of arcs that are connected at points termed nodes to form a plurality of enclosed regions termed polytopes. In an embodiment, each particular marker has a particular connectivity graph with different connectivities as compared to other marker instances as determined by a plurality of features. Example features that may differentiate one connectivity graph from another include aspects of line intersections, number of lines, and number of enclosed regions. Embodiments do not require use of any particular marker format or style; for example, while one example disclosed herein has the general appearance of a rectangular grid, many other geometric arrangements may be used. What is important is that the service has stored metadata describing a reference connectivity graph that is expected to be seen in the user's digital image of the marker and environment.
In an embodiment, the form of the connectivity graph of the marker is distinct in orientation. For example, each marker is provided with one or more features such that changing an orientation or rotation of the marker yields a different visual appearance. This characteristic enables computer analysis of the user digital image to determine the actual orientation that was used for the marker when it was placed in the user environment.
In an embodiment, the spatial relationships of the connectivity graph are recorded, and used as a means of detecting the position and orientation of the marker in the photograph. For example, detecting may involve seeking to recognize known features of nodes, lines, and polytopes in a reference marker that match the same features in the user digital image.
In an embodiment, features of nodes include a count of nodes in the entire marker graph, a count of arcs connecting at a given node, and an adjacency of a node to polytopes having a given count of nodes. These features of nodes can be used to differentiate one connectivity graph from another. That is, if the count of nodes, count of arcs connecting at a given node, and an adjacency to a count of polytopes of a given node count are known, then the same features can be identified when the user's digital image is processed, and the marker can be recognized in the user's digital image only when the counts and adjacency match.
In an embodiment, features of lines also may be used for detection and differentiation. In an embodiment, relevant features include the number of lines (arcs) or count of arcs in the marker graph, and the adjacency of each line to polytopes of a given arc count.
In an embodiment, features of enclosed regions or polytopes also may be used for detection and differentiation. In an embodiment, features relevant to the number of enclosed regions (polytopes) include a count of polytopes in the marker graph and a count of the nodes in each polytope.
In certain embodiments, the connectivity graph of lines may also be user-readable as a symbol, graphic, or legend, such as a company's brand or trademark.
In an embodiment, one or more open spaces are provided in the printed marker and may be unprinted or printed with light colors or tones that provide a means of detecting the lighting of the user site. The open spaces may be termed “light sampling points”. Additionally, full printing areas of the line graph of the marker are known, and may be termed “dark sampling points”. If the “light sampling points” and “dark sampling points” are detected in a user image of the marker in the environment, then based on luminance values or other data representing the sampling points, the computer can determine a lighting gradient that exists between the sampling points and can modify the appearance of a digital asset to simulate the actual lighting in the user environment.
Colors may comprise black, white, and gray, in one embodiment and can facilitate different types of image analysis. For example, if the computer cannot detect a gray space in a candidate marker in the user image, then the computer can determine that the user image has excessive white level or is “blown out” and needs to be retaken to permit accurate recognition.
The lighting in an environment can appear to have a color bias when recorded by a digital device such as a digital camera. This bias results because the light illuminating the environment may be one or more of a variety of different types including sunlight, incandescent, mercury vapor, fluorescent, etc. that have particular spectral distributions that the human eye sees as white, but that the digital device records as a particular color.
In one embodiment, the marker includes a medium tone gray area that permits accurate recognition of a lighting bias in the user image. Additionally or alternatively, pastel color tones may be used to assist user recognition of color bias in the lighting of the user environment. For example it may be useful to include a known green tone or pink tone in selected areas of the reference marker to aid in recognizing whether the user environment is principally illuminated using fluorescent lamps or incandescent lamps and applying a similar color bias to the digital asset that simulates the custom manufactured product in the environment under the same lighting.
Example Markers
FIG. 2 and FIG. 3 illustrate examples of markers. Referring first to FIG. 2, in one embodiment, a marker resembles a trademark of a business entity, in this case, the Z logo of Zazzle Inc., Redwood City, Calif. Marker 202 comprises a plurality of arcs 204. Example nodes 206A, 206B are at intersections of arcs, and the marker defines a plurality of polytopes of which polytopes 208A, 208B, 208C are examples. Corner portions 210 of the marker 202 are non-uniform with respect to the manner of arc intersection so that an orientation of the marker may be detected using computer image analysis techniques.
The count of arcs associated with a particular node also varies; for example, node 206A is at an intersection of four (4) arcs whereas node 206B is at an intersection of three (3) arcs. Therefore when the marker 202 is recognized in a user image the marker may be characterized in terms of the number of nodes and the count of arcs at each node and compared to reference data describing a reference marker to determine if a match occurs. The marker 202 also may be characterized by the number of adjacent polytopes associated with a node; for example, node 206A is associated with four (4) adjacent polytopes whereas node 206B has three (3) adjacencies. Further, the characterization data for a particular marker enables efficient image processing; for example, an image recognition algorithm may be configured to reject a candidate item recognized in a user image as a potential matching marker at the earliest time at which it is determined that a characterization of the item does not match a reference marker. For example, as the computer proceeds to recognize a candidate item, as soon as the computer determines that the candidate item has too few or too many arcs, nodes, or polytopes, the candidate item may be rejected and the process may move on to considering another candidate item.
The number of characterization items for a marker preferably is relatively small to avoid requiring unnecessarily large amounts of data processing time. For example it is known that when a marker is complex and has a large number of arcs, nodes and polytopes, the processing time and storage space needed to accurately recognize the marker may become prohibitive. Therefore, markers having relatively simple connectivity graphs are preferred.
As another example, in FIG. 3, a marker resembles a grid of rectangles. The arrangement of FIG. 3 offers the benefit of fitting a rectangular letter sized sheet of paper well.
In both FIG. 2, FIG. 3, the marker includes a blank border around the perimeter of the marker, lines that are large enough to detect in a user image, and other features such as lines, intersections, and enclosed regions that are uniquely recognizable against a background. Further, FIG. 2, FIG. 3 represent markers that incorporate shapes or graphs that are otherwise uncommon in a natural setting, which improves the performance of the recognition process herein.
In various embodiments, the service may provide a marker that is particular to the end user or customer, or may provide a plurality of different markers that the end user may select from and download. For example, different markers may be associated with or tied to different products, services, users, or classes of products. For example, different products may have different sizes and the user may wish to visualize two different products of different sizes in the same general environment; in such a case the service may provide two different markers of different sizes. Different products of different types also may warrant the use of different markers. For example, a custom painted or printed stretch canvas product might use a different kind of marker than a custom decorated skateboard deck.
In-Situ Visualization Service
In an embodiment, a computer-based in-situ visualization service comprises one or more computer programs or other software elements that are configured to perform the following general tasks: characterizing the user site with the marker; building a digital asset using the found user site data and a photograph or other digital image; rendering the digital asset.
A Process for Characterizing the User Site with a Marker
In an embodiment, characterizing the user site with the marker generally comprises digitally recognizing a connected graph based on a reference graph using a process illustrated in flowchart form in FIG. 4.
First, assume that as described above, a user has produced a printed (block 102) copy of a marker, placed (block 103) the printed marker in the user environment at a location at which a custom product will be displayed or mounted, taken (block 104) a digital photograph or image of the environment including the marker, and uploaded (block 105) the user photograph to the service. For example, the user photograph could be a digital image of a portion of the interior of a room in which the marker has been attached to a wall.
The process of FIG. 4 may be implemented in computer logic to recognize the marker in the user photograph, for example, as part of using (block 106) the user photograph of the marker to characterize the user photo, the location and orientation of the marker, and lighting at the marker location:
A linear image is produced by filtering (block 401) the user photograph so that linear features in the size range of the marker lines are left and other linear and non-linear features are filtered out. For example, a thresholded bandpass filter or an edge filter may be used. The result is an output image which when displayed comprises only linear features in the size range of the marker lines as black on a white background.
The linear image is further filtered (block 402) into a Boolean array of pixels using cellular automata, so that linear elements are one (1) pixel in width, and each line is represented in the image by its pixels being set to true. Example value tables for cellular automata are attached in the Appendix. The cellular automata approach uses a rule-based system with threshold neighborhood inputs. In the cellular automata approach, neighbor pixels of a particular pixel under consideration form instructions or opcodes to an automaton that produces a result pixel value based on the input, and the particular pixel is then replaced with the result pixel value. Unlike prior applications of cellular automata, in the present approach cellular automata are applied to line thinning.
The array of pixels is traversed (block 403). When a true pixel is found, a candidate graph is built by traversing connected pixels. For example, when connected pixels are identified then a node is recognized. If no true pixels are found, the algorithm ends. As the candidate graph is created and stored in memory, if the node, arc or polytope counts are greater that of the reference graph, the candidate graph is disposed, and stored values for all connected pixels of the current line network are set to false. In one embodiment, the candidate graph and the reference graph are represented in a computer using a winged edge data structure. Other data structures and models may be used to represent candidate connectivity graph and the reference connectivity graph and the invention is not limited to a winged edge data structure.
By building and using connectivity graphs, the process may rapidly discard candidate graphs that do not meet one or more connectivity criteria of the reference graph. This process is unlike other approaches in which complete recognition and characterization of a candidate graph in the user image may be needed. For example, in the present approach there is no need to complete the recognition of a candidate graph that grows excessively large; it is simply discarded at the earliest opportunity, increasing performance and reducing time to recognize the marker. On completion of the candidate graph, if the node, arc or polytope counts are less than those of the reference graph, the candidate graph is disposed.
If a candidate graph's full set of connectivity characteristics matches (block 404) the reference graph, the algorithm continues at block 407. If a candidate graph is discarded or disposed and there are more true pixels in the array of pixels (block 405), then the traversal of the array of pixels continues at block 403. Otherwise, the algorithm ends (block 406) possibly with a notification to the user that the marker could not be detected in the user photograph.
Once there is a matching candidate graph, the orientation and position of the matching graph in the user photograph is found by calculating (block 407) a marker transform, which maps known nodes in the reference graph to found nodes in the matching graph. Thus, when a matching connectivity graph is identified, the pixel coordinates within the user image of nodes, arcs and polytopes are known, and may be mapped using the marker transform to the reference graph. Point mapping techniques using singular value decomposition may be used, for example, to determine the marker transform.
Once the marker transform is determined, light sampling points may be found (block 408) in the photograph. These points are used to determine a white point for the image, and a luminance gradient or map for rendering the digital asset. For example, the coordinates in reference space of a first light sampling point may be transformed, using the marker transform, to equivalent points in user image space; at those points, pixel values may be sampled or obtained to determine a baseline white value for the user image. In an embodiment, the luminance gradient is a set of values representing a range of the magnitude of reflected light across the user environment, and may be represented by a set of delta values in image space, for example, Δu and Δv values.
The marker transform may also be used (block 409) to find the dark sampling points in the user image, which are used to set a black point for rendering the digital asset. Thus, information may be extrapolated about the user environment including its geometry and lighting, and appropriate changes may be applied in to the image in terms of chroma spectrum, luminance, brightness, and other attributes so that the image appears, on the user's computer screen, as similar as possible to the actual appearance of the custom manufactured product when it is installed in the user environment.
A Process for Building a Digital Asset with Found User Site Data
In an embodiment, building a digital asset using the found user site data and a photograph or other digital image may involve the steps illustrated in the flowchart of FIG. 5.
Initially, a digital asset is built using layers as follows. The user photograph is adjusted (block 501) using the data obtained from the light sampling points and the dark sampling points.
A custom product reference is placed (block 502) into the user photograph using the marker transform for placement; the custom product reference may comprise a unique name or identifier, a geometric place holder such as a rectangle within a coordinate system, and that coordinate system transformed using the marker transform, which represents the custom manufactured product in which the user is interested.
The luminance gradient is applied (block 503) to modify the luminance of the custom product to match the light gradient of the user photograph based on a point of known luminance in the user image space.
Second, the custom product is displayed (block 504) using the following steps. In an embodiment, the user chooses the custom product and its attributes by interacting with the service. In an embodiment, the user's in-situ digital asset is loaded. In an embodiment, the rendering asset for the custom product is configured. In an embodiment, the custom product reference is set to the Custom Product asset.
Finally, in an embodiment, the in-situ asset is rendered and sent to the user display unit or browser. In an embodiment, displaying the custom product as described in this paragraph may be implemented as described in U.S. application Ser. No. 11/925,716, filed Oct. 26, 2007, the entire contents of which are hereby incorporated by reference for all purposes as if fully set forth herein.
Implementation Mechanism—Hardware Overview
According to one embodiment, the techniques described herein are implemented by one or more special-purpose computing devices. The special-purpose computing devices may be hard-wired to perform the techniques, or may include digital electronic devices such as one or more application-specific integrated circuits (ASICs) or field programmable gate arrays (FPGAs) that are persistently programmed to perform the techniques, or may include one or more general purpose hardware processors programmed to perform the techniques pursuant to program instructions in firmware, memory, other storage, or a combination. Such special-purpose computing devices may also combine custom hard-wired logic, ASICs, or FPGAs with custom programming to accomplish the techniques. The special-purpose computing devices may be desktop computer systems, portable computer systems, handheld devices, networking devices or any other device that incorporates hard-wired and/or program logic to implement the techniques.
For example, FIG. 6 is a block diagram that illustrates a computer system 600. Computer system 600 includes a bus 602 or other communication mechanism for communicating information, and a hardware processor 604 coupled with bus 602 for processing information. Hardware processor 604 may be, for example, a general purpose microprocessor.
Computer system 600 also includes a main memory 606, such as a random access memory (RAM) or other dynamic storage device, coupled to bus 602 for storing information and instructions to be executed by processor 604. Main memory 606 also may be used for storing temporary variables or other intermediate information during execution of instructions to be executed by processor 604. Such instructions, when stored in non-transitory storage media accessible to processor 604, render computer system 600 into a special-purpose machine that is customized to perform the operations specified in the instructions.
Computer system 600 further includes a read only memory (ROM) 608 or other static storage device coupled to bus 602 for storing static information and instructions for processor 604. A storage device 610, such as a magnetic disk or optical disk, is provided and coupled to bus 602 for storing information and instructions.
Computer system 600 may be coupled via bus 602 to a display 612, such as a cathode ray tube (CRT), for displaying information to a computer user. An input device 614, including alphanumeric and other keys, is coupled to bus 602 for communicating information and command selections to processor 604. Another type of user input device is cursor control 616, such as a mouse, a trackball, or cursor direction keys for communicating direction information and command selections to processor 604 and for controlling cursor movement on display 612. The input device typically has two degrees of freedom in two axes, a first axis (e.g., x) and a second axis (e.g., y), that allows the device to specify positions in a plane.
Computer system 600 may implement the techniques described herein using customized hard-wired logic, one or more ASICs or FPGAs, firmware and/or program logic which in combination with the computer system causes or programs computer system 600 to be a special-purpose machine. According to one embodiment, the techniques herein are performed by computer system 600 in response to processor 604 executing one or more sequences of one or more instructions contained in main memory 606. Such instructions may be read into main memory 606 from another storage medium, such as storage device 610. Execution of the sequences of instructions contained in main memory 606 causes processor 604 to perform the process steps described herein. In alternative embodiments, hard-wired circuitry may be used in place of or in combination with software instructions.
The term “storage media” as used herein refers to any non-transitory media that store data and/or instructions that cause a machine to operation in a specific fashion. Such storage media may comprise non-volatile media and/or volatile media. Non-volatile media includes, for example, optical or magnetic disks, such as storage device 610. Volatile media includes dynamic memory, such as main memory 606. Common forms of storage media include, for example, a floppy disk, a flexible disk, hard disk, solid state drive, magnetic tape, or any other magnetic data storage medium, a CD-ROM, any other optical data storage medium, any physical medium with patterns of holes, a RAM, a PROM, and EPROM, a FLASH-EPROM, NVRAM, any other memory chip or cartridge.
Storage media is distinct from but may be used in conjunction with transmission media. Transmission media participates in transferring information between storage media. For example, transmission media includes coaxial cables, copper wire and fiber optics, including the wires that comprise bus 602. Transmission media can also take the form of acoustic or light waves, such as those generated during radio-wave and infra-red data communications.
Various forms of media may be involved in carrying one or more sequences of one or more instructions to processor 604 for execution. For example, the instructions may initially be carried on a magnetic disk or solid state drive of a remote computer. The remote computer can load the instructions into its dynamic memory and send the instructions over a telephone line using a modem. A modem local to computer system 600 can receive the data on the telephone line and use an infra-red transmitter to convert the data to an infra-red signal. An infra-red detector can receive the data carried in the infra-red signal and appropriate circuitry can place the data on bus 602. Bus 602 carries the data to main memory 606, from which processor 604 retrieves and executes the instructions. The instructions received by main memory 606 may optionally be stored on storage device 610 either before or after execution by processor 604.
Computer system 600 also includes a communication interface 618 coupled to bus 602. Communication interface 618 provides a two-way data communication coupling to a network link 620 that is connected to a local network 622. For example, communication interface 618 may be an integrated services digital network (ISDN) card, cable modem, satellite modem, or a modem to provide a data communication connection to a corresponding type of telephone line. As another example, communication interface 618 may be a local area network (LAN) card to provide a data communication connection to a compatible LAN. Wireless links may also be implemented. In any such implementation, communication interface 618 sends and receives electrical, electromagnetic or optical signals that carry digital data streams representing various types of information.
Network link 620 typically provides data communication through one or more networks to other data devices. For example, network link 620 may provide a connection through local network 622 to a host computer 624 or to data equipment operated by an Internet Service Provider (ISP) 626. ISP 626 in turn provides data communication services through the world wide packet data communication network now commonly referred to as the “Internet” 628. Local network 622 and Internet 628 both use electrical, electromagnetic or optical signals that carry digital data streams. The signals through the various networks and the signals on network link 620 and through communication interface 618, which carry the digital data to and from computer system 600, are example forms of transmission media.
Computer system 600 can send messages and receive data, including program code, through the network(s), network link 620 and communication interface 618. In the Internet example, a server 630 might transmit a requested code for an application program through Internet 628, ISP 626, local network 622 and communication interface 618.
The received code may be executed by processor 604 as it is received, and/or stored in storage device 610, or other non-volatile storage for later execution.
Extensions and Alternatives
In the foregoing specification, embodiments of the invention have been described with reference to numerous specific details that may vary from implementation to implementation. Thus, the sole and exclusive indicator of what is the invention, and is intended by the applicants to be the invention, is the set of claims that issue from this application, in the specific form in which such claims issue, including any subsequent correction. Any definitions expressly set forth herein for terms contained in such claims shall govern the meaning of such terms as used in the claims. Hence, no limitation, element, property, feature, advantage or attribute that is not expressly recited in a claim should limit the scope of such claim in any way. The specification and drawings are, accordingly, to be regarded in an illustrative rather than a restrictive sense.

## Claims

1. A method for visualizing a custom product in situ, the method comprising:
storing first data that represents a reference connectivity graph of a marker;
obtaining a digital image of at least the marker;
analyzing the digital image to generate second data that represents a candidate connectivity graph;
based at least in part upon first data and the second data, determining whether the candidate connectivity graph matches the reference connectivity graph;
in response to determining that the candidate connectivity graph matches the reference connectivity graph, generating third data that at least maps nodes of the reference connectivity graph to nodes of the candidate connectivity graph;
using at least the third data to build a digital asset that visualizes the custom product in the digital image;
wherein using at least the third data to build a digital asset that visualizes the custom product in the digital image comprises determining an adjustment to a color, brightness, or luminance of at least a portion of an image of the custom product based at least in part on the third data that at least maps nodes of the reference connectivity graph to nodes of the candidate connectivity graph;
wherein the method is performed by one or more computing devices.

2. The method of claim 1, wherein the first data indicates one or more of:
a count of the nodes of the reference connectivity graph,
a count of arcs connecting at a particular node of the reference connectivity graph,
a count of lines or arcs of the reference connectivity graph,
a count of polytopes of the reference connectivity graph, or
a count of nodes of a particular polytope of the reference connectivity graph.

3. The method of claim 1, wherein the second data indicates one or more of:
a count of the nodes of the reference connectivity graph,
a count of arcs connecting at a particular node of the reference connectivity graph,
a count of lines or arcs of the reference connectivity graph,
a count of polytopes of the reference connectivity graph, or
a count of nodes of a particular polytope of the reference connectivity graph.

4. The method of claim 1, wherein the marker comprises one or more colored open spaces for aiding a digital image analysis technique applied to the digital image in detecting lighting in the environment in which the marker was photographed.

5. The method of claim 4, wherein at least one of the one or more colored open spaces is colored in a medium tone gray or a pastel color tone for aiding the digital image analysis technique in detecting color bias of lighting in the environment in which the marker was photographed.

6. The method of claim 1, further comprising applying a thresholded bandpass filter or an edge filter to the digital image to produce a digital image that comprises linear features in a size range of lines of the marker as black on a white background.

7. The method of claim 6, further comprising using a rule-based cellular automata with thresholded neighborhood inputs to thin at least one of the linear features.

8. The method of claim 1, further comprising determining an orientation or position of the marker in the digital image using the third data.

9. The method of claim 8, further comprising using a point mapping technique involving singular value decomposition to determine the third data.

10. The method of claim 1, further comprising using the third data to transform coordinates of a light sampling point in a coordinate space of the marker to an equivalent point in a coordinate space of the digital image.

11. The method of claim 10, further comprising sampling pixel values at the equivalent point to determine a baseline white value.

12. The method of claim 1, wherein building the digital asset comprises placing a custom product reference into the digital image using the third data for placement.

13. The method of claim 1, further comprising:
analyzing the digital image to detect one or more light sampling points and one or more dark sampling points;
determining a lighting gradient that exists between sampling points;
modifying luminance of the custom product to match the lighting gradient.

14. One or more non-transitory computer-readable media storing instructions which, when executed by one or more processors, cause performance of a method for visualizing a custom product in situ, the method comprising:
storing first data that represents a reference connectivity graph of a marker;
obtaining a digital image of at least the marker;
analyzing the digital image to generate second data that represents a candidate connectivity graph;
based at least in part upon first data and the second data, determining whether the candidate connectivity graph matches the reference connectivity graph;
in response to determining that the candidate connectivity graph matches the reference connectivity graph, generating third data that at least maps nodes of the reference connectivity graph to nodes of the candidate connectivity graph;
using at least the third data to build a digital asset that visualizes the custom product in the digital image;
wherein using at least the third data to build a digital asset that visualizes the custom product in the digital image comprises determining an adjustment to a color, brightness, or luminance of at least a portion of an image of the custom product based at least in part on the third data that at least maps nodes of the reference connectivity graph to nodes of the candidate connectivity graph.

15. The one or more non-transitory computer-readable media of claim 14, wherein the first data indicates one or more of:
a count of the nodes of the reference connectivity graph,
a count of arcs connecting at a particular node of the reference connectivity graph,
a count of lines or arcs of the reference connectivity graph,
a count of polytopes of the reference connectivity graph, or
a count of nodes of a particular polytope of the reference connectivity graph.

16. The one or more non-transitory computer-readable media of claim 14, wherein the second data indicates one or more of:
a count of the nodes of the reference connectivity graph,
a count of arcs connecting at a particular node of the reference connectivity graph,
a count of lines or arcs of the reference connectivity graph,
a count of polytopes of the reference connectivity graph, or
a count of nodes of a particular polytope of the reference connectivity graph.

17. The one or more non-transitory computer-readable media of claim 14, wherein the marker comprises one or more colored open spaces for aiding a digital image analysis technique applied to the digital image in detecting lighting in the environment in which the marker was photographed.

18. The one or more non-transitory computer-readable media of claim 17, wherein at least one of the one or more colored open spaces is colored in a medium tone gray or a pastel color tone for aiding the digital image analysis technique in detecting color bias of lighting in the environment in which the marker was photographed.

19. The one or more non-transitory computer-readable media of claim 14, the method further comprising applying a thresholded bandpass filter or an edge filter to the digital image to produce a digital image that comprises linear features in a size range of lines of the marker as black on a white background.

20. The one or more non-transitory computer-readable media of claim 19, the method further comprising using a rule-based cellular automata with thresholded neighborhood inputs to thin at least one of the linear features.

21. The one or more non-transitory computer-readable media of claim 14, the method further comprising determining an orientation or position of the marker in the digital image using the third data.

22. The one or more non-transitory computer-readable media of claim 21, the method further comprising using a point mapping technique involving singular value decomposition to determine the third data.

23. The one or more non-transitory computer-readable media of claim 14, the method further comprising using the third data to transform coordinates of a light sampling point in a coordinate space of the marker to an equivalent point in a coordinate space of the digital image.

24. The one or more non-transitory computer-readable media of claim 23, the method further comprising sampling pixel values at the equivalent point to determine a baseline white value.

25. The one or more non-transitory computer-readable media of claim 14, wherein building the digital asset comprises placing a custom product reference into the digital image using the third data for placement.

26. The one or more non-transitory computer-readable media of claim 14, the method further comprising:
analyzing the digital image to detect one or more light sampling points and one or more dark sampling points;
determining a lighting gradient that exists between sampling points;
modifying luminance of the custom product to match the lighting gradient.