Table 2D with the ones and zeros

Hello

I want to use a MATLAB code in Labview, but without the help of MATLAB.

The code is the following:

Mask = ones (size (cc));
Mask (1:sze, = 0;)
Mask(:,1:Sze) = 0;
Mask (end - sze, + 1:end, = 0;)
Mask(:,end-Sze+1:end) = 0;

It must be a picture 2D with joints and boarders with zeros. The width of the boarders are sze and the 2D array has size of cc.

I can create a matrix of zeros, but that's all.

Someone at - it an idea how to carry it out without assistance for loops?

Thank you...

gruenschnabel wrote:

It must be a picture 2D with joints and boarders with zeros. The width of the boarders are sze and the 2D array has size of cc.

I can create a matrix of zeros, but that's all.

Here's what I'd do:

(Attached is a version of LabVIEW 8.2 of the code)

gruenschnabel wrote:

Someone at - it an idea how to carry it out without assistance for loops?

What is the problem with loops? Why this arbitrary restriction?

(Unless you're on FPGA, things need to loop almost anything, even it is hidden inside functions).

(See also this discussion)

Tags: NI Software

Similar Questions

  • Through the sum of the values in all of the array of Boolean one and zeros

    Hello.

    I have an array of Boolean which I have converted one and zeros. I just want to the sum of all the elements in this table (in other words, giving the number of 1 in the table). I used the feature to add items, but I get a negative value. I checked there were not all values except one and zero (I know it shouldn't be) using max and min. I don't know how a negative value has been calculated - any ideas.

    Thanks in advance

    Before adding elements, convert the table I32 or I64. The output of the primitive add-on is of the same type that the entry and if the entry is an I16, then you cannot have a value greater than 32,767 or value will wrap around (what happened in your case.

  • How to create the table with the rows and columns using the layout?

    One of my friends advised me to put my site on the mode of provision as it is better than the standard as he said
    but I couldnot make an ordinary table with the rows and columns in mode available th
    y at - there someone who can tell me how to?
    Thank you very much

    Wednesday, April 18, 2007 21:01:38 + 0000 (UTC), "Mr.Ghost".
    wrote:

    > A friend of mine advised me to put my whole site on the mode of disposal as its
    > better than standard, as he says

    Your friend won't. Don't listen to him any more. Mode of disposal creates
    very fragile and rigid code pauses at the first opportunity.

    Gary

  • Start an adjustment with the whites and blacks?

    Martin Evening in CS6 for photographers recommend to adjust an image with exposure, contrast, and then fine tune with the shadows and highlights. Explains the use of whites and blacks only if necessary. Julieanne Kost has a pithy video on cab in which she begins by setting the white and black (which dates back to the advice of Bruce Fraser / Real World Photoshop using levels in Photoshop). http://TV.Adobe.com/watch/Photoshop-CS6-featuretour/Adobe-camera-raw-70-in-Photoshop-CS6/

    I know that I can see what works best for an image, etc.. Ask yourself what is the recommended procedure.

    I could write reams about it. Have already done.

    I will however keep this short (for me) and let someone else take a better stab.

    It is wrong to think of controls PV2012 as being something like those of other publishers.

    The bottom line: give the picture adaptations she needs, whatever you start with.

    So perhaps a better question is: How do we know what adjustments needs a photo in PV2012?

    (I warned people against trying to arrive at a single procedure that will work for all photos)

    That's all for now.

    OK, maybe a quicky:

    No matter what start you with, try to keep clear 0 or negative, shadows 0 or positive and shadows value exactly equal to the value of highlights. Once you have the photo in the ballpark in this way, no matter how you juggled exhibition & white..., then and only then, consider asymmetric values of lights and shadows.

    WARNING: this "formula" works on 90% of the photos, not 100 percent. Or it could be 0% (or 100%) depending on what you're shooting...

    Okay, I can't resist:

    Most of the pictures can be edited in this way:

    * Most critical exposure setting

    * Use - highlights for container of the upper extremity

    * Use + shadows to normalize the lower end

    * The difference in taste.

    * - black & + white to make full use of the available tonal range.

    But at the other extreme, there are these:

    * Exhibition but still critical,

    * puts in light and shadows of the sliders do not hit the sweet spots: leave at zero.

    * Use - white & + blacks for recovery & fill, respectively.

    * You may very well push contrast, although it is an image too contrasted initially. Or not...

    And then there's a whole series of photos which sit somewhere between the two...

    Confusing? Yes. PV2012 is great, but delicate and requires a completely different way of thinking and a flexible 'procedure'...

    Note: Highlights slider going positive, and cursor shadows going negative also, independently of the highlights slider for a reason. But their use in this way should be reserved for unusual cases of raw or refine already cooked jpegs, or you really know what you are doing and why you...

    One last point is critical: exhibition in PV2012 sets mainly mid-level tones, that is why it is the most critical: highlights, contrast, shadows, all hinges on a suitable exposure setting.

    Black & White adjustment are probably the biggest keys for optimal fit in PV2012, but they are more difficult to nail down, because their adaptation depends strongly on the photo, but maybe a golden rule to be broken:

    * - black & white if possible, for punchy complete histogram photos +...

    * + Black & - White tones tend to gang to the extreme endpoints of the gases, such as highlights & shadows adjustment do not understand... (or you prefer the softer look that can come, or else...).

    WARNING: This is a personal thing, and probably different people different things that work best for them...

    PS - Don't forget the curve of tone & inhabitants after basic setting (can be done over too, but it is not recommended until you have acquired sufficient experience).

    Lr4/PV2012,

    Rob

  • I do not want to promote the material for your business but I don't know how to do this. Could I be put in contact with the one dealing with promotion of contact microsoft or microsoft studios.

    Dear, that which which may concern,.

    I do not want to promote the material for your business but I don't know how to do this. Could I be put in contact with the one dealing with promotion of contact from microsoft, or microsoft studios, anyone who takes care of the halo franchise.

    Hello

    Microsoft - unsolicited ideas
    http://www.Microsoft.com/en-us/legal/intellectualproperty/copyright/default.aspx#O14

    343 industries manage Halo - check community and forums
    https://www.halowaypoint.com/en-us

    I hope this helps.
    --------------------------------------------------------------------------------------------
    Rob Brown - Microsoft MVP<- profile="" -="" windows="" experience :="" bicycle="" -="" mark="" twain="" said="" it="">

  • Can I replace a no backlit keyboard on a HP Envy dv7-7250us with the one that is backlit?

    Can I replace a no backlit keyboard on a HP Envy dv7-7250us with the one that is backlit? The dv7 offered both ways. any help is appreciated.

    Hello

    I see that you have a question on your laptop keyboard. Yes, you can replace the keyboard with a keyboard backlight depending on where you come from.

    Here are taken keyboards supported for your laptop in selected areas.

    Also, here is the Service and Maintenance Guide and go to page 59 for keyboard selection.

    If you have any other questions let me know.

    THX

  • I want to divide the partion primary/basic C in 2 small, a C (primary with the OS) and G (extended-for everything else).

    Hi all.

    I just installed windows XP Pro on one of my computers. Now when installing, it showed me the main partition C and another extended partition (which was very small). Now windows gave me the option to install Windows on the C partition and it me has failed to use the extended partition, he said is reserved for windows. Now my problem is that it does give me an option to create a new partition (except on the extended unallowed was D). I want to divide the partion primary/basic C in 2 small, a C (primary with the OS) and G (extended-for everything else). I want only the OS on C. How do I do that? The PC has a single 79GB hard drive

    Hi DextrousDave,

    Refer to the article below to learn more about partitioning during the installation of Windows XP.

    How to partition and format a drive hard using the Windows XP Setup program

    http://support.Microsoft.com/kb/313348

  • I've had dramas with my photos because I got my new iphone 4s in saying that there is a problem with the properties and I can't change the format of images

    Hello

    I've had dramas with my photos because I got my new iphone 4s in saying that there is a problem with the properties and I can't change the format of images (ie the rotating EGTC)

    Now, I see the image preview and it disappears to the flower, so I did not see one of my photos

    Some would like TO help on this im so not good with this kind of thing.

    Appreciate it in advance

    Let

    Hello

    • When you change the format of images of?
    • What is Windows Explorer or Itunes?

    Try the TV activation

    Enabled and disable the Option 'show window previews (thumbnails) '.

    a. right click on the taskbar.

    b. Select Properties.

    c. check show window previews (thumbnails) "Option. .

  • Problem with the H and V fieldmanager: S

    Hi to everyone! D

    IM new in this forum and I would like to ask one thing.

    I want to insert 3 BitmapFields on the screen, but with a particular organization, they must be placed as follows.

    I know I have to do it with the horizontal and vertical field Manager, but I don't know how > _

    If anyone can help me I will always be grateful with him

    http://www.freeimagehosting.NET/uploads/ae64a41495.jpg

    PD: below each image must be an aaaaaand RichtextField version are blackberry 8120 4.5.0 > _

    rboatright pretty well summed up my thoughts, but I would like to add:

    -Don't think you need the external V0

    -Center Images

    -layout on all labels (what I'd do RichTextField unfocusable), replace the value of width the width of the images

    -Center of all labels

    -Limit the width of V2 and V3 to Display.getWidth () / 2

    job done...

  • The sign @ arrives with the ' button and the "comes up with the 2 - How can I fix?"

    The @ sign with the ' key and the 'types of sign with button 2.  How can I fix?

    It looks like your dad keybaord was put at the disposal of the UK.  This can happen if you accidnetally you press a special combination keys that been implemented as the means of getting that deliberately.  Here's what to do: -.

    1 go to Control Panel, region & language, keyboards & languages, Change keyboards, general tab, select the correct keyboard in your area * if isn't one already shown [click on Properties... to see a preview of the keyboard layout] or click Add... & Select a new keyboard from the list [while you are in the list, click on the Preview button to see a preview]. When you have finished adding a new keyboard, move it to the top of the list using the buttons on the dialog box.

    [* The region for which the keyboard was made and for which its route has been set.  [I understand that there is a "US International keyboard" who suffers from this confusion between change quite easily, unless you have a need for special versatility, choose a keyboard layout United States specific instead if you find that this is what has been implemented on your system]

    2 then go into Control Panel, region & language, keyboards & languages, Change keyboards, tab bar of language and, if you regularly change the language settings, make the hidden language bar.

    3 then go to Control Panel, region & language, keyboards & languages, change keyboard, tab Advanced key settings where you can see the shortcut key sequence that could you have this problem by chance. You will also see the change key sequence that you may want to change by clicking on the button change the key sequence and affecting the switch input language & keyboard Switch not [when I changed them, I had to set not to switch input language and accept the change, then return to the dialog box set not to switch keyboard configuration].

  • Hello good I would like to cancel the annual plan of adobe audition, because I had problems with the software and the Bank, if I can help with this please.

    Hello good I would like to cancel the annual plan of adobe audition,

    As I have had problems with the software and the Bank, if I can help with that please.

    Please contact customer support for cancellation & refund of the next purchase. Contact the customer service

    Creative single-app cloud membership for Adobe Audition (one year) Subscription Office March 11, 2015

    In the case of any questions, please let us know, I can certainly go for you.

    Concerning

    Baudier

  • I have copy of old tbird and seamonkey e-mail files with the files and emails for each. I need to add to new tbird install. can not find a way to do it. Help

    I have copy of old tbird and seamonkey e-mail files with the files and emails for each. I need to add to new tbird install. can not find a way to do it. HELP PLEASE. previous e-mail files are under mail then mail.earthlink* .net and each of the five mail .net is an email address I have. I can't find a way to identify each file by email to the specific email address (IE mail.my E-mail name.net) so I can copy the files and emails from the past to the email addresses now under tbird. previous installed e-mail identities may not be the current configuration of e-mail files in tbird. I think that I must be sure that mail.name.net matches the previous mail.name.net to be able to copy and paste the old to the new. is there a way to find the file name correct the old email and correspond to the new? all my emails very important information are mostly in the old mail electronic id and must be available in the identification of email again (but same) how can I do this?

    http://KB.mozillazine.org/Importing_folders

    Use this module.

    https://addons.Mozilla.org/en-us/Thunderbird/addon/ImportExportTools/

  • The computer crashes: something to do with the minidump and sysdata.xml?

    My computer broke down twice now and restart an error message pops up saying "your computer has recovered from a serious error". It is said that two files in the error report will be sent to microsoft. the first complete mini103106 - 01.dmp and the second sysdata.xml

    I could find these files and delete them but have no idea if this would solve the problem and do not want to do the wrong thing...

    Hello

    Not easy to say why this is happening, but for me it s definitely something wrong with the software.
    Well, in this case we can only speculate. You know, it s Microsoft Windows and sometimes things happens without any reason :(

    I have heard from probably the system restore function could be corrupted and no have deleted the folder with the minidump and disabled the system restore feature in the control panel-> system.

    But in my opinion, the system restore function is important and necessary if you want to restore the operating system to the beginning.
    That's why I put t recommend disabling this feature.

  • I've updated for picture with the captain and when I plug in my iPhone it loads the same pictures twice each time how it stop loading the same things every day?

    I've updated for picture with the captain and when I plug in my iPhone it loads the same pictures twice each time how it stop loading the same things every day?  I tried to make the old default iphoto but picture still open when I plug in my iPhone?

    I tried to make the old default iphoto but picture still open when I plug in my iPhone?

    When the iPhone is connected and Photos opens, select iPhone in sideba of the windowr of Photos. Then, uncheck the option 'Open for this iPhone Photos' below the toolbar.  Do this for all your iPhones. The hook should be unmarked for each device individually.

  • My new Apple TV v4 does not smoothly on Airplay with my MacbookPro and Air laptops but with the iPhone and iPad Airlay gets so juddery and then goes off - laptop computer WiFi connections all that happens on clues?

    Devastated to find that the new AppleTV works great on Airplay / mirroring with the iPhone and iPad devices but completely useless on the NEW laptops.

    Trying to show any video for example utube creates immediately hop on the TV screen when you use the Macbook and in no time the WiFi connection is stunned.

    What is going on?

    I use ElCapitan, and the last 15 "16GB i7 Macbook MacbookPro and not expect a problem with streaming media.

    Absolutely well on Airplay with bith an iPhone 6 Plus and also an Air iPad

    This will be due to a network problem. There is a difference between mirroring of a phone/Tablet and grow to a full desktop in real-time

    Mmake that there is no other activity (other streaming, web browsing, backup network etc.)

    Try to connect the Apple TV via ethernet

    To see a current state of the network to obtain a report of istumbler or similar. Look for the strength of the signal, noise, networks nearby

    Test on another network

Maybe you are looking for