Afficher une image de surface 3D à partir d'une matrice

je dispose d'une matrice Z[i][j] de type double.
et une variable member m_graph de type CNigraph3D
je cherche à afficher dans un control graph3D.
quel code dois-je ecrire?

I didn't understand all of that, but it sounds like you're looking for a way to plot a matrix of doubles in CNiGraph3D. The easiest way to do this would be to create a CNiReal64Matrix from the matrix of doubles, and then pass it to the overload of CNiGraph3D:lot3DSimpleSurface that takes a single CNiReal64Matrix.
- Elton

Similar Messages

  • Afficher les images d'un repertoire à tour de rôle dans une même fenêtre image

    Bonjour à tous,
    Je voudrais afficher les images d'un repertoire à tour de rôle dans une même fenêtre image. Quelqu'un peut-il m'aider. Merci d'avance.

    Bonjour,
    Je vous joins un VI "clé en main" et je pense que ça répond à votre attente...
    Dans le dossier, les deux photos doivent se placer sur le disque C:\.
    Le VI permet l'affichage de ces photos... On y règle la temporisation et le nombre de photos à afficher.
    Cordialement
    David D.
    Ingénieur d'Applications
    NI France
    Attachments:
    Picture.zip ‏999 KB

  • Afficher une image sur un deuxième écran autrement que l'écran du PC où il a le programme (VI)

    Bonjour, Je fais un programme qui génère une figure (image) avec les coordonnées et les datas pour afficher cette image. L'image s'affiche sur la face avant du VI. Maintenant je voudrais faire: quand on lance ce VI, non seulement l'image s'affiche selon les entrées sur la face avant main en même temps cette image s'affiche aussi sur un autre écran (seulement l'image entière mais pas la face d' avant du VI) qui connecte avec le PC contient le VI.
    Merci pour votre aide. TuongLinh.

    Voilà un petit exemple simple, le VI "launcher" lance le VI "display" en lui donnant une image et sa taille, celui-ci s'affiche de manière à être sur le second écran (si il y en a un) et adapte sa taille et celle du picture control à l'image.
    J'espère que ça te sera utile.
    When my feet touch the ground each morning the devil thinks "bloody hell... He's up again!"
    Attachments:
    display.vi ‏14 KB
    launcher.vi ‏7 KB

  • Afficher une image sur un deuxième écran autrement que l'écran du PC où il y a le programme

    Bonjour,
    Je fais un programme qui génère une figure (image) avec les coordonnées
    et les datas pour afficher cette image. L'image s'affiche sur la face
    avant du VI. Maintenant je voudrais faire: quand on lance ce VI, non
    seulement l'image s'affiche selon les entrées sur la face avant main en
    même temps cette image s'affiche aussi sur un autre écran (seulement
    l'image entière mais pas la face d' avant du VI) qui connecte avec le
    PC contient le VI.
    Merci pour votre aide. TuongLinh.
    Résolu !
    Accéder à la solution.

    Bonjour Maxime,
    Merci beaucoup pour votre solution, j'ai adapté à mon VI, ça marche bien, seulement dans le sous-VI "fenetre.Image" il y a une boucle While qui ne s'arrête pas quand j'exécute mon VI pricipale, je voudrais mettre une commande (Booléen) à la face avance de mon VI principale pour arr^ter le VI quand on veut mais je ne sais pas faire comment pour lier cette commande avec la commande d'arrêt dans le sousVI fenetre.Image. Pourriez-vous m'indiquer la solution s'il vous plait.
    Merci beaucoup Maxime. TuongLinh. Cordialement.
    Pièces jointes :
    Creation_Image.vi ‏24 KB
    fenetre.Image.vi ‏23 KB
    vi.Premier.Plan.vi ‏30 KB

  • Afficher une image png sur face avant

    Bonjour,
    Je cherche à afficher une image .png sur la face avant de mon vi. J'ai bien trouvé plusieurs exemples sur les forums mais tous utilisent des containers.
    J'aimerais juste afficher l'image en elle même sans avoir de cadre autour... (j'ai rajouté l'icone verte sur le print screen en faisant un copier-coller mais il n'est pas possible de la rendre invisible).
    Le but final serait d'afficher telle ou de rendre invisible cette image.
    Cela est-il possible?
    J'utilise LB2010 ou 2009...
    Merci d'avance
    Résolu !
    Accéder à la solution.
    Pièces jointes :
    Sans titre.JPG ‏28 KB

    Bonjour,
    Tu peux aussi utiliser un picture ring de la palette classic, et rendre le cadre transparent. Tu importes ton image en laissant un item vide. Tu n'as qu'à changer la valeur pour afficher ou non l'image (ou utiliser un noeud de propriété visible fonctionne aussi).
    Cordialement,
    Simon D.
    CLA | Certified LabVIEW Architect
    CTA | Certified TestStand Architect

  • Afficher une image dans un message pop-up

    Bonjour à tous,
    Je travaille actuellement sur un banc de mesure, et j'aimerais qu'un message avec une image du branchement du banc à configurer à l'intérieure apparaisse.
    Est-il possible d'afficher une image dans un message pop-up ?
    Si oui, avez-vous quelques idées qui puissent me mettre dans le bon sens de la marche !
    Cdt,
    Florian
    Résolu !
    Accéder à la solution.

    J'ai fait un exemple pour toi là.
    Un VI simple qui en ouvre un autre, avec les propriétés pour que ça ressemble à une boite de dialogue de windows mais avec une image en plus (simple copié-collé de l'image prise sur google).
    Le sous-VI possède une sortie booleenne "Non ?" qui s'active si tu appuis sur "Non". ça permet de faire des codes différents en fonction du choix de l'utilisateur.
    Pièces jointes :
    Ni fourms - Popup - Principal.vi ‏10 KB
    Ni fourms - Popup - Secondaire.vi ‏66 KB

  • I need help dividing an image into two equal parts in Adobe Illustrator CC--ASAP!!!

    I need help dividing a single, already created image into 2 equal parts...Am getting nowhere so far

    Hi Willi, thanks so much for responding! Below is the image I need to divide in half. The left half where it says "Click here for the definition" links to a landing page where people can read the definition of the Hebrew Word. The right half links to an audio recording of the Hebrew word being spoken aloud. I am trying to figure out how to use the scissors or knife tool in Adobe Illustrator and am having no luck. Plus I believe there's a way to include URLs on each separated part, but I can't get past figuring out how to cut it. My background is not graphic design

  • Image Splicing Effect Challenge (Part 1)

    I ran across a neat image effect on this image:
    Rock In Rio
    Thought it might be neat to see how different people in the forums would go about doing this...
    Anyhow. Looking forward to your ideas. Take care.
    UPDATE*
    This thread has been continued into the following thread:
    Image Splicing Effect Challenge (Part 2)
    “If you want something you've never had, you need to do something you've never done.”
    Don't forget to mark
    helpful posts and answers
    ! Answer an interesting question? Write a
    new article
    about it! My Articles
    *This post does not reflect the opinion of Microsoft, or its employees.

    I am early staking my claim to pathclip.
    Imports System.Drawing.Drawing2D
    Public Class Form3
    Private path1 As New Drawing2D.GraphicsPath
    Private BorderColor As Color = Color.Goldenrod
    Private MouseDownIndex As Integer = -1
    Private MouseDownX, MouseDownY, MouseDownBmpX, MouseDownBmpY As Integer
    Private OffsetX, OffsetY, SliceWidth, SliceStep As Integer
    Private bmpSlice As Bitmap = New Bitmap("C:\bitmaps\metallica\metallica bw.jpg")
    Private bmpBack As Bitmap = New Bitmap("C:\bitmaps\metallica\metallica background logo.png")
    Structure bmpPoint
    Public x As Integer
    Public y As Integer
    Public bmp As Bitmap
    End Structure
    Private bmpPointList As New List(Of bmpPoint)
    Private Sub Form5_Load(sender As Object, e As EventArgs) Handles MyBase.Load
    InitilizeControls()
    Form5_Resize(0, Nothing)
    End Sub
    Private Sub PictureBox1_Paint(sender As Object, e As PaintEventArgs) Handles PictureBox1.Paint
    With e.Graphics
    'draw background fit to window
    Using bmpScene As Bitmap = New Bitmap(PictureBox1.ClientSize.Width, PictureBox1.ClientSize.Height)
    Using g As Graphics = Graphics.FromImage(bmpScene)
    'make temp image, fit to window
    g.DrawImage(bmpBack, 0, 0, bmpScene.Width, bmpScene.Height)
    'copy temp image to background
    If CheckBox2.Checked Then
    'add fuzzy
    Dim t As Integer = NumericUpDown7.Value + 1
    If t > 1 Then
    For y = 0 To bmpScene.Height - 1
    For x = 0 To bmpScene.Width - 1
    If x Mod t = 0 And y Mod t = 0 Then
    bmpScene.SetPixel(x, y, Color.White)
    End If
    Next
    Next
    End If
    .DrawImage(bmpScene, 0, 0)
    End If
    End Using
    End Using
    'draw each slice path with inner bitmap
    'set translate for global scene
    .SmoothingMode = SmoothingMode.AntiAlias
    .TranslateTransform(OffsetX - SliceWidth, OffsetY - SliceStep)
    For i = 0 To bmpPointList.Count - 1
    Using tbmp As Bitmap = bmpPointList(i).bmp.Clone
    'setup coordinate origin for this slice
    .TranslateTransform(SliceWidth, SliceStep)
    'fade slice border edge
    If NumericUpDown8.Value > 0 Then
    Dim fadewidth As Integer = NumericUpDown8.Value * 10
    'calc local coordinate of upper left slice on inner movable bitmap
    Dim x2 As Single = path1.PathPoints(3).X - bmpPointList(i).x
    Dim y2 As Single = path1.PathPoints(3).Y - bmpPointList(i).y
    'calc angle of slice
    Dim dx As Single = path1.PathPoints(0).X - path1.PathPoints(3).X
    Dim dy As Single = path1.PathPoints(0).Y - path1.PathPoints(3).Y
    Dim x1, y1, x3 As Integer
    Dim oldClr, newClr As Color
    'add fade to temp inner bitmap along edges of path
    For y1 = y2 To y2 + dy
    x2 += dx / dy
    For z = 0 To fadewidth
    x1 = Math.Floor(x2) + z
    If x1 > 0 And x1 < tbmp.Width And y1 > 0 And y1 < tbmp.Height Then
    'left side
    oldClr = tbmp.GetPixel(x1, y1)
    newClr = Color.FromArgb((255 \ fadewidth) * z, oldClr.R, oldClr.G, oldClr.B)
    tbmp.SetPixel(x1, y1, newClr)
    x3 = x1 + SliceWidth - (2 * z)
    If x3 > 0 And x3 < tbmp.Width Then
    'right side
    oldClr = tbmp.GetPixel(x3, y1)
    newClr = Color.FromArgb((255 \ fadewidth) * z, oldClr.R, oldClr.G, oldClr.B)
    tbmp.SetPixel(x3, y1, newClr)
    End If
    End If
    Next
    Next
    End If
    'draw the image slice using the path clipping
    .SetClip(path1)
    .DrawImage(tbmp, bmpPointList(i).x, bmpPointList(i).y, tbmp.Width, tbmp.Height)
    .ResetClip()
    'draw border outline path
    If CheckBox1.Checked Then .DrawPath(New Pen(BorderColor, 2), path1)
    End Using
    Next
    If CheckBox2.Checked Then
    .ResetTransform()
    .DrawString("tommytwotrain", New Font("Rockwell Extra Bold", 12), New SolidBrush(BorderColor), 0, PictureBox1.Height - 30)
    End If
    End With
    End Sub
    Private Sub PictureBox1_MouseDown(sender As Object, e As MouseEventArgs) Handles PictureBox1.MouseDown
    'determine which slice was clicked
    Using path2 As Drawing2D.GraphicsPath = path1.Clone
    Dim Matrix1, matrix2 As New Matrix
    MouseDownIndex = -1
    Matrix1.Translate(OffsetX - SliceWidth, OffsetY - SliceStep)
    path2.Transform(Matrix1)
    matrix2.Translate(SliceWidth, SliceStep)
    For i = 0 To bmpPointList.Count - 1
    path2.Transform(matrix2)
    If path2.IsVisible(e.X, e.Y) Then
    MouseDownIndex = i
    MouseDownX = e.X
    MouseDownY = e.Y
    MouseDownBmpX = bmpPointList(MouseDownIndex).x
    MouseDownBmpY = bmpPointList(MouseDownIndex).y
    Exit Sub
    End If
    Next
    End Using
    End Sub
    Private Sub PictureBox1_MouseMove(sender As Object, e As MouseEventArgs) Handles PictureBox1.MouseMove
    If MouseDownIndex >= 0 Then
    'move the image if dragging
    Dim thisbmptom As New bmpPoint
    thisbmptom = bmpPointList(MouseDownIndex)
    thisbmptom.x = MouseDownBmpX - (MouseDownX - e.X)
    thisbmptom.y = MouseDownBmpY - (MouseDownY - e.Y)
    bmpPointList(MouseDownIndex) = thisbmptom
    thisbmptom = Nothing
    PictureBox1.Invalidate()
    End If
    End Sub
    Private Sub PictureBox1_MouseUp(sender As Object, e As MouseEventArgs) Handles PictureBox1.MouseUp
    MouseDownIndex = -1
    End Sub
    Private Sub Form5_Resize(sender As Object, e As EventArgs) Handles MyBase.Resize
    Dim t As Integer = Me.ClientSize.Height - Panel1.Height
    If t > 100 Then PictureBox1.Height = t Else PictureBox1.Height = 100
    OffsetX = NumericUpDown3.Value * 10
    OffsetY = NumericUpDown4.Value * 10
    SliceWidth = NumericUpDown6.Value * 10
    SliceStep = NumericUpDown5.Value * 5
    'create the slice outline path geometry
    Dim w1 As Single = PictureBox1.ClientSize.Width
    Dim h1 As Single = 0.7 * PictureBox1.ClientSize.Height
    Dim x1 As Single = 0.1 * w1
    Dim a As Single = NumericUpDown2.Value * 10 / 57.3
    Dim x As Single = Math.Cos(a) * h1 / Math.Sin(a)
    Dim thePolygon() As PointF = {New PointF(x1, h1), _
    New PointF(x1 + SliceWidth, h1), _
    New PointF(x1 + SliceWidth + x, 0), _
    New PointF(x1 + x, 0), _
    New PointF(x1, h1)}
    path1.Reset()
    path1.AddLines(thePolygon)
    PictureBox1.Invalidate()
    End Sub
    Private Sub NumericUpDown1_ValueChanged(sender As Object, e As EventArgs) Handles NumericUpDown1.ValueChanged
    'create images for number of slices
    bmpPointList.Clear()
    Dim thisbmpTom As New bmpPoint
    For i = 0 To NumericUpDown1.Value - 1
    thisbmpTom.bmp = bmpSlice
    bmpPointList.Add(thisbmpTom)
    Next
    Form5_Resize(0, Nothing)
    PictureBox1.Invalidate()
    End Sub
    Private Sub NumericUpDowns_ValueChanged(sender As Object, e As EventArgs) Handles NumericUpDown2.ValueChanged, NumericUpDown3.ValueChanged, NumericUpDown4.ValueChanged, NumericUpDown5.ValueChanged, NumericUpDown6.ValueChanged, NumericUpDown7.ValueChanged, NumericUpDown8.ValueChanged
    'general settings
    Form5_Resize(0, Nothing)
    PictureBox1.Invalidate()
    End Sub
    Private Sub PictureBox2_Click(sender As Object, e As EventArgs) Handles PictureBox2.Click
    Dim cd As New ColorDialog
    If cd.ShowDialog Then
    BorderColor = cd.Color
    PictureBox2.BackColor = BorderColor
    End If
    PictureBox1.Invalidate()
    End Sub
    Private Sub CheckBox1_CheckedChanged(sender As Object, e As EventArgs) Handles CheckBox1.CheckedChanged, CheckBox2.CheckedChanged
    'border, background
    PictureBox1.Invalidate()
    End Sub
    Private Sub InitilizeControls()
    PictureBox1.BackColor = Color.Black
    PictureBox1.Dock = DockStyle.Bottom
    PictureBox2.BackColor = BorderColor
    Panel1.Dock = DockStyle.Top
    CheckBox1.Checked = True
    CheckBox2.Checked = True
    NumericUpDown1.Value = 4 'slices
    NumericUpDown1.Maximum = 7
    NumericUpDown1.Minimum = 1
    NumericUpDown2.Value = 6 'angle
    NumericUpDown2.Maximum = 9
    NumericUpDown2.Minimum = 1
    NumericUpDown3.Value = -6 'offsetx
    NumericUpDown3.Maximum = 30
    NumericUpDown3.Minimum = -30
    NumericUpDown4.Value = 3 'offsety
    NumericUpDown4.Maximum = 30
    NumericUpDown4.Minimum = -30
    NumericUpDown5.Value = 2 'slice dy
    NumericUpDown5.Maximum = 30
    NumericUpDown5.Minimum = 0
    NumericUpDown6.Value = 8 'slicewidth
    NumericUpDown6.Maximum = 30
    NumericUpDown6.Minimum = 1
    NumericUpDown7.Value = 5 'fuzzy
    NumericUpDown7.Maximum = 9
    NumericUpDown7.Minimum = 0
    NumericUpDown8.Maximum = 9 'fade
    NumericUpDown8.Minimum = 0
    NumericUpDown8.Value = 0
    End Sub
    End Class

  • J'étais en train de mettre a jour mon ipod touch puis au milieu il s'arrete. j'essaie de le rebrancher a mon ordinateur mais celui ci ne le reconnait plus. mon ipod affiche une cle usb vers itunes et ne repond plus. que faire

    j'étais en train de mettre a jour mon ipod touch puis au milieu il s'arrete. j'essaie de le rebrancher a mon ordinateur mais celui ci ne le reconnait plus. mon ipod affiche une cle usb vers itunes et ne repond plus. que faire?

    Rough translation via Google Translate:
    I was trying to update my ipod touch then it stops in the middle. I try to reconnect to my computer but this one does not recognize any more. my ipod shows a usb to itunes and unresponsive. What to do?
    Try placing the iPod into DFU mode using the instructions in this article and restoring it once more.
    http://www.iclarified.com/entry/index.php?enid=1034
    B-rock

  • Je ne peux plus consulter mes messages courriels, cela affiche une page blanche

    Je ne peux plus consulter mes messages courriels, cela affiche une page blanche

    Mac OS X: Gray screen appears during startup - Apple Support

  • Run my PC (image) from Surface Pro 3

    I would like to run my work pc image from Surface Pro 3 I recently bought. Is it possible to do if so what needs to be done

    Hi,
    consider setting up Hyper-V and installing the image into a vm.
    MCP/MCSA/MCTS/MCITP

  • Lecture d'une matrice issue de Mathcad 12

    Bonjour,
    Je souhaite pouvoir lire depuis LabView 7.1 une matrice issue de Mathcad 12.
    Je possède déjà la librairie Mathcad. Les fichiers d'exemple fonctionne très bien, cependant je n'arrive pas à créer un petit programme LabView me permettant seulement de lire une matrice 1D ou 2d.
    Pouvez-vous m'aider?
    Avez vous un fichier d'exemple?
    Merci d'avance. SebJoss

    Bonjour et merci encore ... Mais je ne trouve toujours pas la solution !!
    Je pense que je vais refaire mon projet.
    Cordialement.
    Message du 10/10/14 17:15
    De : "Benoit24"
    A : "André PASSERON"
    Copie à :
    Objet :  Problème de lecture d'un projet en cours de montage (premiere elements 12)
    Problème de lecture d'un projet en cours de montage (premiere elements 12)
    created by Benoit24 in Forums en français - View the full discussion
    Travaillant sur Première Pro je ne connais pas vraiment Elements mais cela devrait ressembler a qqchose dans ce goût là!
    Adobe Premiere Elements * Organisation des éléments dans le montage en mode Expert
    Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at https://forums.adobe.com/message/6812954#6812954
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page:
    To unsubscribe from this thread, please visit the message page at . In the Actions box on the right, click the Stop Email Notifications link.
    Start a new discussion in Forums en français by email or at Adobe Community
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0.

  • Transforma​tion d'une matrice en chaîne de caractère

    Bonjour,
    Voici mon problème.
    Je dois transformer un tableau 2D en chaîne de caractère, je m'explique.
    Je code un fichier à partir d'une matrice donnée. J'ouvre le fichier, transforme l'octet lu en booléen, puis code l'octet avec la matrice mais je n'arrive pas à transformer le tableau 2D que sort la matrice en octet pour pouvoir réécrire mon fichier coder avec la matrice.
    J'aurai voulu savoir si quelqu'un avait une idée pour la partie de transformation de la partie coder avec la matrice pour revenir en chaîne.
    Je vous joins le VI.
    Cordialement
    Pièces jointes :
    Code matrice.vi ‏44 KB

    Bonjour Cpomoi,
    tout comme Eric j'ai du mal à comprendre votre problème. Pourriez-vous nous en dire plus sur la partie codage? pourquoi transformez-vous le vecteur de bits que vous avez créer en matrice de double et quelle est la structure de cette matrice?
    Merci d'avance.
    Cordialement,
    Audrey_P
    National Instruments France
    #adMrkt{text-align: center;font-size:11px; font-weight: bold;} #adMrkt a {text-decoration: none;} #adMrkt a:hover{font-size: 9px;} #adMrkt a span{display: none;} #adMrkt a:hover span{display: block;}
    Journées techniques : des fondamentaux aux dernières technologies pour la mesure et le contrôle/comm...

  • Création d'une matrice

    Bonjour,
    Je travaille sous LV 8.2. 
    Je souhaite créer une matrice carrée S qui est la transformée inverse d'une multiplication de deux fonctions H et w.
    w est un matrice 1x0
    H est une matrice 1x0
    S se définit comme ca:
    J'utilise une boucle for pour  f allant de 1 à M
    S = ifft (H(f+M/2:f+M/2 +M-1) x w)
    H(f+M/2:f+M/2 +M-1) veut dire que je prend un intervalle de la fonction H qui change chaque fois en fonction de la boucle.
    Au final je devrais obtenir une matrice S de dimension MxM
    Or j'obtiens seulement une matrice à 1 dimension...
    Quelle est mon erreur?
    Merci 
    Pièces jointes :
    test3.vi ‏33 KB

    Bonjour,
    pourquoi ne pas faire ceci ?
    Cordialement,
    V-F

  • Création d`une matrice de Park

    Comment créer une matrice de park sur le cRio après avoir rentrer 4 signaux qui sont les tensions Va,Vb,Vc et l`angle theta  pour générer les 2 tensions de sortie Vd et Vq ? merci. 

    Avez-vous regardé quelques-uns des exemples dans l'exemple finder? Il existe des exemples spécifiques sur la façon d'effectuer l'entrée et la sortie analogique avec des modules spécifiques. Dans l'exemple finder ils peuvent être trouvés sous Entrée de matériel et de sortie >> CompactRIO >> Module IO spécifique.
    Si vous rencontrez des problèmes spécifiques lors de l'exécution de l'algorithme sur le FPGA nous pouvons les traiter au cas par cas.
    Encore une fois, je recommande fortement ce détachement dans le forum de la langue française:
    Discussions au sujet de NI LabVIEW
    Si vous postez une question en français là-bas, beaucoup d'yeux le verront, lire, et peuvent contribuer. Si vous continuez à poster ici, il est peu probable que beaucoup de gens se donner la peine de le traduire ou de commenter.
    Jeff L
    National Instruments

Maybe you are looking for

  • How to find the Parent process in workflow

    Hi all, I have a .wft file with me. It contains atleast 8 processess. I need to understand the flow of this workflow. How do i getto know the flow? How do I getto know the parent process? I am sure if i know the parent process then i can figure out t

  • Photosmart D7200 not printing magenta

    My Photosmart D7260 is printing poor quality photos. It printed well the last time I used it, approximately 1 year ago. Today, with new cartidges, it is not printing magenta. I was able to successfully align the printer using the alignment utility, a

  • Valuation area

    hi    when i am running FAGLF101,it is asking for valuation area.how to define valuation area.

  • I can't find the "Repeat" button in my Itunes.

    I can't find the "Repeat" button in my Itunes, when I'm listenning to a music. I have reinstaled my Itunes, it didn't help.

  • Applet not loading in IE from Builder 904

    SUMMARY When I launch my Form from Builder the first time it works. Any subsequent launches from Builder do not work. Instead IE shows HTML in the browser window. The only way to get it to work again is to restart Builder. If I change my default brow