Summary of the invention
In view of this, the purpose of the present invention is to provide a kind of fire simulation system and method with image co-registration, it shouldMultiple environmental parameters in system and method lumped modelling fire generating process.
In order to achieve the above-mentioned object of the invention, the technical solution adopted by the present invention are as follows:
A kind of fire simulation system with image co-registration, including controller, server and emulation room, wherein controllerIt is connected to server, is inputted for acceptance presupposition, and default input is sent to server;Server is connected to emulation room, rootThe information of one or more environmental parameters is determined according to default input, and sends determining information to emulation room;Emulating room has productionExecution unit that is raw or changing one or more environmental parameters generates according to the information that server issues or changes emulation interior oneItem or multinomial environmental parameter;The execution unit further includes image co-registration device, for utilizing gradient function to emulation indoor projectionThe overlapping region of image carries out brightness decay processing, to reach the brightness uniformity after image mosaic.
Wherein, brightness decay processing is carried out to any point in overlapping region, including finds the point and is thrown respectively at twoThe attenuation coefficient function about distance in shadow image, obtains brightness of this in projected image after overdamping.
Before carrying out brightness decay processing to any point in overlapping region, normalizing first is carried out to the width of overlapping regionChange processing.
Correspondingly, power function is chosen as attenuation coefficient function, and attenuation processing is carried out to overlapping region.
Wherein, the environmental parameter includes emulating indoor image, the indoor temperature of emulation, the indoor smog of emulation, imitatingIt is one or more in very indoor sound.
Correspondingly, the server includes that scene determining module, temperature determination module, smog determining module and sound determineModule determines emulate indoor image, the indoor temperature of emulation, the indoor smog of emulation, the indoor sound of emulation respectively.
And the execution unit of generation or the one or more environmental parameters of change in the emulation room further includes projector, addsIt is one or more in hot device, speaker and fog machine.
A kind of fire simulation method with image co-registration, method includes the following steps: A) preset the geometry for emulating roomModel and fire source parameter;B) according to the geometrical model and fire source parameter of emulation room, emulation indoor one or environment above ginseng are determinedSeveral information, the environmental parameter include emulating indoor image, the indoor temperature of emulation, the indoor smog of emulation, emulation roomIt is one or more in interior sound;C) determining ambient parameter information is sent to the generation or change one or more of emulation roomThe execution unit of item environmental parameter;D) emulate the execution unit of room according to obtain information change or generate one of scene of fire orMultinomial environmental parameter;Wherein, the execution unit further includes the overlapping region using gradient function to emulation indoor projection imageBrightness decay processing is carried out, to reach the brightness uniformity after image mosaic.
Brightness decay processing is carried out to any point in overlapping region, including finds the point respectively in two projected imagesIn the attenuation coefficient function about distance, obtain brightness of this in projected image after overdamping.
Before carrying out brightness decay processing to any point in overlapping region, normalizing first is carried out to the width of overlapping regionChange processing.
Particularly, power function is chosen as attenuation coefficient function, and attenuation processing is carried out to overlapping region.
Due to using the technology described above, the present invention, which can concentrate, determines the indoor one or more environmental parameters of emulation, thisA little environmental parameters can reciprocation, and be capable of forming the simulated projection images with higher degrees of fusion.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, the present invention will be made further in conjunction with attached drawingDetailed description.This description is to describe specific implementation consistent with the principles of the present invention by way of example, and not limitationMode, the description of these embodiments is detailed enough, so that those skilled in the art can practice the present invention, is not being taken offOther embodiments can be used in the case where from scope and spirit of the present invention and can change and/or replace each elementStructure.Therefore, the following detailed description should not be understood from restrictive sense.
For the ease of it will be understood by those skilled in the art that, combined with specific embodiments below and attached drawing is to technical side of the inventionCase is described in further detail.
It is disclosed detailed example embodiment.However, specific structure and function details disclosed herein are used for the purpose ofThe purpose of example embodiment is described.However, the present invention can realize example embodiment with a variety of alternative forms, and should not willIt regards the example embodiment for being only limitted to illustrate herein as.
It should be appreciated, however, that the present invention is not limited to disclosed specific embodiment, on the contrary, the present invention is directed to cover for demonstrationLid falls into all modifications, equivalent and alternative within the scope of the disclosure.It is related to the description of attached drawing, similar label indicates similarElement.
Although these elements can not it should be understood that term first, second etc. are herein with different elements is describedIt is limited by these terms.These terms are only used to differentiate an element with another element.For example, first element can be withReferred to as second element, similarly, second element can be referred to as first element, without departing from the range of example embodiment.Such asAs used herein, term "and/or" includes one or more relevant any and all combinations for listing item.
It should be understood that when element is referred to as " connection " or when " coupled " to another element, it can be directly connected to or coupleTo other elements, or there may also be intermediary elements.On the contrary, when element is referred to as " being directly connected to " or " directly coupling " to separatelyWhen one element, then intermediary element is not present.It should be managed in the same fashion for describing other words of relationship between elementSolution.
Fig. 1 is the structural block diagram of fire simulation system of the present invention.
In embodiments of the present invention, fire simulation system includes controller 11, server 12 and emulation room 13.The controlDevice 11 processed is digital equipment, and common is wireless telecommunications system, and such as tablet computer also can be intelligent mobile terminal, laptopDeng.Connection and the interactions of data are realized by various connection types between controller 11 and server 12, such as common wirelessThe connection of communication protocol, the in particular agreements such as IEEE 802.11 or bluetooth.There is dedicated functional unit on controller 11, it can be withBy the simulation software on B/S C/S structural reference server 12, signal is issued to control the sound in emulation room 13, temperatureDegree, scene and haze effect.The server 12 can be desktop computer, including CPU, random access memory, nonvolatile storageSuch as the common devices such as hard disk, display, mouse, keyboard, video card, sound card, network interface card, cabinet, power supply, fan, also may includeBluetooth communication, wireless communication module etc. are communicated with the realization of controller 11.Particularly, controller 11 can also be with server 12It integrates, sends signal to the functional unit of emulation room 13.
Server 12 sends signal to the functional unit of emulation room 13 by various delivering paths.Such as server 12 passes throughTone frequency channel wire is connect with the speaker of emulation room;It is connect by video transmission line with projector and fusion device.In order to facilitate access, clothesBe engaged in device 12 connected by cable or wireless mode and the communication protocol such as agreements such as IEEE 802.11 or bluetooth andINTERNET connection can store various video files and audio file on 12 hard disk of server.
In this embodiment, server 12 includes following functions module: sound determining module 21, temperature determination module22, scene determining module 23 and smog determining module 24 determine emulate indoor sound, the indoor temperature of emulation, imitative respectivelyVery indoor image, the indoor smog of emulation.
In order to illustrate the course of work of fire analogue system in embodiment of the present invention, now in conjunction with Fig. 2 and Fig. 3 to the present inventionFire simulation system is described in detail.
As shown in Fig. 2, the emulation room 13 of fire simulation system may include entrance 31, outlet 32, projector 33, fusion device34, heater 35, speaker 36, one or more in fog machine 37.Wherein projector 33 is for projecting fire image, fusion device34 for eliminating the gap or overlapping region of different projectors, and heater 35 is for improving room temperature, and speaker 36 is for playingAcoustics, fog machine 37 is for manufacturing haze effect.Preferably, emulation room 13 further includes camera 38 and bracket 39, whereinCamera 38 is for monitoring indoor scene, and bracket 39 is for placing escape equipment 40.
Typically, emulation room 13 has six face wall body of up, down, left, right, before and after.It is wrapped on one or more surfaces wall whereinProjection screen is wrapped with playing video.Such as projection screen is enclosed in front and back two sides wall.Those skilled in the art should knowDawn, emulation room can have other more complicated or simpler internal structures, or different internal structures is provided with projection screenCloth, these change the realization for present embodiment, and there is no influence.
Entrance 31 and/or outlet 32 can be set on emulation room 13, such as entrance 31 is arranged on emulation 13 left side wall of roomOn body, and the outlet 32 is located on emulation 13 right side wall of room.
On the one hand, in order to realize the simulation to image in emulation room 13, one or multi-section projector 33 are mounted on emulation roomIn 13, such as in the present embodiment, the upper surface of emulation room 13 wall center is provided with four projectors 33.Projector 33 passes throughWired or wireless way is connected to server 12, receives image information that is default or generating from server 12, and by received figureAs information is projected respectively on emulation 13 front and back wall of room.
Particularly, if only projecting entire wider projection screen with a projector 33, it is difficult to focus, because of projectionCurtain is too wide to be difficult to select a suitable benchmark focus.And, according to the invention it is preferred to which arc can be made using more projectors 33String is small as far as possible away from shortening to, and is thus easier to find out the suitable focus of picture.
Further, when using one or more projector 33, in order to enable the image that each projector 33 projects is realizedSeamless combination can eliminate the gap or overlapping region of projector, so that scene more has stereovision by image co-registration device 34With three-dimensional sense, vivid effect is built.More succinct mode according to the present invention can use two projectors in left and right33, it should be apparent to those skilled in the art that and invent be not intended the quantity of projector 33 being limited to 2.In order to realize a left sideThe Fusion Edges of the image of right two projectors 33 projection, two projectors 33 transmit left images to server 12 to the left and right respectivelyInformation, there are laps for left images information, and fusion device 34 is realized by changing the projection brightness of left and right projector 33The engagement of image information.It is consistent that entire picture brightness uniformity is shown as in display effect in this way.
According to one embodiment of present invention, when use multi-section (the case where containing controlling two) projector 33, fusion device34 for determining that multiple projectors 33 project in overlapping region in Q point brightness L.
Specifically,AndWherein, Li is the throwing of i-th of projector 33 projectedThe brightness of shadow image;Di is distance of the Q point to the adjoining boundary of i-th of projector 33, for example, in the projector of aforementioned left and right 2(n=2) in the case where, d1 is distance of the Q point to left side projected image P1 right margin, and d2 is that Q point is left to rightmost projection image P2The distance on boundary;Ki is the brightness decay coefficient for different projectors realized in fusion device 34, and is metα>0, it is the decaying power function mark realized in same and device 34, for adjusting the nonlinear degree of decaying.
A kind of embodiment according to the present invention, projector 33 are disposed as the projector with same brightness, Er Qiejianα=1 is arranged in clean processing, andTo complete the fusion of fringe region using the mode of substantially linear function.It is thisHaving technical effect that for mode be succinct, it is efficient, be easily achieved.But there is also certain technical problems to be faced due to service lifeThe reasons such as Shi Genghuan, projector 33 tend not to become the projector with same brightness, under prior art conditions, fundamental lineProperty decaying it is possible that overlapping region edge brightness be mutated the phenomenon that.
To overcome above-mentioned technical problem, in another embodiment of the invention, at regular intervals, according to logistic regressionModel is to α and KiCarry out dynamic adjustment, determine more reasonable value range, realize projected image overlapping after brightness it is consistentProperty, obtain higher fidelity.
(as shown in Figure 3) according to another embodiment of the present invention, in order to allow scene of fire that more there is three-dimensional sense, Ke YiIt emulates and uses arc-shaped projection screen in room 13.But most of projector 33 in design both for the projection screen of plane, whenSuch projector 33 projects image on arc-shaped projection screen as ball curtain or ball curtain, image will metamorphopsic distortion, thisKind phenomenon is referred to as non-linear distortion.
In this regard, server 12 further includes correction of non-linear distortions unit, it, can when for transmitting image information to projector 33Correction of non-linear distortions is carried out to image information for the radian of the relative position and projection screen of projector 33 and projection screen.
For example, the correction of non-linear distortions unit of server 12 generates a series of contour for specific projection screenLine and vertical line, then by its orthorhombic form at grid, this grid is referred to as contour vertical grid.Then, correction of non-linear distortionsContour vertical grid is transmitted to projector 33 by unit, and contour vertical grid is projected to projection screen and (closely cut out by projector 33Face) on, here it is contour vertical grids in frame buffer corresponding position.
Next, correction of non-linear distortions unit is come true contour vertical grid in projection screen pull-up by projector 33It is contour vertical in positive visual effect, obtain its relative displacement.
Then, server 12 takes out the image in frame buffer, by correction of non-linear distortions unit, using newly obtain etc.High vertical grid carries out the texture mapping of original image, such as carries out texture textures again to every frame data.
By using the distortion correction image that above-mentioned non-linear correction method is formed, higher fidelity is obtained.
It on the other hand, include heater 35 in emulation room 13 in order to realize the simulation to temperature in emulation room 13.Heater35 can be used the various devices for generating heat to realize, for example, by using non-luminous high-impedance resistors.In order to obtain true fireThe corresponding temperature in calamity scene, the ambient parameter information that heater 35 can be determined by the temperature determination module 22 of server 12 controlQuantity and each self-heating temperature are opened to adjust the heating effect in emulation room 13.
On the other hand, in order to realize the formation for emulating sound effect in room 13, server 12 passes the audio-frequency information of storageIt gives power amplifier 41 and by its regulation power, then plays sound effect using speaker 36.It is indoor in emulation according to specific needsOne or multi-section speaker 36 are set, such as speaker 36 is located at the roof quadrangle of emulation room 13, it can be true by the sound of server 12The sound that cover half block 21 determines works at the same time to control one or more speakers 36 to build stereophonic effect.
On the other hand, indoor in emulation according to specific needs in order to realize the formation to haze effect in emulation room 13One or multi-section fog machine 37 are set, such as four fog machines 37 are located at the ground quadrangle of emulation room 13, it can be by server 12Smog determining module 24 determine smoke condition control open fog machine 37 quantity and operating rate come adjust emulation roomHaze effect in 13.
In addition, one or more cameras 38, such as two cameras are arranged in emulation room 13 according to specific needs38 are located at the top center of emulation 13 left and right sides wall of room, pass through wired or wireless connection type and 12 phase of serverConnection, to observe the situation in emulation room 13.
Bracket 39 can also be arranged in room 13 in emulation, and escape equipment 40, preferably towel, breathing mask are placed on bracket 39Deng.
The above description of contents device of fire simulation system is said in conjunction with the device of the fire simulation system further belowOpen fire calamity emulation mode.
Step 1 presets the geometrical model and fire source parameter of emulation room 13.The geometrical model of room 13 is emulated mainly by emulatingThe equation and sectional dimension of room 13 determine.Equation can continuously input straight line or curvilinear equation to set manuallyIt is fixed, AUTOCAD graphical format or the DXF file of central axes can also be analyzed directly to obtain.DXF(DrawingExchange Format) i.e. Drawing Interchange File, be a kind of sequential file, it be under certain group code sign regulation,It include the data file including entity orders and geometric data information, it can be from AUTOCAD drawing format transition.And it is fierySource parameter is mainly scale, position and the combustion system that fire source is arranged.Fire source scale is mainly the hot release efficiency for setting fire sourceAnd general power.The position of fire source is mainly the position for setting fire source in emulation room, is limited by condition, position is only chosen as high resistantAnti- resistance position.Combustion system includes gasoline, kerosene, crude oil, firewood etc..
Step 2 determines the information of one or environment above parameter, institute according to the geometrical model and fire source parameter of emulation roomStating environmental parameter includes emulating indoor image, the indoor temperature of emulation, the indoor smog of emulation, the indoor sound of emulation.
The geometrical model for emulating room 13 and fire source parameter are sent to server 12, the scene determining module 23 of server 12Mesh segmentation is carried out to emulation room 13, emulation room 13 is divided into multiple subspaces, every sub-spaces select suitable material intoRow rendering, particularly can only render the currently seen model part of user, determine the image of emulation scene of fire.
After fire source parameter setting, the temperature determination module 22 of server 12 is determined according to the position of fire source by emulating roomWhich of 13 or which heater 35 carry out heating operation, determine the temperature of emulation scene of fire.According to fire sourceHot release efficiency determine heater 35 heating speed, the heating time of heater 35 is determined according to general power, according to combustionBurning mode determines the changed power curve of heater 35.
After fire source parameter setting, the sound determining module 21 of server 12 determines the sound of emulation scene of fire.RootThe audio effect file that prestores on server is transferred according to the combustion system of fire source to generate the spot effect of fire source burning.
After fire source parameter setting, the smog determining module 24 of server 12 determines cigarette according to the combustion system of fire sourceThe spray volume of mist determines the smog of emulation scene of fire, controls for example under firewood combustion mode, if wet weather, firewoodA large amount of smog are generated in the case where cannot coming into full contact with oxygen.
The information of determining environmental parameter is sent to the generation of emulation room 13 or changes one or more environment by step 3The execution unit of parameter.
Step 4 emulates one or more rings that the execution unit of room 13 generates according to information is obtained or changes scene of fireBorder parameter.For example, the projector image of emulation room 13;The heater 35 for emulating room 13, which changes, emulates indoor temperature;It is imitativeThe speaker of true room 13, which generates, emulates indoor sound;The fog machine for emulating room, which changes, emulates indoor smoke condition;Emulate room 13Image co-registration device fusion overlapping image.
Those skilled in that art it is to be understood that between above-mentioned one or more environmental parameters can with reciprocation, such asWhen emulating room temperature raising, with the enhancing of flame figure, smog diffusion aggravation;Such as the sound of burning is generated with fire figureThus sound further enhances simulated effect.
It should be noted that above embodiment is only the preferable embodiment of the present invention, cannot be understood as to thisThe limitation of invention protection scope, under the premise of without departing from present inventive concept, to any minor variations and modifications of the invention doneIt all belongs to the scope of protection of the present invention.