• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

Texture filter improvements

arno

Administrator
Staff member
FSDevConf team
Resource contributor
Messages
34,540
Country
netherlands
Hi all,

I have made some optimizations to the texture filter a few days ago, it is part of the development release now. You should see that the texture filter is slightly faster and also uses less memory.

Let me know if you encounter any issues after these changes, as it has impacted a lot of code :)
 
Hi Arno!

Thanks a lot for the improved texture filter!
I have to play around with it a bit, but maybe I can rewrite all my autogen creation scripts...

For this purpose I have reconstructed it as described in the manual.
But I always get an error message in the Back Project-step:
clipboard01jhj4w.jpg


Here the full error message:
Code:
Informationen über das Aufrufen von JIT-Debuggen
anstelle dieses Dialogfelds finden Sie am Ende dieser Meldung.

************** Ausnahmetext **************
Emgu.CV.Util.CvException: OpenCV: rsz == dims*2 || (rsz == 2 && _1d) || (rsz == 0 && images.depth(0) == CV_8U)
   bei Emgu.CV.CvInvoke.CvErrorHandler(Int32 status, IntPtr funcName, IntPtr errMsg, IntPtr fileName, Int32 line, IntPtr userData)
   bei Emgu.CV.CvInvoke.cveCalcBackProject(IntPtr images, IntPtr channels, IntPtr hist, IntPtr dst, IntPtr ranges, Double scale)
   bei Emgu.CV.CvInvoke.CalcBackProject(IInputArrayOfArrays images, Int32[] channels, IInputArray hist, IOutputArray backProject, Single[] ranges, Double scale)
   bei ASToFra.scenProc.DataModel.TextureFilter.CVBackProject.GetImage(Int32 outputIndex, GridCell cell, BoundingBox bbox, Mat mask)
   bei ASToFra.scenProc.TextureFilterEditor.UpdateImage()
   bei ASToFra.scenProc.TextureFilterEditor.PicStepsMouseDown(Object sender, MouseEventArgs e)
   bei System.Windows.Forms.Control.OnMouseDown(MouseEventArgs e)
   bei System.Windows.Forms.Control.WmMouseDown(Message& m, MouseButtons button, Int32 clicks)
   bei System.Windows.Forms.Control.WndProc(Message& m)
   bei System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Geladene Assemblys **************
mscorlib
    Assembly-Version: 4.0.0.0.
    Win32-Version: 4.8.4121.0 built by: NET48REL1LAST_C.
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll.
----------------------------------------
scenProc
    Assembly-Version: 1.0.0.0.
    Win32-Version: 3.0.0.0.
    CodeBase: file:///C:/Program%20Files/ScenProc_v3/scenProc.exe.
----------------------------------------
System.Windows.Forms
    Assembly-Version: 4.0.0.0.
    Win32-Version: 4.8.4121.0 built by: NET48REL1LAST_C.
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll.
----------------------------------------
System
    Assembly-Version: 4.0.0.0.
    Win32-Version: 4.8.4001.0 built by: NET48REL1LAST_C.
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll.
----------------------------------------
System.Drawing
    Assembly-Version: 4.0.0.0.
    Win32-Version: 4.8.3752.0 built by: NET48REL1.
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll.
----------------------------------------
ASToFra.Utils
    Assembly-Version: 1.0.0.0.
    Win32-Version: 1.4.0.0.
    CodeBase: file:///C:/Program%20Files/ScenProc_v3/ASToFra.Utils.DLL.
----------------------------------------
ASToFra.Interfaces
    Assembly-Version: 1.0.0.0.
    Win32-Version: 1.4.0.0.
    CodeBase: file:///C:/Program%20Files/ScenProc_v3/ASToFra.Interfaces.DLL.
----------------------------------------
ASToFra.scenProc.DataModel
    Assembly-Version: 1.0.0.0.
    Win32-Version: 3.0.0.0.
    CodeBase: file:///C:/Program%20Files/ScenProc_v3/ASToFra.scenProc.DataModel.DLL.
----------------------------------------
ASToFra.TextureObject
    Assembly-Version: 1.0.0.0.
    Win32-Version: 1.4.0.0.
    CodeBase: file:///C:/Program%20Files/ScenProc_v3/ASToFra.TextureObject.DLL.
----------------------------------------
ASToFra.scenProc.Processor
    Assembly-Version: 1.0.0.0.
    Win32-Version: 3.0.0.0.
    CodeBase: file:///C:/Program%20Files/ScenProc_v3/ASToFra.scenProc.Processor.DLL.
----------------------------------------
DigitalRune.Windows.TextEditor
    Assembly-Version: 1.3.0.0.
    Win32-Version: 1.3.0.0.
    CodeBase: file:///C:/Program%20Files/ScenProc_v3/DigitalRune.Windows.TextEditor.DLL.
----------------------------------------
System.Configuration
    Assembly-Version: 4.0.0.0.
    Win32-Version: 4.8.3752.0 built by: NET48REL1.
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll.
----------------------------------------
System.Core
    Assembly-Version: 4.0.0.0.
    Win32-Version: 4.8.4121.0 built by: NET48REL1LAST_C.
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll.
----------------------------------------
System.Xml
    Assembly-Version: 4.0.0.0.
    Win32-Version: 4.8.3752.0 built by: NET48REL1.
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll.
----------------------------------------
ASToFra.EventLog
    Assembly-Version: 1.0.0.0.
    Win32-Version: 1.4.0.0.
    CodeBase: file:///C:/Program%20Files/ScenProc_v3/ASToFra.EventLog.DLL.
----------------------------------------
ASToFra.ObjectModel3D
    Assembly-Version: 1.0.0.0.
    Win32-Version: 1.4.0.0.
    CodeBase: file:///C:/Program%20Files/ScenProc_v3/ASToFra.ObjectModel3D.DLL.
----------------------------------------
ASToFra.LicenseHelper
    Assembly-Version: 1.0.0.0.
    Win32-Version: 1.0.0.0.
    CodeBase: file:///C:/Program%20Files/ScenProc_v3/ASToFra.LicenseHelper.DLL.
----------------------------------------
Portable.Licensing
    Assembly-Version: 1.0.0.0.
    Win32-Version: 1.1.0.0.
    CodeBase: file:///C:/Program%20Files/ScenProc_v3/Portable.Licensing.DLL.
----------------------------------------
System.Xml.Linq
    Assembly-Version: 4.0.0.0.
    Win32-Version: 4.8.3752.0 built by: NET48REL1.
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml.Linq/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.Linq.dll.
----------------------------------------
gdal_csharp
    Assembly-Version: 1.0.6962.42234.
    Win32-Version: 1.0.6962.42234.
    CodeBase: file:///C:/Program%20Files/ScenProc_v3/gdal_csharp.DLL.
----------------------------------------
ogr_csharp
    Assembly-Version: 1.0.6962.42232.
    Win32-Version: 1.0.6962.42232.
    CodeBase: file:///C:/Program%20Files/ScenProc_v3/ogr_csharp.DLL.
----------------------------------------
ASToFra.FSUtils
    Assembly-Version: 1.0.0.0.
    Win32-Version: 1.4.0.0.
    CodeBase: file:///C:/Program%20Files/ScenProc_v3/ASToFra.FSUtils.DLL.
----------------------------------------
AF2Utils
    Assembly-Version: 1.0.7433.14513.
    Win32-Version: 1.0.7433.14513.
    CodeBase: file:///C:/Program%20Files/ScenProc_v3/AF2Utils.DLL.
----------------------------------------
ASToFra.ObjectWriter
    Assembly-Version: 1.0.0.0.
    Win32-Version: 1.4.0.0.
    CodeBase: file:///C:/Program%20Files/ScenProc_v3/ASToFra.ObjectWriter.DLL.
----------------------------------------
System.DirectoryServices
    Assembly-Version: 4.0.0.0.
    Win32-Version: 4.8.3752.0 built by: NET48REL1.
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.DirectoryServices/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.DirectoryServices.dll.
----------------------------------------
ASToFra.scenProc.Steps
    Assembly-Version: 1.0.0.0.
    Win32-Version: 3.0.0.0.
    CodeBase: file:///C:/Program%20Files/ScenProc_v3/ASToFra.scenProc.Steps.DLL.
----------------------------------------
ASToFra.AutogenConfiguration
    Assembly-Version: 1.0.0.0.
    Win32-Version: 1.1.0.0.
    CodeBase: file:///C:/Program%20Files/ScenProc_v3/ASToFra.AutogenConfiguration.DLL.
----------------------------------------
FlightToolkit.SimProp
    Assembly-Version: 1.0.5.0.
    Win32-Version: 1.0.5.0.
    CodeBase: file:///C:/Program%20Files/ScenProc_v3/FlightToolkit.SimProp.DLL.
----------------------------------------
Emgu.CV.UI
    Assembly-Version: 3.4.3.3016.
    Win32-Version: 3.4.3.3016.
    CodeBase: file:///C:/Program%20Files/ScenProc_v3/Emgu.CV.UI.DLL.
----------------------------------------
Emgu.CV.World
    Assembly-Version: 3.4.3.3016.
    Win32-Version: 3.4.3.3016.
    CodeBase: file:///C:/Program%20Files/ScenProc_v3/Emgu.CV.World.DLL.
----------------------------------------
System.Windows.Forms.resources
    Assembly-Version: 4.0.0.0.
    Win32-Version: 4.8.3752.0 built by: NET48REL1.
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms.resources/v4.0_4.0.0.0_de_b77a5c561934e089/System.Windows.Forms.resources.dll.
----------------------------------------
System.Runtime.Serialization
    Assembly-Version: 4.0.0.0.
    Win32-Version: 4.8.4121.0 built by: NET48REL1LAST_C.
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Serialization/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Serialization.dll.
----------------------------------------
Ionic.Zip.Reduced
    Assembly-Version: 1.8.4.28.
    Win32-Version: 1.8.4.28.
    CodeBase: file:///C:/Program%20Files/ScenProc_v3/Ionic.Zip.Reduced.DLL.
----------------------------------------
SMDiagnostics
    Assembly-Version: 4.0.0.0.
    Win32-Version: 4.8.4121.0 built by: NET48REL1LAST_C.
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/SMDiagnostics/v4.0_4.0.0.0__b77a5c561934e089/SMDiagnostics.dll.
----------------------------------------
System.ServiceModel.Internals
    Assembly-Version: 4.0.0.0.
    Win32-Version: 4.8.4121.0 built by: NET48REL1LAST_C.
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.ServiceModel.Internals/v4.0_4.0.0.0__31bf3856ad364e35/System.ServiceModel.Internals.dll.
----------------------------------------
System.RunTime.Serialization.resources
    Assembly-Version: 4.0.0.0.
    Win32-Version: 4.8.3752.0 built by: NET48REL1.
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Serialization.resources/v4.0_4.0.0.0_de_b77a5c561934e089/System.Runtime.Serialization.resources.dll.
----------------------------------------
ASToFra.Autogen
    Assembly-Version: 1.0.0.0.
    Win32-Version: 1.1.0.0.
    CodeBase: file:///C:/Program%20Files/ScenProc_v3/ASToFra.Autogen.DLL.
----------------------------------------
GeoAPI
    Assembly-Version: 1.7.4.0.
    Win32-Version: 1.7.4.0.
    CodeBase: file:///C:/Program%20Files/ScenProc_v3/GeoAPI.DLL.
----------------------------------------
NetTopologySuite
    Assembly-Version: 1.14.0.0.
    Win32-Version: 1.14.
    CodeBase: file:///C:/Program%20Files/ScenProc_v3/NetTopologySuite.DLL.
----------------------------------------
osr_csharp
    Assembly-Version: 1.0.6962.42230.
    Win32-Version: 1.0.6962.42230.
    CodeBase: file:///C:/Program%20Files/ScenProc_v3/osr_csharp.DLL.
----------------------------------------
System.resources
    Assembly-Version: 4.0.0.0.
    Win32-Version: 4.8.3752.0 built by: NET48REL1.
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.resources/v4.0_4.0.0.0_de_b77a5c561934e089/System.resources.dll.
----------------------------------------
mscorlib.resources
    Assembly-Version: 4.0.0.0.
    Win32-Version: 4.8.3752.0 built by: NET48REL1.
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/mscorlib.resources/v4.0_4.0.0.0_de_b77a5c561934e089/mscorlib.resources.dll.
----------------------------------------

************** JIT-Debuggen **************
Um das JIT-Debuggen (Just-In-Time) zu aktivieren, muss in der
Konfigurationsdatei der Anwendung oder des Computers
(machine.config) der jitDebugging-Wert im Abschnitt system.windows.forms festgelegt werden.
Die Anwendung muss mit aktiviertem Debuggen kompiliert werden.

Zum Beispiel:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

Wenn das JIT-Debuggen aktiviert ist, werden alle nicht behandelten
Ausnahmen an den JIT-Debugger gesendet, der auf dem
Computer registriert ist, und nicht in diesem Dialogfeld behandelt.
Is this a mistake on my part?
 
Hi,

Your script looks OK. What format did you import the sample images from? And I assume you have selected some reference areas for the backproject step?
 
Well, there the error sat in front of the PC.
I forgot to select the reference fields... :oops:
 
Well, it should not throw an error, I'll try to reproduce that here.
 
Hi,

I have fixed the error now as well. So in the next development release it won't crash when no samples have been added.
 
Great, thanks a lot!
The new Texture filter works indeed much faster than to old one...
Maybe I will create the autogen for spain with it... :cool:
 
Back
Top