How to change the input descriptor of return on investment?

I am a beginner of Labview Vision users. I need to convert a RGB image into binary image and superimpose a few lines on the binary image at random and then measure the length of the ordinate at the origin of the image. I came across the problem of changing of return on investment by incorporating a few random coordinates (by this contact information, I can generate random lines.). But I could not find how to change the coordinates or import data from an excel file coordination.

Any help is appreciated.

Jian

If you have the package of Vision, you can use the line to convert to the KING function and the power cable in the KING of the image property.  If you do not, you will need to build your own KING.  Given the coordinates of line (X 1, Y1) and (X 2, Y2) the entries in the return on investment are the following.

Global rectangle - table of 4 elements with values [X 1, Y1, X 2 + 1, Y2 + 1]

Countours - single element (table 4 external elements, line [X 1, Y1, X 2, Y2])

Tags: NI Software

Similar Questions

  • How to change the input to Dogri language

    How to change the input to Dogri in Windows 8 language using visual studio 2005

    Hey Yusuf,

    To change the language in the Visual Studio program, I suggest you view the query in the Visual Studio forum:

    http://social.msdn.Microsoft.com/forums/vstudio/en-us/home?category=VisualStudio

  • How to change the input range (DAQ assistant) with a digital command?

    Hello everyone

    I am currently working with the NI USB-6218 acquisition card.

    In order to acquire a signal, I would like to be able to choose the input range of the DAQ with a digital command Wizard (and not opening the window of DAQ assistant) (as 'number of sample' and section 'rate'...)

    Is this possible and if so, how?

    Thank you very much in advance for your answers!

    You can't with the DAQ Assistant so just click on and select "generate the Code of OR-DAQmx. You can edit the Subvi who performs the installation.

  • How to change the input on Satellite Pro M70 keyboard language?

    Hi guys,.
    I am facing problem with laptop M70-122 key boards. Keys @ and "are interchangeable. Printing on keyboards are same as a normal PC. But when I press the SHIFT + 2 ket I get "instead of @ and vice versa." How can I solve this problem.

    Hello

    Believe me, it s not a failure or a problem.
    You have bad language keyboard configurations.
    I suppose that you have set the US or UK keyboard. Please change these settings

    Please see the Control Panel regional and language options languages details. There you can change keyboard settings.

  • How do I change the input on the LCD 65 profile Cisco

    We recently had a Cisco TelePresence given 65 profile system. We have all the documents and I could not find instructions on the lcd screen. The screen has several entries and RS232. I would like to know how to change the input to the screen. Could someone explain to me how it would happen? I guess its more rs232 because I can't find any button on the unit. Is there an API for the screen? What are the communication settings for the screen?

    Any help is appreciated more.

    Thank you

    James

    Double post - see https://supportforums.cisco.com/discussion/12742796/how-change-input-cisco-profile-65-lcd-screen

  • IOS publish setting, by manually changing the application descriptor file?

    I publish an IOS app with a few donkeys.

    ENA need some changes made to the application descriptor file, but when publishing for IOS, there is no authorization with the option "manually adjust" tab

    Any ideas how to change the file descriptor of IOS?

    Thank you

    Pete

    Well Yes, as Colin says, there is a block of you can add to your app xml descriptor (generator flash should generate one for you in your descriptor xml app and then you can just change).  Nothing in here will be added to the info.plist in the iOS app resulting.  There is also a block matching for Android.

    Thus, for example, if I want my app to be a universal app (iphone and ipad is intended), I would normally like this in info.plist, using the key UIDeviceFamily of Apple:

    UIDeviceFamily
    
      1
      2
    
    

    To do the same thing in the AIR, I add the following, inside the main application tag:

    
      UIDeviceFamily
      
        1
        2
      
      ]]>
    
    

    In this way, you can directly add nothing to the info.plist of the IPA file resulting of your choice and add the permissions/settings that allows Apple.

  • How to change the resolution of the screen when the "input not supported" message after reboot

    I need to change the display resolution to 1600 x 1024 after I changed my 1900 x 1200.
    the problem is,
    the "input not supported" message when I reboot the PC and does not allow me to do anything.
    He presents himself before the logon prompt.
    I restarted to fail safe with the command line with the id of the administrator and was able to change the resolution, but
    He returns to the State ("input not supported" and no prompt connection) after I restart the PC

    Mark,
    Thank you for your help,
    I tried in vain,
    I just used another monitor with a higher resolution, restore the previous resolution and swap the monitor again.

    Kind regards

    Claudio.

  • How I change the fonts and colors of default return?

    I changed the font and the color of the text through the Tools button and the button options and the tab content. I can't find anything tell me how to change the fonts and colors to the colors and fonts by default. Can you advise me? I use Windows 7 Home Premium OS. Thank you.

    Hi Brenda19605,

    You can use this article to set the fonts and colors: https://support.mozilla.org/en-US/kb/change-fonts-and-colors-websites-use?esab=a & s = do & r = 0 & s = as

    The default settings for the police are in this article:
    https://support.Mozilla.org/en-us/KB/some%20text%20shows%20up%20bold%20after%20upgrade

    Unfortunately for the default color has no good reference. For the text, but it is black (most lower-left), the background is white (color above left). Unvisited links is blue (column 8, line 5) and the visited link is purple (column 9, line 5).

    Let me know if you need help more!

    Lordfreak

  • How to use the input as VC Atttibutes string?

    Hello everyone,

    I'm discovering VCO. And I need your help.

    How can I use input string as a VC attributes at the end? Then, use this return as input for another workflow.

    The workflow that I am putting in place is:

    1-name of the VM to search in vCenter: input String (example: 'TOTO')

    2-search 'TOTO' virtual machine in the vCenter, if found then

    3 - use this result to clone a VM TOTO

    For stage 1 and 2, it works, I can search based on the input of the chain and get a result.

    But for step 3, I use another workflow 'Create virtual machine' and we must put a VC:VirtualMachine.

    And it does not work because the type I get to step 2 is not compatible with the entry for step 3.

    Progressive input signal 3 waiting for VC:VirtualMachine

    And the output of step 2 is the table / VC:VirtualMachine.

    I tried to change the input type for step 3 as table / VC:VirtualMachine.

    Whenever I got the error message:

    TypeError: Cannot find the cloneVM_Task function in the DynamicWrapper (Instance) subject: [VcVirtualMachine]-[class com.vmware.vmo.plugin.vi4.model.VimVirtualMachine] - VALUE: VirtualMachine, vm-907 > "LYNC01." (Name of the dynamic Script Module: cloneVM_1 #13)

    I don't want the workflow using the VC search plugin, but I need to set the input parameter.

    If someone has an idea.

    Thank you all.

    Keep the entry for step 3 as VcVirtualmachine (only one), but add an extra step:

    2.5: get the first (or last, should not question: I hope that you will find only one :-)) table.)

    You can do it in Javascript, using the method. pop() from an array.

    var sourceVM = foundVMs.pop () / / sourceVM is of type VcVirtualMachine, foundVMs table/VcVirtualMachine

    See you soon,.

    Joerg

  • How to change the angle of a gradient layer without changing anything else?

    How to change the angle of a gradient layer without changing anything else?

    When I try it myself my gradient everything turns black.

    To add to the above, you can just set the angle. If you want to use other existing parameters, you need to get from the layer. The code in this other thread shows a way to get them.

    But if you do not have the values for any other reason, you can get the handle to the layer, make a duplicate of it with all the settings and just crush those you want to change.

    It is a way to just change the angle while keeping the other existing settings.

    // helper function for working with descriptors
    function getProperty( psClass, psKey, index ){// integer:Class, integer:key
        var ref = new ActionReference();
        if( psKey != undefined ) ref.putProperty( charIDToTypeID( "Prpr" ), psKey );
        if(index != undefined ){
            ref.putIndex( psClass, index );
        }else{
            ref.putEnumerated( psClass , charIDToTypeID( "Ordn" ), charIDToTypeID( "Trgt" ) );
        }
        try{
            var desc = executeActionGet(ref);
        }catch(e){ return; }// return on error
        if(desc.count == 0) return;// return undefined if property doesn't exists
        var dataType = desc.getType(psKey);
        switch(dataType){// not all types supported - returns undefined if not supported
            case DescValueType.INTEGERTYPE:
                return desc.getInteger(psKey);
                break;
            case DescValueType.ALIASTYPE:
                return desc.getPath(psKey);
                break;
            case DescValueType.BOOLEANTYPE:
                return desc.getBoolean(psKey);
                break;
            case DescValueType.BOOLEANTYPE:
                return desc.getBoolean(psKey);
                break;
            case DescValueType.UNITDOUBLE:
                return desc.getUnitDoubleValue(psKey);
                break;
            case DescValueType.STRINGTYPE:
                return desc.getString(psKey);
                break;
            case  DescValueType.OBJECTTYPE:
                return desc.getObjectValue(psKey);
                break;
            case  DescValueType.LISTTYPE:
                return desc.getList(psKey);
                break;
            case  DescValueType.ENUMERATEDTYPE:
                return desc.getEnumerationValue(psKey);
                break;
        }
    };
    function duplicateDescriptor( descriptor ) {
        var newDescriptor = new ActionDescriptor;
        newDescriptor.fromStream( descriptor.toStream() );
        return newDescriptor;
    };
    function localizeDescriptor( desc ) {
        var stream, pointer, zStringLength, zstring, localized_string, newZStringLength, previousStream, followingStream, newDesc;
        stream = desc.toStream();
        while( true ) {
            pointer = stream.search(/TEXT....\x00\$\x00\$\x00\$/);
            if( pointer === -1 ) {
                break;
            }
            zStringLength = getLongFromStream( stream, pointer + 4 );
            zstring = readUnicode( stream.substr( pointer + 8, ( zStringLength - 1 ) * 2) );
            localized_string = ( localize( zstring ) ) + '\u0000';
            newZStringLength = localized_string.length;
            previousStream = stream.slice( 0, pointer);
            followingStream = stream.slice( pointer + 8 + zStringLength * 2);
            stream = previousStream.concat( 'TEXT', longToString( newZStringLength ), bytesToUnicode( localized_string ), followingStream );
        }
        newDesc = new ActionDescriptor();
        newDesc.fromStream( stream );
        return newDesc;
    };
    function getShortFromStream( stream, pointer ) {
        var hi, low;
        hi = stream.charCodeAt( pointer ) << 8 ;
        low = stream.charCodeAt( pointer + 1 );
        return hi + low;
     };
    function getLongFromStream( stream, pointer ) {
        var hi, low;
        hi = getShortFromStream( stream, pointer) << 16;
        low = getShortFromStream( stream, pointer + 2);
        return hi + low;
    };
    function readUnicode( unicode ) {
        var string = "";
        for( i = pointer = 0; pointer < unicode.length; i = pointer += 2) {
            string +=String.fromCharCode( getShortFromStream( unicode, pointer ) );
        }
        return string;
    };
    function longToString( longInteger ) {
        var string;
        string = String.fromCharCode( longInteger >>> 24 );
        string += String.fromCharCode( longInteger << 8 >>> 24 );
        string += String.fromCharCode( longInteger << 16 >>> 24 );
        string += String.fromCharCode( longInteger << 24 >>> 24 );
        return string;
    };
    function bytesToUnicode( bytes ) {
        var unicode = "", char_code, charIndex;
        for( charIndex  = 0; charIndex < bytes.length; charIndex ++ ) {
            char_code = bytes.charCodeAt( charIndex );
            unicode += String.fromCharCode(char_code >> 8 ) +  String.fromCharCode( char_code & 0xff );
        }
        return unicode;
    };
    
    function setGradientAdjustmentAngle( angle ) {
        var adjustmentDesc = getProperty( charIDToTypeID("Lyr "), charIDToTypeID( 'Adjs' ) ).getObjectValue(0);
        var newAdjustmentDesc = duplicateDescriptor( adjustmentDesc );
        newAdjustmentDesc.putUnitDouble( charIDToTypeID('Angl'), charIDToTypeID('#Ang'), angle );
    
        var desc = new ActionDescriptor();
            var ref = new ActionReference();
            ref.putEnumerated( stringIDToTypeID('contentLayer'), charIDToTypeID('Ordn'), charIDToTypeID('Trgt') );
        desc.putReference( charIDToTypeID('null'), ref );
        desc.putObject( charIDToTypeID('T   '), stringIDToTypeID('gradientLayer'), newAdjustmentDesc);
        executeAction( charIDToTypeID('setd'), desc, DialogModes.NO );
    };
    var newAngle = 45;
    setGradientAdjustmentAngle( newAngle );
    
  • Firefox freeze every time that tired to change the input language

    Hello. Whenever I tried to change the input language to enter in other languages Firefox freeze (program does not).

    Sometimes I type alt + shift or when I click on the language bar to select other languages.

    It also happens with several languages (I've tested, maybe all), and I have tried various software/entry mode, including default windows, all freeze. Reset Firefox under help does not work either.

    This problem occurs with Firefox and Chrome but not IE... Maybe not Firefox problem as this case w Chrome, but and ideas please? Thank you.

    J

    Edit:

    • Regedit could be changed, but do not hit internet setting.
    • I can enter foreign language as long as I set the default language and don't change another language in the language bar. Currently I use the foreign language as default capture software and switch to English of entry in this software.

    Have you attempted to assign a specific shortcut (for example, Shift + Ctrl + 1-9, 0) to select each language?

  • Portege S100: How to change the RAID in the BIOS

    Change the BIOS setting for Portege S100 of JBOD to RAID0, I hit space on Exectute creation and enter the key of type string in the manual, and press "enter".
    Settings and then return to existing arrangements and not the new RAID0 configuration setting that I selected.

    I stayed in this part of the day / night looking at different positions, but I don't see anything wrong with the data entered.

    This is the same as that recorded in this link: -.
    [How to change the RAID configuration | http://aps2.toshiba-tro.de/kb0/TSB6901K60006R01.htm]

    I'm now at the end of my home, I just wanted to install new HDD WD and new installation of XP Pro, is - it too much to ask?

    Maybe it s a silly question but; have you installed the second HDD to the Ultra Slim Bay?
    The RAID did feature is available when a second HDDD is installed in Ultra Slim Bay.

    If the second HDD was inserted and then change the RAID in the Windows operating system.
    There should be a Toshiba RAID Console.
    You can use this console to create or manage a RAID array.

    To start the utility, click Start, point to all programs, point to Toshiba, RIAD-tap and click RAID console.
    It of possible to change the RAID1 (mirroring) of a configuration non-RAID (default).

    But note; When RAID1 is set, you cannot change your settings unless you completely restore your preinstalled software.

  • How to change the scale of the Dáil by programming when its reaches the minimum or maximum

    How to change the scale range Max and min of the Dáil when her reached to max or min value. For example: my dail has a max and min scale ranging from 0-15 once my dail value reached 15 I change my max and min beach at 15-30 and 30-45 nationally and also vice versa if I reach 30 it should return to 15-30 instead of 30-45... Then I tried some methods but its not working so can someone please provide a solution.

    Thank you

    Thanks Sabri,

    Vi what you have done is really useful that I can be able to understand the concept of managing my needs. I will attach the vi for reference, as its similar to replace the function of x scroll bar in the chart based on the button. This vi is the version of LabVIEW 2015.

  • Change the input s-video tv to hdmi

    Anyone know if you can change the input s video cable tv to use the HDMI input to watch TV on the Touchsmart 600-1050? The s-video works fine, but I thought I read somewhere that you should be able to use the HDMI as input source. So how to change the tv tuner to use HDMI instead of the S video cable? Thank you.

    There is a toggle button on the back just above the HDMI port that allows to move forward and backward.

  • How to change the rendering used for video playback in Windows Media Center Version 6 engine

    I usually use other media players, but I would like to first of all using Windows Media Center. However for the moment video playback is not good because of the weird colors (everything is displayed in black and Red instead of normal colors). When you use other media players, I use the Haali rendering engine which gives good results for video playback.

    Can you tell me how to change the rendering used by Windows Media Center?

    Also, I noticed the same weird color effect in Windows Media Player 11.

    Hi Woobee,

    1. What is the brand and model of the computer?

    2. what graphics card use on the computer?

    If you are using an Nvidia graphics card on the computer, in the Nvidia Desktop Manager, you will find an option for saturation to ensure it is set to 100%.

    And if you are any other graphics card on the computer and search for a similar option for saturation.

    If the previous step fails in Windows media player, so be sure that the hue and Saturation are defined by default.

    1. click on the arrow on the tabplaying , point to enhancements, and then clickcolor picker.

    2. do one of the following:

    1. to return to the default color, click thereset link.

    Also, make sure that the video settings are set by default.

    1. start the playback of a file.

    2. click on the arrow on the tabplaying , point to improvements, and then clickvideo settings.

    3. click onreset.

    Check also in Windows Media Center if the

    1. on theStart screen, go to tasks, click settings, clickgeneral, then Visual and sound effects.

    2. undercolors ensure that Windows media center standard is enabled.

    Turn off Visual and sound effects in Windows Media Center

    http://Windows.Microsoft.com/en-us/Windows-Vista/turn-off-Visual-and-sound-effects-in-Windows-Media-Center

    I hope this helps!

    Halima S - Microsoft technical support.

    Visit ourMicrosoft answers feedback Forum and let us know what you think.

Maybe you are looking for

  • How can I disable everything I select is copied to the Clipboard?

    It's really annoying when I have something copied and before I could paste it where I want it I accidentally select a letter or something and than that's on clipboard without me selecting 'copy' == I don't know, but now it severely irritates me

  • DC7700: virus alert

    Hi whenever I connect to the net on my DC7700 I geta virus WARNING asking me to call a support number but ive done a virus scan and found nothing, any ideas would be great thank you

  • Satellite P300-1CN - error message when download of MSN messenger

    I recently updated my Satellite P300 - 1CN PSPCCE to Windows 7, after this everything seems to work ok but if I try to download msn messenger is comes up with an error saying the file may be corrupted hr: 0x8007000d. I am not the most technical of th

  • KB2533523 KB2539636, KB2468871, impossible to install error 643

    original title: security update problem, 09/08/11 These updates were offered with 10 others who had no problem with installation on the automatic update option: KB2539636, KB2468871, KB2533523.  Keep these 3 do not install without any explanation bet

  • webcamvs3000

    I downloaded the last Microsoft Update for this device, however I still get the message that LifEEnC2.exe has stopped working. "A problem caused blocking the program works correctly. Windows will close the program and notify you if a solution is avai