WO2022141886A1 - 一种家装素材调整方法、装置、计算机设备和存储介质 - Google Patents

一种家装素材调整方法、装置、计算机设备和存储介质 Download PDF

Info

Publication number
WO2022141886A1
WO2022141886A1 PCT/CN2021/084726 CN2021084726W WO2022141886A1 WO 2022141886 A1 WO2022141886 A1 WO 2022141886A1 CN 2021084726 W CN2021084726 W CN 2021084726W WO 2022141886 A1 WO2022141886 A1 WO 2022141886A1
Authority
WO
WIPO (PCT)
Prior art keywords
bounding box
rotation
replacement
angle
materials
Prior art date
Application number
PCT/CN2021/084726
Other languages
English (en)
French (fr)
Inventor
宋璐
黄治
喻培
陈静
唐睿
Original Assignee
杭州群核信息技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 杭州群核信息技术有限公司 filed Critical 杭州群核信息技术有限公司
Publication of WO2022141886A1 publication Critical patent/WO2022141886A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/10Geometric CAD
    • G06F30/13Architectural design, e.g. computer-aided architectural design [CAAD] related to design of buildings, bridges, landscapes, production plants or roads
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T15/003D [Three Dimensional] image rendering
    • G06T15/10Geometric effects
    • G06T15/20Perspective computation
    • G06T15/205Image-based rendering
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T17/00Three dimensional [3D] modelling, e.g. data description of 3D objects

Definitions

  • the invention relates to the field of home improvement, in particular to a home improvement material adjustment method, device, computer equipment and storage medium.
  • 3D form such as 3D Max, Kujiale, 3D home, and flat design home.
  • This method uses the schematic placement of the 3D model of the home improvement material in the visualization tool as the main design process.
  • the effect in the design process cannot be directly used as the delivery result, and it takes a long time to render and wait for the rendering.
  • 2D form such as Meijian, PS, PPT, etc.
  • This form uses pictures of home improvement materials to make puzzles on a flat canvas.
  • the effect presented in the design process is the final delivery effect, which is intuitive and simple, but requires strong spatial imagination and takes a long time to make perspective relationships between pictures. , size, etc.
  • the purpose of the present invention is to provide a home improvement material adjustment method, device, computer equipment and storage medium, which can realize the adjustment of 3D material and 2D material, and ensure that the adjusted material can still maintain the original material and the corresponding adsorption surface. Design relationships.
  • an embodiment of the present invention provides a method for adjusting home improvement materials, including the following steps:
  • the material scaling instruction fix the centroid of the material bounding box to scale the bounding box, then offset the centroid of the bounding box, and paste the material preview image on the 3D bounding box after the offset, so that the material can be scaled based on fixed diagonal points. Zoom to get home improvement design results.
  • an embodiment of the present invention provides a home improvement material adjustment device, including:
  • Receiving module receiving material scaling instructions
  • the scaling module fixes the centroid of the material bounding box to scale the bounding box, and then offsets the centroid of the bounding box.
  • the zoom of the corner points get the result of the home decoration design.
  • an embodiment provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the above when executing the computer program The steps of the home improvement material adjustment method.
  • the embodiment provides a computer-readable storage medium on which a computer program is stored, characterized in that, when the computer program is processed and executed, the steps of the above-mentioned home improvement material adjustment method are implemented.
  • the beneficial effects of the present invention at least include:
  • the bounding box is scaled, and then the bounding box is scaled. Offset the centroid, paste the preview image of the material on the 3D bounding box after the offset, and realize the scaling of the material based on fixed diagonal points.
  • This scaling operation is simple and efficient, ensuring that the adjusted material can maintain the same
  • the design relationship with the corresponding adsorption surface gives users the ultimate operating experience.
  • FIG. 1 is a flowchart of a method for adjusting home improvement materials provided by an embodiment of the present invention
  • FIG. 2 is a schematic diagram of imaging room area information provided by an embodiment of the present invention.
  • FIG. 3 is a projected plan view of a house type showing control points according to an embodiment of the present invention
  • FIG. 4 is a schematic diagram of a bounding box and its midplane provided by an embodiment of the present invention.
  • FIG. 5 is a schematic diagram of scaling of a 2D material provided by an embodiment of the present invention.
  • FIG. 6 is a schematic diagram of a material selection box and a zoom corner point provided by an embodiment of the present invention.
  • FIG. 7 is a flow chart of material rotation in a home improvement material adjustment method provided by another embodiment of the present invention.
  • FIG. 8 is a schematic diagram of a rotating belt of materials placed on the ground and suspended on the top provided by an embodiment of the present invention.
  • FIG. 9 is a schematic diagram of a rotating belt of a wall material hung on a wall and attached to a wall provided by an embodiment of the present invention.
  • FIG. 10 is a schematic diagram of a rotating belt of materials laid on the ground provided by an embodiment of the present invention.
  • FIG. 11 is a schematic diagram of a quick rotation operation of a material provided by an embodiment of the present invention.
  • FIG. 13 is a schematic structural diagram of a home improvement material adjustment device provided by an embodiment of the present invention.
  • FIG. 14 is a schematic structural diagram of a home improvement material adjustment device provided by another embodiment of the present invention.
  • FIG. 15 is a schematic structural diagram of a home improvement material adjustment device provided by another embodiment of the present invention.
  • FIG. 16 is a schematic structural diagram of a home improvement material adjustment device provided by another embodiment of the present invention.
  • FIG. 17 is a schematic structural diagram of a computer device according to an embodiment of the present invention.
  • embodiments of the present invention provide a home improvement material adjustment method, device, computer equipment and storage medium, which can be specifically applied to the home improvement field. Each section is described in detail below.
  • Embodiment 1 provides a flowchart of a method for adjusting home improvement materials. As shown in FIG. 1 , a method for adjusting home improvement materials provided by an embodiment includes the following steps:
  • Step 1 Obtain the floor plan of the house type that contains the materials that have been designed for home improvement.
  • the floor plan of the house type projection is generated from the background image of the flat home decoration. Place the home improvement material on the floor plan of the house type to obtain the floor plan of the house type that has been designed with the home decoration material.
  • the background image of the flat home decoration is the reference diagram of the flat design of the user's home decoration.
  • the background picture of flat home decoration can be a complete rendering with soft decoration, an empty scene rendering without soft decoration, a real photo or a whiteboard.
  • a whiteboard is a blank background.
  • the home improvement material adjustment method provided by the present invention is a 3D or 2.5D design method. Therefore, the three-dimensional information of the house type is very important auxiliary information in the design process. Before designing, it is necessary to obtain the three-dimensional structure information of the house type. 3D information for home decoration layout adjustment.
  • the background image of the flat home decoration is a rendered image
  • the camera parameters and light field information are obtained according to the rendering parameters, and the camera matrix is constructed;
  • the 3D model of the rendered image is obtained by calculating the rendering image and the camera matrix, that is, the 3D structure information of the house type is obtained.
  • the camera parameters are preset, that is, the camera position is used as the origin of the world coordinate system, and the world coordinate system and the camera coordinate system are coincident, and the edge detection is performed on the real photo, and the top of the wall is perpendicular to each other.
  • the assumption is that the three-dimensional structure information of the house type is restored, and then the projected floor plan of the house type is constructed according to the three-dimensional structure information of the house type.
  • constructing a floor plan of a house type projection according to the three-dimensional structure information of the house type includes: obtaining all corner (corner) information and all wall (wall) information indicating a wall connection based on the three-dimensional structure information of the house type; wherein, The corner information is represented by coordinates, and the wall information is described by the coordinates of two corner points connecting the wall, the thickness of the wall and the height of the wall.
  • the specific process is: first, connect the corresponding corner points to generate wall lines according to the corner coordinates and wall information, and obtain the floor plan of the house; then, according to the camera position and the near-plane clipping distance of the direction the camera is looking at, obtain the direction the camera is looking at After the plane coordinates of the point, judge and determine that the point the camera is looking at is located in the room area of the floor plan according to the plane coordinates of the point the camera is looking at; finally, filter and determine the effective corners that make up the room area, based on the effective corners , wall thickness, wall height and camera parameters to generate the wall projection plane, the ground projection plane and the top projection plane to form the floor plan of the room area.
  • the apartment frame is formed according to the connection of the effective corner points, and according to the thickness of the wall, lines parallel to the apartment frame are generated inwardly and outwardly along the apartment frame as the inner wall line and the outer wall line.
  • the point in the direction the camera looks at refers to the clipping plane of the direction in which the camera looks, that is, the intersection of the near plane of the imaging viewing cone and the direction in which the camera looks. Since the room area is a closed area, the corner points between the walls in the room area and the corner points of other rooms of the apartment type are removed as redundant points, and the remaining corner points are the effective corner points that constitute the room area. As shown in Figure 2, the corners represented by the symbol ⁇ without dots are redundant points in the room where the camera is located, and the remaining symbols ⁇ with dots next to them are used to form walls and are valid corners.
  • the thickness information of the wall After eliminating the redundant points, use the thickness information of the wall to increase or decrease the thickness of the wall by 1/2 along the direction perpendicular to the wall to obtain the inner wall line and the outer wall line, and take the intersection of the inner wall line as the target corner point, That is, the dots in Figure 2, they are the smallest set of points that describe the polygons formed by the lines in the wall of the room where the camera is located.
  • the target corner point (the circle point in Fig. 2 ) of the final projected plan view is actually the intersection point of all the inner wall lines, but because the room is irregular, it is impossible to distinguish the inner wall line and the outer wall line, so it is necessary to Line recognition is performed to determine the intersection of lines within the wall.
  • the specific process includes:
  • the perspective projection and orthogonal projection of the indoor area can be realized by using the camera view cone.
  • the camera view cone used is the truncation of the spatial connection of the vertebral frustum to the target corner, and the intersection of the vertebral frustum and the spatial connection. is the new control point;
  • the orthographic projection is realized, the camera view cone used is the spatial connection truncation of the cube to the target corner.
  • the new control point and the original control point are connected in sequence to generate the wall projection plane, then all the upper control points of the wall are connected to form the top projection plane, and all the lower control points of the wall are connected to form the bottom surface.
  • Projection plane which forms the projected floor plan of the room area.
  • the projection plane is called the adsorption surface, which means that the home improvement material can be adsorbed to the corresponding surface according to the configuration property of the material.
  • the corner points of the plane are set as control points, and the adsorption surface is described according to the control points.
  • the adsorption surface is represented by the control points connected clockwise, and a List is used to describe the visible projection plane of the house type structure of the rendering image, and each visible projection plane is described by no less than 3 control points. In particular, when a certain projection plane is cut off by the screen, the control points should be adjusted accordingly into the screen, and increased as needed.
  • the control points describing the first wall from the left will be changed from 4 to 5, and in addition, there are 4 corner points in the whole picture at the end. It is also added to the corresponding projection plane as a control point to ensure that the entire picture is completely covered by all projection planes, such as the upper left corner, upper right corner, and lower right corner in Figure 3, but the projection planes can be overlapped in the picture, such as the plane behind the concave-convex wall Part B in Figure 3.
  • the background image of the flat home decoration is a whiteboard
  • One of the typical cases is to select the case where the camera is looking straight ahead, and there is only a part of a wall in the field of view. In this case, all the home improvement materials are placed on the same plane in a tiled type, which is compatible with pure 2D design. .
  • the home improvement material defines two material types according to the setting method, namely the placement type and the paving type.
  • the placement type refers to materials that can be placed directly, such as sofas, beds, tables, etc., and is further subdivided.
  • the placement types include placing on the ground, hanging on the wall, and hanging on the top.
  • the type of paving refers to the materials that can be paved, such as carpets, paintings, curtains, etc., and is further subdivided.
  • the types of paving include paving on the ground and pasting on the wall.
  • the home improvement materials also define two types of materials according to the dimensions, namely three-dimensional (3D) materials and two-dimensional (2D) materials, that is, the home improvement material adjustment method provided by the present invention supports the movement adjustment of 3D materials and 2D materials at the same time.
  • the manipulated material elements in the canvas are all pictures, the background is a large texture as the background layer, and each material element is a small picture, which is carried by a separate layer.
  • a description flag is set for the 3D material and the 2D material.
  • the adjustment description of the 3D material as a solid bounding box containing the coordinate system, including the upper plane, the lower plane, the left plane, the right plane, the front plane, and the back plane.
  • the bounding box describing its physical size is missing, but in the present invention, the coordinate form of the bounding box of 3D material is still used.
  • the y value be 0, and the x value is calculated according to the ratio of the aspect ratio of the 2D image and the z value of the Bounding Box. Assuming that the default height of z is 2000mm, the pixel height of the corresponding material is 400px, and the real pixel width of the material is 600px, then the z value is 3000mm according to the proportional calculation.
  • the coordinates of the four vertices of the Bounding Box are ⁇ point 1(-x/2,0,z/ 2), point 2(-x/2,0,-z/2), point 3(x/2,0,-z/2), point 4(x/2,0,z/2) ⁇ .
  • the preview of the material can be attached to the mouse, and then click the floor plan of the house type projection to place the material.
  • the mouse is positioned at the center of the preview image of the material.
  • a default adsorption surface is configured for each type of material.
  • a certain default binding relationship is maintained between the material and the adsorption surface. All materials set in the floor plan of the floor plan are placed on the corresponding adsorption surface and maintain a certain binding relationship.
  • the default adsorption surface is defined as the ground in the floor plan of the floor plan; for the top surface material suspended on the top surface, the default adsorption surface is defined as the floor in the floor plan of the floor plan.
  • Top surface; for the wall materials hung on the wall and attached to the wall, the default adsorption surface is defined as the wall in the floor plan of the floor plan.
  • Step 2 receiving a material scaling instruction.
  • Home improvement design instructions refer to various operation instructions for designing home improvement materials on the floor plan projection plane, including material placement, material movement, material scaling, material rotation, material replacement, rendering, and generating proposals.
  • it mainly relates to a material scaling instruction, a material rotation instruction and a material replacement instruction.
  • Step 3 According to the material scaling instruction, fix the centroid of the material bounding box to scale the bounding box, and then offset the centroid of the bounding box. After offsetting, paste the material preview image on the 3D bounding box, so as to realize the fixed pairing of the material. The zoom of the corner points, get the result of the home decoration design.
  • the scaling of the 2D material is generally to scale the diagonal points of the fixed image, while the basic scaling of the 3D material is to scale the centroid of the fixed model.
  • the present invention adopts 3D centroid-based scaling to add centroid offset to realize 2D diagonal scaling behavior. That is, the scaling is implemented as follows: after the centroid of the bounding box of the 3D material is fixed and the bounding box is scaled, since the centroid of the bounding box and the center of the material preview image are always coincident, the centroid of the bounding box is offset. Paste the preview image of the material on the 3D bounding box to realize the scaling of the material based on fixed diagonal points.
  • scaling the material according to the material scaling instruction includes:
  • the fixed point and drag point of the bounding box are determined according to the drag point of the material preview image.
  • the centroid of the fixed bounding box remains unchanged.
  • the material bounding box is scaled according to the zoom factor of the material preview image, and then the centroid of the bounding box is set. Taking the fixed point as the starting point, move along the line connecting the fixed point and the dragging point.
  • the moving distance is the distance from the fixed point to the centroid of the bounding box before scaling multiplied by (scaling factor -1), and the bounding box is updated according to the moving distance.
  • the zoomed material preview image can maintain the relationship with the original material preview image and the adsorption surface; For example, for the material placed on the ground, it is still on the ground after scaling, and will not float in the air.
  • the drag point of the bounding box is first determined according to the drag point of the material preview image, and the centroid of the bounding box is selected and The plane parallel to the front plane of the bounding box is used as the middle plane, the drag point on the middle plane corresponding to the material preview is the drag point of the bounding box, and the point on the middle plane that is diagonal to the drag point is fixed point;
  • the drag point of the material preview image is the corner point of the material preview image
  • the corner point on the middle plane that is in the same relative position as the drag point of the material preview image is the drag point of the bounding box
  • the corner point on the middle plane is the drag point of the bounding box.
  • the diagonal corner of the drag point is the fixed point of the bounding box.
  • the two corner points form a diagonal relationship.
  • This method of using the corner point as the fixed point and the drag point to scale the material is proportional Scaling, that is, the scaling ratio of each dimension of the material is the same. Assuming that the upper left corner of the material preview is the drag point, the lower right corner of the material preview is the fixed point.
  • the upper left corner and the lower right corner of the middle plane of the material bounding box represented by the dotted line are the bounding box.
  • the drag point and fixed point of , the diagonal line of the middle plane is the moving line of the centroid, and the direction pointed by the arrow is the moving direction of the centroid.
  • the drag point of the material preview image is any point on the edge of the material preview image, especially the midpoint of the edge, the point on the edge that is in the same relative position as the drag point of the material preview image on the middle plane is
  • the drag point of the bounding box is determined on the other side of the middle plane parallel to the side where the drag point is located.
  • the point on the side corresponding to the drag point is the fixed point.
  • the two side points form a diagonal relationship, which is A method of scaling the material with the edge point as the fixed point and the drag point is non-proportional scaling, that is, the material is scaled along the line connecting the fixed point and the drag point, and other directions remain unchanged. For example, by dragging the left side of the material preview image and fixing the right side, only the left and right direction of the material preview image can be moved.
  • the zoom factor is determined as follows: when zooming the material preview image, when dragging the drag point of the material preview image, the zoom factor is determined according to the size change of two adjacent frames during the dragging process. , it should be noted that dragging the preview image of the material at this time is only for zooming the picture and determining the zoom factor.
  • the zooming process is out of the bounding box, that is, such zooming cannot guarantee the relationship between the material and the adsorption surface before and after zooming, so it needs to be based on the zoom factor.
  • the centroid of the bounding box does not change, and then offset the centroid, so as to achieve the visual effect of scaling based on fixed points, and finally according to the centroid offset processing
  • the bounding box zooms the material preview image, and the overall zooming of the material preview image and its bounding box is only achieved at this point.
  • the zoomed material preview image should keep the same near-large and far-small effect as the original.
  • the scaling factor greater than 1 indicates enlargement, and the scaling factor smaller than 1 indicates reduction.
  • the method for adjusting the home decoration materials further includes: setting a check box for each material, and setting a zoom corner point corresponding to the material on the corner point of the check box according to the material type, Drag the mouse to zoom the corner to realize the zoom of the material.
  • the corresponding zooming corner points are defined according to the material type, and the above-mentioned zooming method is used to ensure that the material will not deviate from the corresponding adsorption surface when zooming.
  • zoom corners For the ground material placed on the ground, there are 5 zoom corners, which are located at the upper left corner, upper right corner, left midpoint, upper midpoint and right midpoint of the selected box.
  • Rotation in pure 2D design is often a headache for users.
  • the front, side or back view of the dining chair is usually required, and it is difficult to obtain pictures from other angles only through a 2D material picture.
  • Another common situation is to have a picture of a one-seater sofa with a 20° view, while a picture of about a 35° view is required in the design scene.
  • the usual 2D design allows the user to adjust the four corners of the picture to apply perspective transformation to obtain the desired perspective, but this often tests the user's spatial imagination, and it is difficult to adjust to the desired perspective.
  • the fixed angle interval is 15°, that is, an angle picture is rendered every 15°, so that 1
  • Each 3D material can generate a total of 24 angle pictures.
  • the method for adjusting home improvement materials provided by the embodiment further includes: configuring rotation state information for the material, as shown in FIG. 8 , including a material preview, a check box, an auxiliary rotation operation, and a highlighting of the adsorption surface.
  • rotation state information for the material including a material preview, a check box, an auxiliary rotation operation, and a highlighting of the adsorption surface.
  • the material hanging on the top surface it is similar to the ground material, that is, when replacing, keep the centroid position of the replacement material and the original material unchanged according to the material replacement instruction, and determine the x-coordinate and y-coordinate of the replacement material according to the centroid position.
  • the difference between the height of the top surface of the original material from the top and the z value of the bounding box of the replacement material that is, the difference between bbox.z/2, is used to update the z coordinate of the replacement material, so as to ensure that the top surface of the replaced material is away from the top surface after the replacement.
  • the height remains unchanged.
  • the height of the top surface of the original material from the top is the sum of the z-coordinate of the centroid of the original material and half of the z-value of its bounding box.
  • the home improvement material adjustment method provided by the embodiment further includes: replacing the material by replacing the shortcut function for the material design.
  • the replacement shortcut function is realized by the replacement button.
  • the configured replaceable materials are presented in the form of a list.
  • the replaceable materials include the system material library or custom uploaded materials.
  • the system material library is automatically located under the original material subclass , for the custom uploaded material, determine the material type through image recognition, classify the material according to the material type, and assign it to the corresponding type.
  • the user realizes the automatic replacement of the material by selecting the replaceable material, and also configures the closing function for the replacement shortcut operation. When the close button is selected or the original material is deselected, the replacement shortcut function is turned off.
  • the replacement material is a 3D model, after the material is replaced, the adsorption surface, the centroid projected to the ground, and the rotation angle of the replacement material are the same as the original material, and the size and mirror state are reset to the default state of the new material; if the replacement material is For 2D pictures, after the material is replaced, the adsorption surface of the replaced material and the centroid projected to the ground are the same as the original material, and the rotation angle, size and mirror state are reset to the default state of the new material.
  • the method for adjusting home improvement materials of the present invention further includes: rendering the home improvement graphic design result to generate a rendering and outputting.
  • the most basic situation is that after obtaining the 3D house type model of the floor plan of the house type projection and the 3D model of the 3D material, a 3D scene model is formed, and the 3D scene model is rendered to obtain a rendering of the home improvement design result.
  • the material is a 2D material
  • the following three methods are used for rendering: the first method is to tolerate a certain degree of inconsistency, and the image search technology is used to search for the most similar model to render; the second method is based on The outline of the 2D material builds a flat model, and the 2D material is pasted on the surface as a texture for rendering; the three methods are to temporarily remove all the 2D material during rendering, and after obtaining the rendered scene graph of the 3D material, calculate its depth map, and use the 2D material according to The depth information is placed where the occluded part is cropped.
  • the method for adjusting home decoration materials of the present invention further includes: generating and outputting a design proposal based on the home decoration design result.
  • the complete proposal also includes cover, back cover, catalog, style analysis, material analysis, color analysis, etc. These contents belong to the category of pure 2D design, which can be realized by using the pure white background mentioned above. That is, all materials are posted on the same wall facing the same side. Users can also upload pictures as one or more pages of the proposal, and each space is designed as a page, thus forming a complete proposal that can be shared, disseminated and reported.
  • the home decoration material adjustment method provided by the embodiment of the present invention does not limit the background image, and can take photos for renderings, whiteboards or real scenes, and has stronger application compatibility and is convenient for users to design home decoration. To achieve the effect of real-life design.
  • the home improvement material adjustment method provided by the embodiment of the present invention uses 3D information to assist the design process, so that the work efficiency of designers is greatly improved, and at the same time, it is perfectly compatible with 2D and 3D materials, and solves the problem of 2D material information and high acquisition cost of 3D materials. .
  • Embodiment 2 provides a home improvement material adjustment device. As shown in FIG. 13 , the home improvement material adjustment device 1300 provided by the embodiment includes:
  • the home improvement material adjustment device 1300 further includes: a rotation module 1401, the receiving module 1302 receives a material rotation instruction, and the rotation module 1401 rotates the material according to the material rotation instruction;
  • the home improvement material adjustment device 1300 further includes: a rendering module 1601, which renders the home improvement graphic design result to obtain a rendering diagram;
  • the proposal generation module 1602 generates a proposal based on the home improvement graphic design result.
  • the computer program when executed by the processor, implements an image presentation method.
  • the display screen of the computer equipment may be a liquid crystal display screen or an electronic ink display screen
  • the input device of the computer equipment may be a touch layer covered on the display screen, or a button, a trackball or a touchpad set on the shell of the computer equipment , or an external keyboard, trackpad, or mouse.
  • FIG. 17 is only a block diagram of a partial structure related to the solution of the present application, and does not constitute a limitation on the computer equipment to which the solution of the present application is applied. Include more or fewer components than shown in the figures, or combine certain components, or have a different arrangement of components.
  • the material scaling instruction fix the centroid of the material bounding box to scale the bounding box, then offset the centroid of the bounding box, and paste the material preview image on the 3D bounding box after the offset, so that the material can be scaled based on fixed diagonal points. Zoom to get home improvement design results.
  • the processor further implements the following steps when executing the computer program: receiving a material replacement instruction; and replacing the material according to the material replacement instruction.
  • the processor when the processor executes the computer program, the following steps are further implemented: generating and outputting a design proposal based on the home improvement graphic design result.
  • Embodiment 4 also provides a computer-readable storage medium, such as a memory including at least one instruction, and the at least one instruction can be executed by a processor in a terminal to complete the step of adjusting home improvement materials in Embodiment 1.
  • a computer-readable storage medium such as a memory including at least one instruction, and the at least one instruction can be executed by a processor in a terminal to complete the step of adjusting home improvement materials in Embodiment 1.
  • Nonvolatile memory may include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory.
  • Volatile memory may include random access memory (RAM) or external cache memory.
  • RAM is available in various forms such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous chain Road (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
  • SRAM static RAM
  • DRAM dynamic RAM
  • SDRAM synchronous DRAM
  • DDRSDRAM double data rate SDRAM
  • ESDRAM enhanced SDRAM
  • SLDRAM synchronous chain Road (Synchlink) DRAM
  • SLDRAM synchronous chain Road (Synchlink) DRAM
  • Rambus direct RAM
  • DRAM direct memory bus dynamic RAM
  • RDRAM memory bus dynamic RAM

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Geometry (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Graphics (AREA)
  • Computer Hardware Design (AREA)
  • Civil Engineering (AREA)
  • Architecture (AREA)
  • Software Systems (AREA)
  • Structural Engineering (AREA)
  • Computational Mathematics (AREA)
  • Mathematical Analysis (AREA)
  • Mathematical Optimization (AREA)
  • Pure & Applied Mathematics (AREA)
  • Evolutionary Computation (AREA)
  • General Engineering & Computer Science (AREA)
  • Computing Systems (AREA)
  • Processing Or Creating Images (AREA)

Abstract

一种家装素材调整方法、装置、计算机设备和存储介质,属于家装设计领域,具体包括:获取包含有已设计有家装素材的户型投影平面图(S101);接收素材缩放指令(S102);依据素材缩放指令,固定素材包围盒的形心缩放包围盒后,再对包围盒的形心进行偏移,偏移后将素材预览图贴在三维包围盒上,实现素材基于固定对角点的缩放,得到家装设计结果(S103)。这样的缩放操作简单和高效,保证调整后的素材还能维持与原素材与对应吸附面的设计关系,给用户极致的操作体验。

Description

一种家装素材调整方法、装置、计算机设备和存储介质 技术领域
本发明涉及家装领域,具体涉及一种家装素材调整方法、装置、计算机设备和存储介质。
背景技术
随着人们生活水平的提高,对软装设计的个性化需求愈加明显,人们通常通过专业的软装设计师、家居卖场的门店导购,或自己简单搭配来确定自己喜欢的风格和色系,以及特定的软装单品,然后才去进行软装的购置和摆场。家装设计的现状有两种主流方式,一种是3D形式,如3D Max,酷家乐,三维家,躺平设计家等。这种方式利用家装素材的三维模型在可视化工具中的示意摆放来作为主要设计过程,设计过程中的效果无法直接作为交付结果,需要经过较长时间的渲染等待得到效果图。另一种是2D形式,如美间,PS,PPT等。这种形式利用家装素材的图片在一个平面画布中进行拼图搭配,设计过程中呈现的效果就是最终的交付效果,直观简单,但需要较强的空间想象能力并且花费较长时间对图片进行透视关系、大小等调整。
发明内容
鉴于上述,本发明的目的是提供一种家装素材调整方法、装置、计算机设备和存储介质,实现对3D素材和2D素材的调整,保证调整后的素材还能维持与原素材与对应吸附面的设计关系。
第一方面,本发明实施例提供了一种家装素材调整方法,包括以下步骤:
获取包含有已设计有家装素材的户型投影平面图;
接收素材缩放指令;
依据素材缩放指令,固定素材包围盒的形心缩放包围盒后,再对包围盒的形心进行偏移,偏移后将素材预览图贴在三维包围盒上,实现素材基于固定对角点的缩放,得到家装设计结果。
第二方面,本发明实施例提供了一种家装素材调整装置,包括:
获取模块,获取包含有已设计有家装素材的户型投影平面图;
接收模块,接收素材缩放指令;
缩放模块,依据素材缩放指令,固定素材包围盒的形心缩放包围盒后,再对包围盒的形心进行偏移,偏移后将素材预览图贴在三维包围盒上,实现素材基于固定对角 点的缩放,得到家装设计结果。
第三方面,实施例提供了一种计算机设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上执行的计算机程序,所述处理器执行所述计算机程序时实现上述家装素材调整方法的步骤。
第四方面,实施例提供了计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理执行时实现上述家装素材调整方法的步骤。
与现有技术相比,本发明具有的有益效果至少包括:
本发明实施例提供的家装素材调整方法、装置、计算机设备和存储介质,通过依据素材缩放指令,针对户型投影平面图内的家装素材,固定素材包围盒的形心缩放包围盒后,再对包围盒的形心进行偏移,偏移后将素材预览图贴在三维包围盒上,实现素材基于固定对角点的缩放,这样的缩放操作简单和高效,保证调整后的素材还能维持与原素材与对应吸附面的设计关系,给用户极致的操作体验。
附图说明
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图做简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动前提下,还可以根据这些附图获得其他附图。
图1是本发明一实施例提供的家装素材调整方法的流程图;
图2是本发明一实施例提供的成像房间区域信息示意图;
图3是本发明一实施例提供的显示控制点的户型投影平面图;
图4是本发明一实施例提供的包围盒及其中间平面的示意图;
图5是本发明一实施例提供的2D素材的缩放示意图;
图6是本发明一实施例提供的素材选中框和缩放角点示意图;
图7是本发明另一实施例提供的家装素材调整方法中素材旋转流程图;
图8是本发明一实施例提供的放置在地上和吊置在顶上的素材的旋转带的示意图;
图9是本发明一实施例提供的挂置在墙上和贴置在墙面的墙面素材的旋转带的示意图;
图10是本发明一实施例提供的铺贴在地面的素材的旋转带的示意图;
图11是本发明一实施例提供的素材的旋转快捷操作示意图;
图12是本发明一实施例提供的家装素材调整方法中素材替换流程图;
图13是本发明一实施例提供的家装素材调整装置的结构示意图;
图14是本发明另一实施例提供的家装素材调整装置的结构示意图;
图15是本发明另一实施例提供的家装素材调整装置的结构示意图;
图16是本发明另一实施例提供的家装素材调整装置的结构示意图;
图17是本发明一实施例提供的计算机设备的结构示意图。
具体实施方式
为使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例对本发明进行进一步的详细说明。应当理解,此处所描述的具体实施方式仅仅用以解释本发明,并不限定本发明的保护范围。
为了简化素材调整操作,和提升素材调整效率,本发明实施例提供了一种家装素材调整方法、装置、计算机设备和存储介质,具体可以应用到家装领域。下面针对每部分进行详细说明。
实施例1
实施例1提供的是一种家装素材调整方法的流程图。如图1所示,实施例提供的一种家装素材调整方法包括以下步骤:
步骤1,获取包含有已设计有家装素材的户型投影平面图。
户型投影平面图由平面家装背景图生成。将家装素材放置到户型投影平面图上即获得含有已设计有家装素材的户型投影平面图。
其中,平面家装背景图是用户家装平面设计的基准图。平面家装背景图的选择有很多,可以是带软装的完整渲染图、不带软装的空场景渲染图、实拍照片或白板,白板即空白背景。
本发明提供的家装素材调整方法是一种3D或者2.5D的设计方法,因此,户型的三维信息是设计过程非常重要的辅助信息,在进行设计之前需要先获得户型的三维结构信息,然后基于该三维信息进行家装布局调整。
当平面家装背景图为渲染图时,解析渲染图后根据渲染参数获得相机参数和光场信息,并构建相机矩阵;基于渲染图和相机矩阵计算获得渲染图的三维模型,即得到户型的三维结构信息;根据户型的三维结构信息构建户型投影平面图,其中,投影平面图包括地面投影平面(简称地面)、墙面投影平面(简称墙面)以及顶面投影平面(简称顶面)至少一种。
当平面家装背景图为实拍照片时,预设相机参数,即以相机位置作为世界坐标系原点,且世界坐标系和相机坐标系重合,对实拍照片做边缘检测,结合墙顶地互相垂直的假设,恢复户型三维结构信息,然后依据户型的三维结构信息构建户型投影平面图。
在一种实施方式中,根据户型的三维结构信息构建户型投影平面图包括:基于户 型的三维结构信息得到表示墙体连接处的所有角点(corner)信息和所有墙体(wall)信息;其中,角点信息用坐标表示,墙体信息采用连接墙体的两个角点坐标、墙体厚度以及墙体高度描述。
根据角点信息和墙体信息构建户型平面图后,根据相机参数对户型平面图做投影,得到户型投影平面图。具体过程为:首先,根据角点坐标和墙体信息连接对应角点生成墙体线条,得到户型平面图;然后,根据相机位置和相机看向的方向的近平面裁剪距离,获得相机看向的方向点位的平面坐标后,根据相机看向的点位的平面坐标判断并确定相机看向的点位位于平面户型图的房间区域;最后,筛选确定组成房间区域的有效角点,基于有效角点、墙体厚度、墙体高度以及相机参数生成墙面投影平面、地面投影平面以及顶面投影平面,形成房间区域的户型投影平面图。
在实施例中,在获得房间区域的有效角点后,依据有效角点连接形成户型骨架,依据墙体厚度,沿户型骨架向内和向外生成与户型骨架平行的线条作为墙内线和墙外线,确定墙内线的交点并以该交点作为目标角点,同时获得二维坐标(x,y),依据相机高度和楼层高度确定目标角点的z坐标,得到目标角点的三维坐标(x,y,z),依据目标角点的三维坐标确定空间连线,采用由相机参数确定的相机视椎对空间连线进行截断来生成新控制点,以处于相机视椎内的目标角点为原控制点,依据新控制点和原控制点生成墙面投影平面、地面投影平面以及顶面投影平面,形成房间区域的户型投影平面图。
实施例中,相机看向的方向点位是指相机看向的方向的裁剪平面,即成像视锥的近平面,和相机看向的方向的交点。由于房间区域是一个封闭区域,将房间区域内处于墙体之间的角点和户型其他房间的角点作为冗余点剔除,剩下的角点为组成房间区域的有效角点。如图2所示,旁边没有圆点的符号×表示的角点为相机所在房间的冗余点,剩下的旁边有圆点的符号×用于组成墙体,为有效角点。剔除冗余点之后,利用墙体的厚度信息,沿着垂直于墙体的方向分别增减1/2的墙体厚度,得到墙内线和墙外线,并以墙内线的交点为目标角点,即图2中的圆点部分,它们是描述相机所在房间墙内线构成的多边形的最小点集。
实施例中,最终用于形成的投影平面图的目标角点(图2中的圆点)实际上是所有墙内线的交点,但因为房间是不规则的,无法区分墙内线和墙外线,因此需要进行线条识别来确定墙内线的交点,具体过程包括:
对墙内线和墙外线进行延伸实现交点连接处的闭合生成交点,同时剔除交点处的出头线段,然后查找最内闭合区域方法获得墙内线即墙内线的交点作为目标角点。
实施例中,应用相机视锥可以实现室内区域的透视投影和正交投影,当实现透视投影时,采用的相机视锥为椎台对目标角点的空间连接截断,椎台与空间连接的交点 为新控制点;当实现正交投影时,采用的相机视锥为立方体对目标角点的空间连接截断。
实施例中,依次对新控制点和原控制点进行连接,生成墙面投影平面,然后,将墙体的所有上控制点连接形成顶面投影平面,将墙体的所有下控制点连接形成底面投影平面,形成房间区域的户型投影平面图。
本发明中将投影平面称为吸附面,表示能够根据素材的配置属性吸附家装素材到相应面上。为了更好地描述吸附面,设定平面的角点为控制点,依据控制点来描述吸附面。实施例中吸附面用顺时针连接的控制点表示,以一个List来描述渲染图的户型结构的可见投影平面,每个可见投影平面以不少于3个控制点描述。特别地,当某一投影平面被画面截断时,控制点要相应地调整到画面内,并视情况增加。例如,如图3所示的左数第一面墙A被截掉一个角,则描述左数第一面墙的控制点将由4个会变成5个,此外最后整个画面中4个角点也被作为控制点加入对应的投影平面,保证整个画面被所有投影平面完全覆盖,如图3中的左上角、右上角、右下角,但投影平面可在画面中重合,如凹凸墙背后的平面如图3中B部分。
当平面家装背景图为白板时,需要预定义一系列的渲染图作为白板的三维结构信息的输入,依据户型的三维结构信息构建户型投影平面图;但工具展示层面为空白,即RGB=(255,255,255),或用户定义的其他值。其中一种典型的情况是,选取相机正视正前方,且视野中只有一面墙的局部的情况,这种情况下所有家装素材都以铺贴类型放置在同一平面上,兼容了纯2D设计的情况。
实施例中,家装素材按照设置方式定义了两种素材类型,分别为放置类型和铺贴类型。其中,放置类型是指能够直接摆放的素材,如沙发,床,桌子等,进一步细分,放置类型包括放置在地上、挂置在墙上以及吊置在顶上。铺贴类型是指能够铺贴设置的素材,如地毯、挂画、窗帘等,进一步细分,铺贴类型包括铺置在地面和贴置在墙面。
家装素材按照维度同样也定义了两种素材类型,分别为三维(3D)素材和二维(2D)素材,即本发明提供的家装素材调整方法同时支持在3D素材和2D素材的移动调整,在画布中被操作的素材元素均为图片,背景是一个大贴图作为背景图层,每个素材元素都是一个小图片,由一个单独的图层承载。
为了方便在移动过程中对3D素材和2D素材的调整,为3D素材和2D素材设置描述标识。
设置3D素材的调整描述标识为包含坐标系的立体包围盒,包括上平面、下平面、左平面、右平面、前平面和后平面。对于2D素材,描述其物理尺寸的包围盒是缺失的,但是本发明中仍然沿用3D素材包围盒的坐标形式,根据2D素材类别的经验观察赋予 其默认高度值,即Bounding Box中的z值,令y值为0,x值根据2D图片的长高比和Bounding Box的z值等比例计算得到。假设z的默认高度值为2000mm,对应素材的像素高度为400px,素材的真实像素宽度为600px,则依据等比例计算得到z值为3000mm。在得到x,y,z值之后,将笛卡尔坐标系的原点设置在2D素材的形心位置,则获得Bounding Box的4个顶点坐标分别为{点1(-x/2,0,z/2),点2(-x/2,0,-z/2),点3(x/2,0,-z/2),点4(x/2,0,z/2)}。
至此,2D素材和3D素材有了同样完备的描述标识,不同的是3D素材的Bounding Box是一个立方体,而2D素材的Bounding Box是一个平面(特殊的,厚度为0的立方体)。
在户型投影平面图上放置家装素材时,通过鼠标拖动素材到户型投影平面图上来放置素材,或者点击按钮,素材预览图可以吸附在鼠标上,此时再点击户型投影平面图可以放置素材。另外,拖动或点击按钮初始瞬间,鼠标定位在素材预览图的中心处。
为了更好地实现设计,为每类素材配置一个默认吸附面,素材和吸附面之间维持一定的默认绑定关系,设置在户型投影平面图内的所有素材均放置对应吸附面上且维持一定的绑定关系。其中,对于放置在地面和铺置在地面的地面素材,定义其默认吸附面为户型投影平面图中的地面;对于吊置在顶面的顶面素材,定义其默认吸附面为户型投影平面图中的顶面;对于挂置在墙面和贴置在墙面的墙面素材,定义其默认吸附面为户型投影平面图中的墙面。
步骤2,接收素材缩放指令。
家装设计指令是指将家装素材设计在户型投影平面的各种操作指令,包括素材放置、素材移动、素材缩放、素材旋转、素材替换、渲染以及生成提案等。本发明中,主要涉及素材缩放指令、素材旋转指令和素材替换指令。
步骤3,依据素材缩放指令,固定素材包围盒的形心缩放包围盒后,再对包围盒的形心进行偏移,偏移后将素材预览图贴在三维包围盒上,实现素材基于固定对角点的缩放,得到家装设计结果。
2D素材的缩放一般是固定图像的对角点进行缩放,而3D素材的基础缩放是固定模型的形心进行缩放。本发明采用3D的基于形心缩放附加形心的偏移,以实现2D的对角线缩放行为。即缩放实现方式为:固定3D素材的包围盒的形心缩放包围盒后,由于包围盒的形心与素材预览图的中心始终保持重合,再对包围盒的形心进行偏移,偏移后将素材预览图贴在三维包围盒上,实现素材基于固定对角点的缩放。
具体依据素材缩放指令对素材缩放包括:
依据素材预览图的拖动点确定的包围盒的固定点和拖动点,固定包围盒的形心不变,依据素材预览图的缩放系数对素材包围盒进行缩放,然后将包围盒的形心以固定 点为起点,沿固定点到拖动点的连线进行移动,移动距离为缩放前包围盒的固定点到形心距离乘以(缩放系数-1),依据该移动距离更新包围盒形心坐标,进而调整缩放后包围盒坐标,将素材预览图贴到新包围盒上,实现对素材预览图的缩放,这样缩放后的素材预览图能够保持与原始素材预览图与吸附面的关系;例如针对放在地面的素材,缩放后仍在地面上,不至于漂在空中。
实施例中,根据素材预览图的拖动点确定的包围盒的固定点和拖动点时,首先依据素材预览图的拖动点确定包围盒的拖动点,选择包围盒的形心所在与包围盒前平面平行的平面作为中间平面,将中间平面上与素材预览图对应的拖动点为包围盒的拖动点,并将在中间平面上与拖动点成对角点关系的点为固定点;
其中,当素材预览图的拖动点为素材预览图的角点时,以中间平面上与素材预览图的拖动点处于同一相对位置的角点为包围盒的拖动点,中间平面上与拖动点成对角线的角点为包围盒的固定点,此时,两个角点形成对角点关系,这种以角点为固定点和拖动点对素材缩放的方式是等比例缩放,即素材每个维度的缩放比例是相同的。假设以素材预览图的左上角为拖动点,则素材预览图的右下角为固定点,如图4所示,以虚线表示的素材包围盒的中间平面的左上角和右下角分别为包围盒的拖动点和固定点,中间平面的对角线为形心的移动沿线,箭头所指方向为形心的移动方向。
当然,当素材预览图的拖动点为素材预览图的边上的任意点,特别地为边中点时,以中间平面上与素材预览图的拖动点处于同一相对位置的边上点为包围盒的拖动点,确定与拖动点所在边平行的中间平面另一边上,与拖动点对应位置的边上点为固定点,此时两个边上点形成对角点关系,这种以边上点为固定点和拖动点对素材缩放的方式是非等比例缩放,即对素材沿固定点和拖动点的连线方向进行缩放,其他方向不变。例如拖动素材预览图的左边,固定右边,则仅实现对素材预览图的左右方向移动。
缩放系数的确定方式为:在对素材预览图进行缩放时,当拖动素材预览图的拖动点时,根据拖动过程中相邻两帧的尺寸变化确定缩放系数。,需要注意的是此时拖动素材预览图只是针对图片进行缩放,确定缩放系数,该缩放过程是脱离包围盒的,即这样缩放不能保证缩放前后素材与吸附面的关系,因此需要依据缩放系数先实现对包围盒的缩放调整,此时包围盒形心没有变化,然后对形心进行偏移处理,这样就达到了基于固定点进行缩放的视觉效果,最后再根据形心偏移处理后的包围盒缩放素材预览图,至此才实现对素材预览图及其包围盒的整体缩放。缩放后的素材预览图要保持与原始态同样的近大远小的效果。实施例中,缩放系数大于1表示放大,小于1表示缩小。
特别地,当素材为贴面素材时,也就是2D素材时,其包围盒的y值为0,包围盒退化为一个平面矩形,其缩放行为与2D缩放完全一致,但拥有透视效果。如图5所示, 为了示意说明,将两个矩形的左上角错开了一定位置,事实上它们是重合的。为了方便对素材的缩放操作,实施例提供的家装素材调整方法还包括:为每个素材设定选中框,同时依据素材类型在选中框的角点上设定与素材对应的缩放角点,通过鼠标拖动缩放角点实现素材的缩放。如图6所示,依据素材类型定义对应的缩放角点,再配合上述的缩放方法,使得素材缩放时不会脱离对应的吸附面,不同吸附类型的素材缩放角点的数量和位置不同,具体包括:
1)对于放在地面的地面素材,缩放角点有5个,分别位于选中框的左上角、右上角、左边中点、上边中点和右边中点。
2)对于吊在顶面的顶面素材,缩放角点有5个,分别位于选中框的左下角、右下角、左边中点、下边中点和右边中点。
3)对于挂在墙面和贴在墙面的墙面素材和铺在地面的的地面素材,缩放角点有8个,分别位于选中框的左上角、右上角、左下角、右下角和四条边的中点。
纯2D设计中的旋转经常是令用户头疼的操作,比如在表现餐厅的设计时,通常需要餐椅的正面、侧面或背面视图,而仅通过一张2D素材图片,很难得到其他角度的图片。另一种常见的情况是,有一个20°视图的单人沙发图片,而在设计场景中需要约35°视角的图片。通常的2D设计通过让用户调整图片的四角来应用透视变换来得到期望的视角,但这往往考验了用户的空间想象能力,很难调整到期望的视角。
在其中一个实施方式中,如图7所示,实施例提供的家装素材调整方法还包括:
S701接收素材旋转指令;
S702,依据素材旋转指令对素材进行旋转。
具体地,针对2D素材,依据素材旋转指令,将素材包围盒应用绕自身Z轴的旋转,再将2D素材预览图贴到旋转后的包围盒。
针对2D素材,本发明采用自动计算透视变换来辅助用户快速调整。本发明采用退化为平面的包围盒来承载2D素材预览图,旋转时只需对包围盒应用绕自身Z轴(世界坐标系中的垂直于地面Z轴)的旋转,再将2D素材预览图贴到旋转后的包围盒的平面上即可。
旋转操作之前,针对3D素材,根据素材的3D模型事先为3D素材以固定角度间隔生成多张角度图片并存储,例如固定角度间隔为15°,即每隔15°渲染一张角度图片,这样1个3D素材可以共生成24张角度图片。
需要旋转时,针对3D素材,依据素材旋转指令,计算旋转角度,匹配与旋转角度最接近的角度图片,并对角度图片做透视变换处理,完成3D素材旋转。例如用户期望调整到旋转角度13°,为旋转角度13°匹配15°的角度图片,同时将旋转角度自动切换到13°,将15°的角度图片当作2D素材贴到平板上再旋转-2°,得到13°图片的 近似。
在其中一个实施方式中,为了方便对素材进行旋转操作,实施例提供的家装素材调整方法还包括:为素材设定了旋转辅助操作。如图8所示,其中,旋转辅助操作通过旋转标识旋转带实现,当素材被选中时,旋转带被显示。旋转带为360°环形的辅助图形,旋转带上标有各个角度位,旋转带的透视关系和相机视角的透视关系一致,拖动旋转带时进入旋转状态,在旋转带上定义一个区域为角度拖动区,每次旋转时角度拖动区的初始位置均为旋转带靠近相机的正面,鼠标按住角度拖动区左右移动时控制角度拖动区在环形旋转带上移动,当角度拖动区的起点移动到下一个角度位时,则触发素材旋转,计算角度拖动区所移动的角度为X°,则素材旋转后角度为当前角度+X°。
在其中一个实施方式中,实施例提供的家装素材调整方法还包括:为素材配置旋转状态信息,如图8所示,包括素材预览图、选中框、旋转辅助操作和吸附面高亮,若移动高度时则同时显示高度辅助线,其中吸附面高亮是指与素材对应的吸附面以高亮显示。旋转辅助操作依据素材类型设定旋转角度,具体定义如下:
1)对于放置在地上和吊置在顶上的素材,定义素材按照世界坐标系的z轴旋转,也就是沿地面的垂直方向旋转,旋转带为立体状态,如图8;
2)对于挂置在墙上和贴置在墙面的墙面素材,定义素材沿墙面的法线方向旋转,其旋转带为平面状态,如图9;
3)对于铺贴在地面的素材,定义素材按照世界坐标系的z轴旋转,也就是沿地面的垂直方向旋转,旋转带为平面状态,如图10。
在其中一个实施方式中,为了方便对素材进行旋转操作,实施例提供的家装素材调整方法还包括:为素材设定了旋转快捷操作,其中,旋转快捷操作通过旋转按钮实现,包括顺时针旋转按钮和逆时针旋转按钮,当点击旋转按钮时,则素材旋转按照固定角度间隔旋转到相邻的下一个角度,如图11所示。具体定义如下:
1)对于放在地面、吊在顶面和铺在地面的素材,定义素材按照世界坐标系的z轴旋转,也就是沿地面的垂直方向旋转;
2)对于挂在墙面和贴在墙面的素材,定义素材按照墙面的法向方向旋转,也就是沿墙面的垂直方向旋转。
实施例中,将素材预览图贴到包围盒的方法为:计算包围盒的形心所在的平行于户型投影平面图的平面,将素材预览图贴在包围盒的形心处,则素材预览图的显示高度h=bbox.z+a*bbox.y,其中,系数a根据素材所在吸附面的法线在平行于户型投影平面图方向上的投影确定,bbox.z是包围盒投影到于户型投影平面图后,后平面高度的像素尺寸,bbox.y是将包围盒的上平面或下平面展开到与后平面平行时的像素尺寸,a*bbox.y表示包围盒的上平面或下平面在户型投影平面图中像素尺寸;素材预览图的 显示宽度根据素材预览图的高宽比等比例计算得到,以此来保证素材预览图和包围盒的一致性,在确定素材预览图的显示高度和宽度之后,再根据相机参数即可以确定包围盒的8个顶点在户型投影平面中的2D坐标,进而实现对3D素材的调整。这样能够实现素材的近大远小效果。
对于2D素材,bbox.y=0,bbox.x由bbox.z和素材预览图的高宽比计算得到,所以包围盒和素材预览图在户型投影平面图中也是完全匹配的状态。
在设计过程中,针对同一类素材,往往涉及到素材替换的问题,为了实现对素材的快速替换和保证替换后的素材与素材类型的放置方式一致,针对不同的素材,设置不同的替换方法和约束条件。
在其中一个实施方式中,如图12所示,实施例提供的家装素材调整方法包括:
1201,接收素材替换指令;
1202,依据素材替换指令对素材进行替换;
针对放置地面的素材,依据素材替换指令保持替换素材(新素材)与原素材(被替换素材)的形心位置不变,依据形心位置确定替换素材包围盒的x坐标和y坐标,根据替换素材包围盒的z值一半即bbox.z/2与素材底面离地高度的加和确定替换素材的z坐标,以实现替换后,保证替换后的素材离地面高度不变。
针对挂在顶面的素材,与地面素材类似,即在替换时,依据素材替换指令保持替换素材与原素材的形心位置不变,依据形心位置确定替换素材的x坐标和y坐标,根据原素材顶面离顶的高度与替换素材的包围盒的z值一半即bbox.z/2的差值来更新替换素材的z坐标,以实现替换后,保证替换后的素材顶面离顶面高度不变,。其中,原素材顶面离顶的高度为原素材的形心z坐标与其包围盒z值一半的加和。
针对离地一定高度的挂到墙面的素材,依据素材替换指令保持替换素材与原素材的形心位置不变,依据形心位置确定替换素材包围盒的x坐标和y坐标,将原素材的形心高度减去原素材包围盒的z值的一半乘以缩放系数(bbox.z/2*scale),得到原素材的离地面高度h,将离地面高度h加上替换素材包围盒的z值的一半即bbox.z/2,来更新替换素材包围盒的z值,保证替换后的素材底面离地高度不变;
针对贴面类素材,如贴到地面的素材和贴到墙面的素材,依据素材替换指令保持替换素材和原素材的形心一致,即粘贴位置保持不变,然后对替换素材旋转贴到底面或墙面,具体旋转操作见上述旋转部分。
在其中一个实施方式中,为了方便用户替换操作,实施例提供的家装素材调整方法还包括:为素材设计替换快捷功能来替换素材。其中,替换快捷功能通过替换按钮实现,当选择替换时,被配置的可替换素材以列表形式呈现,可替换素材包括系统素材库或自定义上传的素材,系统素材库自动定位在原素材子类下,针对自定义上传的 素材,通过图像识别确定素材类型,并根据素材类型对素材进行归类,将其划到对应的类型。实施例中,用户通过选择可替换素材,实现素材的自动替换,还为替换快捷操作配置关闭功能,当选择关闭按钮或原素材取消了选中状态则关闭替换快捷功能。
若替换素材为3D模型,则素材替换后,替换素材的吸附面、投影到地面的形心和旋转角度和原素材一致,而大小和镜像状态重置为新素材的默认状态;若替换素材为2D图片,则素材替换后,替换素材的吸附面和投影到地面的形心和原素材一致,而旋转角度、大小和镜像状态重置为新素材的默认状态。
在其中一个实施方式中,本发明家装素材调整方法还包括:对家装平面设计结果进行渲染生成渲染图并输出。
由于设计过程无论是户型投影平面图还是素材全部由3D信息来辅助计算,所以非常容易转换为3D模型进行离线渲染,获得更真实的光影效果。
最基础的情况是,在获得户型投影平面图的三维户型模型和3D素材的三维模型后,组成场景三维模型,对三维场景模型进行渲染,得到家装设计结果的渲染图。
当素材为2D素材时,因为不具有三维模型,所以渲染时采用以下三种方式:方式一是可以容忍一定程度的不一致,采用图搜技术用图片搜索最相似的模型来渲染;方式二是根据2D素材的轮廓构建一个平板模型,2D素材作为纹理贴在表面来渲染;方式三种是渲染时先暂时移出所有2D素材,得到3D素材的渲染场景图后,计算其深度图,将2D素材根据深度信息放置其中被遮挡部分裁剪。
在其中一个实施方式中,本发明家装素材调整方法还包括:基于家装设计结果生成设计提案并输出。
当用户完成每个空间的设计后,还需要生成一个完整的提案来构成整个设计方案。除了空间设计外,完整的提案还包括封面、封底、目录、风格解析、材质解析、色彩解析等部分,而这些内容属于纯2D设计的范畴,可以采用上文提到的纯白色背景来实现,即所有素材贴在同一面正视的墙上。也可以由用户自主上传图片作为提案的其中一页或多页,每个空间的设计都作为一页,由此构成一个完整的可分享可传播可汇报的提案。
本发明实施例提供的家装素材调整方法,对背景图不限制,可以为渲染图、白板或者实景拍摄照片,应用兼容性更强,方便用户家装设计,当使用实景拍摄照片作为背景进行设计,能够达到实景设计的效果。
本发明实施例提供的家装素材调整方法,利用3D信息辅助设计过程,使得设计人员的工作效率大幅度提高,同时完美兼容2D和3D素材,解决了2D素材信息确实和3D素材获取成本高的问题。
本发明实施例提供的家装素材调整方法,家装平面设计结果可对接渲染,获得更 加真实的光影效果,同时还可以生成提案以提供给用户。
实施例2
实施例2提供了一种家装素材调整装置。如图13所示,实施例提供的家装素材调整装置1300,包括:
获取模块1301,获取包含有已设计有家装素材的户型投影平面图,所述户型投影平面图包含户型的三维结构信息;
接收模块1302,接收素材移动指令;
缩放模块1303,依据素材缩放指令,固定素材包围盒的形心缩放包围盒后,再对包围盒的形心进行偏移,偏移后将素材预览图贴在三维包围盒上,实现素材基于固定对角点的缩放,得到家装设计结果。
在其中一个实施方式中,如图14所示,家装素材调整装置1300还包括:旋转模块1401,所述接收模块1302接收素材旋转指令,所述旋转模块1401依据素材旋转指令对素材进行旋转;
针对2D素材,将素材包围盒应用绕自身Z轴的旋转,再将2D素材预览图贴到旋转后的包围盒;
针对3D素材,计算旋转角度,匹配与旋转角度最接近的角度图片,并对角度图片做透视变换处理,完成3D素材旋转。
在其中一个实施方式中,如图15所示,家装素材调整装置1300还包括:替换模块1501,所述接收模块1302接收素材替换指令,所述替换模块1501依据素材替换指令对素材进行替换。
在其中一个实施方式中,如图16所示,家装素材调整装置1300还包括:渲染模块1601,对家装平面设计结果进行渲染,以获得渲染图;
提案生成模块1602,基于家装平面设计结果生成提案。
需要说明的是,实施例2提供的家装素材调整装置在进行家装素材调整时,应以上述各功能模块的划分进行举例说明,可以根据需要将上述功能分配由不同的功能模块完成,即在终端或服务器的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。另外,实施例2提供的家装素材调整装置与家装素材调整方法实施例属于同一构思,其具体实现过程详见家装素材调整方法实施例,这里不再赘述。
实施例3
实施例3提供了计算机设备,提供了一种计算机设备,该计算机设备可以是终端,其内部结构图可以如图17所示。该计算机设备包括通过系统总线连接的处理器、存储器、网络接口、显示屏和输入装置。其中,该计算机设备的处理器用于提供计算和控制能力。该计算机设备的存储器包括非易失性存储介质、内存储器。该非易失性存储 介质存储有操作系统和计算机程序。该内存储器为非易失性存储介质中的操作系统和计算机程序的运行提供环境。该计算机设备的网络接口用于与外部的终端通过网络连接通信。该计算机程序被处理器执行时以实现一种图像展示方法。该计算机设备的显示屏可以是液晶显示屏或者电子墨水显示屏,该计算机设备的输入装置可以是显示屏上覆盖的触摸层,也可以是计算机设备外壳上设置的按键、轨迹球或触控板,还可以是外接的键盘、触控板或鼠标等。本领域技术人员可以理解,图17中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的计算机设备的限定,具体的计算机设备可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。
在其中一个实施方式中,提供了一种计算机设备,包括存储器、处理器以及存储在机存储器中并可在处理器上执行的计算机程序,处理器执行计算机程序时实现权利实施例1所述的家装素材调整方法的步骤,即实现如下步骤:
获取包含有已设计有家装素材的户型投影平面图;
接收素材缩放指令;
依据素材缩放指令,固定素材包围盒的形心缩放包围盒后,再对包围盒的形心进行偏移,偏移后将素材预览图贴在三维包围盒上,实现素材基于固定对角点的缩放,得到家装设计结果。
在其中一个实施方式中,处理器执行计算机程序时还实现如下步骤:接收素材旋转指令;依据素材旋转指令对素材进行旋转。
在其中一个实施方式中,处理器执行计算机程序时还实现如下步骤:接收素材替换指令;依据素材替换指令对素材进行替换。
在其中一个实施方式中,处理器执行计算机程序时还实现如下步骤:对家装平面设计结果进行渲染生成渲染图并输出。
在其中一个实施方式中,处理器执行计算机程序时还实现如下步骤:基于家装平面设计结果生成设计提案并输出。
实施例4
实施例4还提供了一种计算机可读存储介质,例如包括至少一条指令的存储器,上述至少一条指令可由终端中的处理器执行以完成实施例1中家装素材调整的步骤。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一非易失性计算机可读取存储介质中,该计算机程序在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的各实施例中所使用的对存储器、存储、数据库或其它介质的任何引用,均可包括非易失性和/或易失性存储器。非易失性存储器可包括只读存储 器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM)或者外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据率SDRAM(DDRSDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink)DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)等。
以上所述的具体实施方式对本发明的技术方案和有益效果进行了详细说明,应理解的是以上所述仅为本发明的最优选实施例,并不用于限制本发明,凡在本发明的原则范围内所做的任何修改、补充和等同替换等,均应包含在本发明的保护范围之内。

Claims (19)

  1. 一种家装素材调整方法,其特征在于,包括以下步骤:
    获取包含有已设计有家装素材的户型投影平面图;
    接收素材缩放指令;
    依据素材缩放指令,固定素材包围盒的形心缩放包围盒后,再对包围盒的形心进行偏移,偏移后将素材预览图贴在三维包围盒上,实现素材基于固定对角点的缩放,得到家装设计结果。
  2. 如权利要求1所述的家装素材调整方法,其特征在于,依据素材缩放指令对素材缩放包括:
    依据素材预览图的拖动点确定的包围盒的固定点和拖动点,固定包围盒的形心不变,依据素材预览图的缩放系数对素材包围盒进行缩放,然后将包围盒的形心以固定点为起点,沿固定点到拖动点的连线进行移动,移动距离为缩放前包围盒的固定点到形心距离乘以(缩放系数-1),依据该移动距离更新包围盒形心坐标,进而调整缩放后包围盒坐标,将素材预览图贴到新包围盒上,实现对素材预览图的缩放。
  3. 如权利要求1所述的家装素材调整方法,其特征在于,根据素材预览图的拖动点确定的包围盒的固定点和拖动点包括:
    首先依据素材预览图的拖动点确定包围盒的拖动点,选择包围盒的形心所在与包围盒前平面平行的平面作为中间平面,将中间平面上与素材预览图对应的拖动点为包围盒的拖动点,并将在中间平面上与拖动点成对角点关系的点为固定点。
  4. 如权利要求1所述的家装素材调整方法,其特征在于,缩放系数的确定方式为:在对素材预览图进行缩放时,当拖动素材预览图的拖动点时,根据拖动过程中相邻两帧的尺寸变化确定缩放系数。
  5. 如权利要求1所述的家装素材调整方法,其特征在于,还包括:为每个素材设定选中框,同时依据素材类型在选中框的角点上设定与素材对应的缩放角点,通过鼠标拖动缩放角点实现素材的缩放。
  6. 如权利要求1所述的家装素材调整方法,其特征在于,还包括:针对2D素材,接收素材旋转指令,依据素材旋转指令,将素材包围盒应用绕自身Z轴的旋转,再将2D素材预览图贴到旋转后的包围盒。
  7. 如权利要求1所述的家装素材调整方法,其特征在于,还包括:针对3D素材,接收素材旋转指令,依据素材旋转指令,计算旋转角度,匹配与旋转角度最接近的角度图片,并对角度图片做透视变换处理,完成3D素材旋转。
  8. 如权利要求1所述的家装素材调整方法,其特征在于,还包括:旋转操作之前, 针对3D素材,根据素材的3D模型事先为3D素材以固定角度间隔生成多张角度图片并存储。
  9. 如权利要求1所述的家装素材调整方法,其特征在于,还包括:为素材设定了旋转辅助操作,旋转辅助操作通过旋转标识旋转带实现,当素材被选中时,旋转带被显示;旋转带为360°环形的辅助图形,旋转带上标有各个角度位,旋转带的透视关系和相机视角的透视关系一致,拖动旋转带时进入旋转状态,在旋转带上定义一个区域为角度拖动区,每次旋转时角度拖动区的初始位置均为旋转带靠近相机的正面,鼠标按住角度拖动区左右移动时控制角度拖动区在环形旋转带上移动,当角度拖动区的起点移动到下一个角度位时,则触发素材旋转,计算角度拖动区所移动的角度为X°,则素材旋转后角度为当前角度+X°。
  10. 如权利要求8所述的家装素材调整方法,其特征在于,还包括:为素材配置旋转状态信息,包括素材预览图、选中框、旋转辅助操作和吸附面高亮。
  11. 如权利要求1所述的家装素材调整方法,其特征在于,还包括:为素材设定了旋转快捷操作,其中,旋转快捷操作通过旋转按钮实现,包括顺时针旋转按钮和逆时针旋转按钮,当点击旋转按钮时,则素材旋转按照固定角度间隔旋转到相邻的下一个角度。
  12. 如权利要求1所述的家装素材调整方法,其特征在于,还包括:接收素材替换指令;
    针对放置地面的素材,依据素材替换指令保持替换素材与原素材的形心位置不变,依据形心位置确定替换素材包围盒的x坐标和y坐标,根据替换素材包围盒的z值一半与原素材底面离高度的加和来更新替换素材的z坐标,以完成替换;
    针对放置顶面的素材,依据素材替换指令保持替换素材与原素材的形心位置不变,依据形心位置确定替换素材包围盒的x坐标和y坐标,根据原素材顶面离顶的高度与替换素材包围盒的z值一半的差值来更新替换素材的z坐标,以完成替换;
    针对离地一定高度的挂到墙面的素材,依据素材替换指令保持替换素材与原素材的形心位置不变,依据形心位置确定替换素材包围盒的x坐标和y坐标,将原素材的形心高度减去原素材包围盒的z值的一半乘以缩放系数,得到原素材的离地面高度h,将离地面高度h加上替换素材包围盒的z值的一半,来更新替换素材包围盒的z值,保证替换后的素材底面离地高度不变;
    针对贴面类素材,依据素材替换指令保持替换素材和原素材的形心一致,然后对替换素材旋转贴到底面或墙面。
  13. 如权利要求1所述的家装素材调整方法,其特征在于,还包括:为素材设计替换快捷功能来替换素材。
  14. 如权利要求1~13任一项所述的家装素材调整方法,其特征在于,还包括:对家装设计结果进行渲染生成渲染图并输出;
    基于家装设计结果生成设计提案并输出。
  15. 一种家装素材调整装置,其特征在于,包括:
    获取模块,获取包含有已设计有家装素材的户型投影平面图;
    接收模块,接收素材缩放指令;
    缩放模块,依据素材缩放指令,固定素材包围盒的形心缩放包围盒后,再对包围盒的形心进行偏移,偏移后将素材预览图贴在三维包围盒上,实现素材基于固定对角点的缩放,得到家装设计结果。
  16. 如权利要求15所述的家装素材调整装置,其特征在于,还包括:旋转模块,所述接收模块接收素材旋转指令,所述旋转模块依据素材旋转指令对素材进行旋转;
    针对2D素材,将素材包围盒应用绕自身Z轴的旋转,再将2D素材预览图贴到旋转后的包围盒;
    针对3D素材,计算旋转角度,匹配与旋转角度最接近的角度图片,并对角度图片做透视变换处理,完成3D素材旋转。
  17. 如权利要求15所述的家装素材调整装置,其特征在于,还包括:替换模块,所述接收模块接收素材替换指令,所述替换模块依据素材替换指令对素材进行替换。
  18. 一种计算机设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上执行的计算机程序,其特征在于,所述处理器执行所述计算机程序时实现权利要求1~14任一项所述的家装素材调整方法的步骤。
  19. 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理执行时实现权利要求1~14任一项所述的家装素材调整方法的步骤。
PCT/CN2021/084726 2020-12-31 2021-03-31 一种家装素材调整方法、装置、计算机设备和存储介质 WO2022141886A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011631455.5A CN112800511B (zh) 2020-12-31 2020-12-31 一种家装素材调整方法、装置、计算机设备和存储介质
CN202011631455.5 2020-12-31

Publications (1)

Publication Number Publication Date
WO2022141886A1 true WO2022141886A1 (zh) 2022-07-07

Family

ID=75808316

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/084726 WO2022141886A1 (zh) 2020-12-31 2021-03-31 一种家装素材调整方法、装置、计算机设备和存储介质

Country Status (2)

Country Link
CN (1) CN112800511B (zh)
WO (1) WO2022141886A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117195360A (zh) * 2023-09-07 2023-12-08 广东南华工商职业学院 基于3d扫描的园林景观模型设计方法、系统、设备及介质

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117351170A (zh) * 2023-10-09 2024-01-05 北京达美盛软件股份有限公司 一种实现区域三维模型替换的方法及其系统

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103890704A (zh) * 2011-10-27 2014-06-25 香港科技大学 通过多点触摸输入执行三维物体约束操作的系统和方法
CN109658524A (zh) * 2018-12-11 2019-04-19 浙江科澜信息技术有限公司 一种三维模型的编辑方法、系统及相关装置
CN109657387A (zh) * 2018-12-27 2019-04-19 重庆上丞科技有限公司 一种基于混合现实场景的家居模型定位放置方法
US10891488B2 (en) * 2017-03-30 2021-01-12 Hrl Laboratories, Llc System and method for neuromorphic visual activity classification based on foveated detection and contextual filtering

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9075933B2 (en) * 2012-10-11 2015-07-07 Adobe Systems Incorporated 3D transformation of objects using 2D controls projected in 3D space and contextual face selections of a three dimensional bounding box
CN103035024A (zh) * 2012-12-11 2013-04-10 南京我乐我居数码科技有限公司 一种基于三维虚拟平台的实体材质置换方法
CN104103035B (zh) * 2013-04-15 2017-12-05 深圳先进技术研究院 三维模型的缩放方法
CN104463784B (zh) * 2014-11-04 2017-07-04 上海爱福窝云技术有限公司 一种2.5d模型的缩放方法
CN111739084B (zh) * 2019-03-25 2023-12-05 上海幻电信息科技有限公司 图片处理方法、图集处理方法、计算机设备和存储介质
CN111274927A (zh) * 2020-01-17 2020-06-12 北京三快在线科技有限公司 一种训练数据的生成方法、装置、电子设备和存储介质

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103890704A (zh) * 2011-10-27 2014-06-25 香港科技大学 通过多点触摸输入执行三维物体约束操作的系统和方法
US10891488B2 (en) * 2017-03-30 2021-01-12 Hrl Laboratories, Llc System and method for neuromorphic visual activity classification based on foveated detection and contextual filtering
CN109658524A (zh) * 2018-12-11 2019-04-19 浙江科澜信息技术有限公司 一种三维模型的编辑方法、系统及相关装置
CN109657387A (zh) * 2018-12-27 2019-04-19 重庆上丞科技有限公司 一种基于混合现实场景的家居模型定位放置方法

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117195360A (zh) * 2023-09-07 2023-12-08 广东南华工商职业学院 基于3d扫描的园林景观模型设计方法、系统、设备及介质
CN117195360B (zh) * 2023-09-07 2024-04-09 广东南华工商职业学院 基于3d扫描的园林景观模型设计方法、系统、设备及介质

Also Published As

Publication number Publication date
CN112800511B (zh) 2022-11-15
CN112800511A (zh) 2021-05-14

Similar Documents

Publication Publication Date Title
WO2022141887A1 (zh) 一种家装平面自动设计方法和装置、计算机设备和存储介质
WO2022141888A1 (zh) 一种家装素材移动方法、装置、计算机设备和存储介质
US7346408B2 (en) Two-dimensional graphics for incorporating on three-dimensional objects
JP6499854B2 (ja) 減損現実
WO2021176422A1 (en) Systems and methods for building a virtual representation of a location
US9692965B2 (en) Omnidirectional image editing program and omnidirectional image editing apparatus
JP5299173B2 (ja) 画像処理装置および画像処理方法、並びにプログラム
JP2022542573A (ja) 衣服の3次元モデルデータを生成するための方法およびコンピュータプログラム製品
US20150325044A1 (en) Systems and methods for three-dimensional model texturing
US10740870B2 (en) Creating a floor plan from images in spherical format
US20140125654A1 (en) Modeling and Editing Image Panoramas
WO2022141886A1 (zh) 一种家装素材调整方法、装置、计算机设备和存储介质
US10735708B2 (en) Transforming locations in a spherical image viewer
JP2000090290A (ja) 画像処理装置および画像処理方法、並びに媒体
US10325402B1 (en) View-dependent texture blending in 3-D rendering
US11250643B2 (en) Method of providing virtual exhibition space using 2.5-dimensionalization
US20240062345A1 (en) Method, apparatus, and computer-readable medium for foreground object deletion and inpainting
CN116634112A (zh) 基于虚幻引擎的多投影仪平面融合投影校正方法及系统
CN113628323B (zh) 一种快速构建数字展览文件的方法及智能终端
KR101169590B1 (ko) 사용자 스케치를 통한 이동통신 단말기에서의 3차원 파노라마 공간 재구성 방법
WO2020173222A1 (zh) 物品虚拟化处理方法、装置、电子设备及存储介质
Zhang et al. Sceneviewer: Automating residential photography in virtual environments
US10529055B1 (en) Compensating for camera pose in a spherical image
CN109808406A (zh) 书画作品在线装裱方法、系统及存储介质
JP2000057377A (ja) 画像処理装置および画像処理方法、並びに媒体

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21912656

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21912656

Country of ref document: EP

Kind code of ref document: A1