Artis Vilciņš
Artis Vilciņš
CC#
Created by Artis Vilciņš on 3/13/2024 in #help
How to combine images?
I have a task to combine 2 images one considered the static other the "moving" image. They are taken like cameras standing next to each other of the same object. I need to do this in C# and it needs to be OS independent, as it will need to run on linux. I found this article that does the thing I need to do in C# only in matlab. https://se.mathworks.com/help/images/ref/imregdemons.html For other similar requirements in the project I am using SixLabors.ImageSharp library. But I just cannot seem to find a place to start. I am software engineer mostly focusing on business applications, I do not have large experience in theese kind of advanced image transformations.
1 replies
CC#
Created by Artis Vilciņš on 8/10/2023 in #help
❔ Application insigths telemetry on linux not working
Code sample:
` services.AddOpenTelemetry().UseAzureMonitor(options => {
options.ConnectionString = config.ApplicationInsights.ConnectionString;
options.SamplingRatio = 0.1F;
});

services.ConfigureOpenTelemetryTracerProvider((sp, builder) =>
builder.ConfigureResource(resourceBuilder =>
resourceBuilder.AddAttributes(new Dictionary<string, object> {
{ "Service", config.MicroserviceName }
}))
.AddNpgsql()
.SetSampler(new AlwaysOnSampler()));
` services.AddOpenTelemetry().UseAzureMonitor(options => {
options.ConnectionString = config.ApplicationInsights.ConnectionString;
options.SamplingRatio = 0.1F;
});

services.ConfigureOpenTelemetryTracerProvider((sp, builder) =>
builder.ConfigureResource(resourceBuilder =>
resourceBuilder.AddAttributes(new Dictionary<string, object> {
{ "Service", config.MicroserviceName }
}))
.AddNpgsql()
.SetSampler(new AlwaysOnSampler()));
Currently trying to connect application insigths telemetry to my microservices. Everything works on windows, but trying to run on any linux microservice starts after 6 minutes. I have no idea why on windows everything is normal, but on linux this just does not start normally. Any clues? Tested on VM linux and docker linux same thing. multiple windows computers works.
2 replies