Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

183
Visualizações
How can I add the values in an array to the Point in C#?

This is an representative imageI am trying to write the data as points for processing the image and I have an array which is full with the values as [r1,g1,b1,r2,g2,b2...].I mean this is a black and white image and I wrote the pixels in order(like:[255,255,255,000,000,000.....]) but I need to write the values as point for performing an algorithm.I tried to write the code but could not do this in the right way.

What I want is like -> result[i]=point(x,y).Is writing this code possible?What am I doing wrong with this code?

EDIT:I am trying to write a morphological algorithm(For writing Graham scan I need to find the points).I am triying to send the data as width(datawidth * 3 because it is in rgb format) and width.With this way I am trying to send 'width * 3' to x-coordinate and when I send it y-coordinate is gonna be 0 and when I send the second 'width * 3' y-coordinate is gonna be 1 and sorth of.That is what I am thinking about the code.

Here is the code:

List<Point> points = new List<Point>();
            
            for (int i = 0; i < 500; i++)
            {
                byte dnm = 0;
                for (int d = 0; d < 800*3; d++)
                {
                    points(i,d)= result[dnm];
                    dnm++;
                }
                dnm++;
            }
over 4 years ago · Santiago Trujillo
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda