How can i put the values of the position of a pixel in an array ?
Hello. I wanted to know if someone can help me with my problem. In fact i have to make an image treatment. For this i put my immage in an array and i work in this array thanks to two For loops. I wanted to know which pixel is white and which one is grey so i made a software and this works very well but know i would like to put the value of X and Y of each white pixel. unfortunately i don t know how to use Labview very well. So i tought about a system based on a conditional loop who put the value of X and Y in two 1D arrays. But i am not able to achieve it. This is what i tried but i don t know how to achieve it. If you guy or girls have solutions to my problem or an other way to do it go on ^^.
Thanks every one.
Attachments:
Untitled.png 15 KB
I am sure you can adapt one of the two solutions shown here.
LabVIEW Champion . Do more with less code and in less time .
Similar Messages
-
How can I put a parenthesis around the number?
Hi expert people!!!
One question: How can I put a parenthesis around the number because I have this
write: /123 t_bsid-pago1, 141 t_bsid-pago2,
157 t_bsid-pago3, 175 t_bsid-pago4,
193 t_bsid-pago5.
and if I put the parenthesis hardcoded like this:
write: /123 '(', t_bsid-pago1,')'.
when the variable are printed the parenthesis is write very separated from the amount.
I know that maybe I can use the CONDENSE or CONCATENATE statement but for that I need to create a variable type N, or STRING and if I do that I don't know how can I put the decimals points back.
Thanks!!Hi Carlos,
Try this:
REPORT ZTESTRAJ.
data: v_val(10) type p decimals 2 value '123456.75',
v_text type string.
start-of-selection.
write:/ v_val.
v_text = v_val.
concatenate '(' v_text ')' into v_text.
condense v_text no-gaps.
write:/ v_text.
<b>Output:</b>
test program...
123,456.75
<b>(123456.75)</b>
Regards,
Raj
Message was edited by: Rajasekhar Dinavahi -
I have three different listings for Bob Seger on my iPod (Bob Seger, Bob Seger System and Bob Seger and The Silver Bullet Band) How can I put all 3 in the same artist folder without changing artist name?
Can you just create a new "Playlist", name it Bob Seger and drag what you want into the Playlist.
File/New Playlist -
How can i put my videos on the ipod classic
how can i put my videos on the ipod classic
See these 2 articles.
http://support.apple.com/kb/ht1333
http://support.apple.com/kb/HT2729
B-rock -
How can i add two values under the same property?
Hi all,
How can i add two values under the same property name in a
prop list? For example:
[question1: "item1","item2", question2: "item3","item4"]
To be more precise, i am creating a property list and I want
whenever a two values have the same property name to be added int
he list under the same property. For example:
gMyList.AddProp (#""&question&"" & x,
member("input").text)
question is a variable that is updated fromt he user's input.
Now, whenever somethign like this happens:
question = "question1"
member("input").text = "five"
question = "question1"
member("input").text = "six"
I want to output list to be:
[question1: "five","six"] and so on
Any ideas?Maybe you could make each property a list (so you have a
property list full
of lists), and add multiple values to the list held in a
particular
property?
Cheers
Richard Smith -
How can I pass a value to the command prompt?
I was wondering how can I pass a value to the command prompt with Windows and Linux? I'm more interested in Linux's system than Windows though. Is there a way to return info from the command prompt?
Here is a snippet from http://mindprod.com/jglossexec.html that explains how in detail.
Runtime.getRuntime().exec("myprog.exe") will spawn an external process that runs in parallel with the Java execution. In Windows 95/98/ME/NT/2000/XP, you must use an explicit *.exe or *.com extension on the parameter. It is also best to fully qualify those names so that the system executable search path is irrelevant, and so you don't pick up some stray program off the path with the same name.
To run a *.BAT, *.CMD, *.html *.BTM or URL you must invoke the command processor with these as a parameter. These extensions are not first class executables in Windows. They are input data for the command processor. You must also invoke the command processor when you want to use the < > | piping options, Here's how, presuming you are not interested in looking at the output:
Runtime.getRuntime( ).exec ("command.com /E:1900 /C MyBat.bat" );
Runtime.getRuntime( ).exec ("cmd.exe /E:1900 /C MyCmd.cmd" );
Runtime.getRuntime( ).exec ("C:\\4DOS601\\4DOS.COM /E:1900 /C MyBtm.btm" );
Runtime.getRuntime( ).exec ("D:\\4NT301\\4NT.EXE /E:1900 /C MyBtm.btm" );
There are also overloaded forms of exec(),
Runtime.getRuntime( ).exec ("command.com /E:1900 /C MyBat.bat", null);
Runtime.getRuntime( ).exec ("command.com /E:1900 /C MyBat.bat", null, "C:\\SomeDirectory");
The second argument can be a String [], and can be used to set environment variables. In the second case, "C:\\SomeDirectory" specifies a directory for the process to start in. If, for instance, your process saves files to disk, then this form allows you to specify which directory they will be saved in.
Windows and NT will let you feed a URL string to the command processor and it will find a browser, launch the browser, and render the page, e.g.
Runtime.getRuntime( ).exec ("command.com http://mindprod.com/projects.html" );
Another lower level approach that does not require extension associations to be quite as well set up is:
Runtime.getRuntime( ).exec ("rundll32 url.dll,FileProtocolHandler http://mindprod.com/projects.html" );
Note that a URL is not the same thing as a file name. You can point your browser at a local file with something like this: file://localhost/E:/mindprod/jgloss.html or file:///E|/mindprod/jgloss.html.
Composing just the right platform-specific command to launch browser and feed it a URL to display can be frustrating. You can use the BrowserLauncher package to do that for you.
Note that
rundll32.exe url.dll,FileProtocolHandler file:///E|/mindprod/jgloss.html
won't work on the command line because | is reserved as the piping operator, though it will work as an exec parameter passed directly to the rundll32.exe executable.
With explicit extensions and appropriately set up associations in Windows 95/98/ME/NT/2000/XP you can often bypass the command processor and invoke the file directly, even *.bat.
Similarly, for Unix/Linux you must spawn the program that can process the script, e.g. bash. However, you can run scripts directly with exec if you do two things:
Start the script with #!bash or whatever the interpreter's name is.
Mark the script file itself with the executable attribute.
Alternatively start the script interpreter, e.g.
Runtime.getRuntime( ).exec (new String[]{"/bin/sh", "-c", "echo $SHELL"}"; -
I moved folder Itunes folder to the desktop.if I open Itnues now, I cannot see my library.how can I put it back in the folder "music" in Finder?
done through Hard Disk at top right of the screen...itnues folder is there already because of my dragging into folder/music..but Itunes does not ope the whole library.
whn I opened it, itwas like it had never been on the mac and it downloaded my last purchasesdone with the iphone...now it only shows that one album purchase -
How can I put my bookmarks into the sequence I want, alphabetical or otherwise?
How can I put my bookmarks into the sequence I want, alphabetical or otherwise?
http://kb.mozillazine.org/Sorting_bookmarks_alphabetically <br />
http://kb.mozillazine.org/Sorting_and_rearranging_bookmarks_-_Firefox -
How can i dynamically assign values to the tld file
How can i dynamically assign values to the tld file
In the tld you write for the tag handler mention the following sub tags in the attribute
<attribute>
<name>xyz</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
import the packagejavax.servlet.jsp.tagext.DynammicAttributes;
add the method
public void setDynamicAttribute(String rui, String localname, Object value) throws JspException
<Your Required task>
Its better if you SimpleTagSupport class to be extended. -
I have an Iphone 4 where the imei number is erased, how can I put back on it the imei number
They would have to do more than that to remove or alter the IMEI, or, as brad805 already said, the logic board has been damaged. The person they got if from was probably trying to dump it.
-
How can I put something in for the last Wednesday of every month
How can I put something in for the last Wednesday of every month
I don't believe there is such a custom repeat option with the iPhone's Calendar app, but if you are syncing calendar events with a supported calendar app on your computer or syncing calendar events over the air with an email account that supports it with an option to create such a custom repeating event with the online calendar, set up the custom repeating event there.
-
Hi,
I'm using FM F4IF_INT_TABLE_VALUE_REQUEST to show a pop-up with my internal table values. The internal table has 3 fields, ATINN, ATZHL and a description field ATWTB. ATINN and ATZHL are needed to complete the unique table key, however this FM will only return the value of one field in any line I select.
How can I see all the values in the line I select in the return table?
My code is as follows:
DATA: tbl_cawnt LIKE cawnt OCCURS 0,
wa_cawnt LIKE cawnt,
BEGIN OF tbl_list OCCURS 0,
atinn LIKE cawnt-atinn,
atzhl LIKE cawnt-atzhl,
atwtb LIKE cawnt-atwtb,
END OF tbl_list,
wa_list LIKE tbl_list,
tbl_return LIKE ddshretval OCCURS 0,
wa_return LIKE ddshretval,
tbl_fields LIKE dfies OCCURS 0,
tbl_dynp LIKE dselc OCCURS 0.
REFRESH: tbl_list, tbl_cawnt.
SELECT atinn atzhl atwtb
FROM cawnt
INTO CORRESPONDING FIELDS OF TABLE tbl_cawnt
WHERE spras EQ sy-langu.
LOOP AT tbl_cawnt INTO wa_cawnt.
CLEAR wa_list.
MOVE: wa_cawnt-atwtb TO wa_list-atwtb,
wa_cawnt-atinn TO wa_list-atinn,
wa_cawnt-atzhl TO wa_list-atzhl.
APPEND wa_list TO tbl_list.
ENDLOOP.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'ATWTB'
dynpprog = sy-repid
dynpnr = sy-dynnr
value_org = 'S'
TABLES
value_tab = tbl_list
return_tab = tbl_return
EXCEPTIONS
parameter_error = 1
no_values_found = 2
OTHERS = 3.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
Thanks!Hi,
Use the structure DYNPFLD_MAPPING
With this internal table you can easily define that you want to return
other columns of the hit list in addition to field RETFIELD to the
screen.
In this IT you can MAP the screen fields to the serch help screen fields this has three fields
FLDNAME this is the field anme from the search help
FLDINH This has to be blank which would be field with the field value that you want to map
DYFLDNAME THis is the screen field name.
So here you can get the values for the other fields that you want which are on the search help just populate the name of the fields in FLDNAME.
Regards,
Himanshu -
How can I put different clips in the "DropZone"
Hey,
Just wondering how can I put different scenes in dropzones of a customized template in Idvd....
I imported my film from IMOVIE its' not saved as a movie format such as .mov or .avi it's saved as a project file... so I dont know how I would be able to do have different scenes in different drop zones.. I can only import the whole thing in a dropzone...
Cuz on customized template there is like 3 dropzones is there a way i can delete the other 2?
Please help me out,
JOey DeeHello Joey,
the dropzone is actually not meant to contain your main movie. If you want to import your iMovie project by drag'n drop, drop it just above the bottom of the preview window. Alternatively choose File > Import > Video from the menu and select your iMovie project.
If you have 3 dropzones, you should create 3 short (30-45 sec) movies and/or slideshows to place in the dropzones.
Have a look at this little tutorial:
http://www.kenstone.net/fcphomepage/idvd_5stone.html
hope this helps
mish -
How can I get null values for the later weeks
Hi All,
When I execute this code I get the records till current week.
How can I display the output so that I get null values for the later weeks. (with the help of v_numOfWeeks variable in the code)
Thanks,
Vikram
DECLARE
v_query VARCHAR2(4000);
TYPE ref_cursor IS REF CURSOR;
v_refcur ref_cursor;
v_sum NUMBER;
v_id NUMBER;
v_name VARCHAR2(1000);
v_weeknum NUMBER;
v_pernum NUMBER;
v_numOfWeeks NUMBER := 5;
BEGIN
v_query := ' SELECT SUM(product_bkg), postn_id, postn_tbl.postn_name, b.week_num, b.period_num
FROM ops_cv_extract b, (SELECT row_id, desc_text postn_name
FROM s_postn) postn_tbl
WHERE lvl_6_id = 5767
AND fiscal_year = 2008
AND b.week_num < 4
AND b.period_num = 3
AND b.postn_id = TO_NUMBER(postn_tbl.row_id)
GROUP BY postn_id, postn_tbl.postn_name, b.week_num, b.period_num
ORDER BY postn_tbl.postn_name, b.week_num';
OPEN v_refcur FOR v_query;
LOOP
FETCH v_refcur INTO v_sum, v_id, v_name, v_weeknum, v_pernum;
EXIT WHEN v_refcur%notfound;
dbms_output.put_line('P'|| v_pernum||'W'|| v_weeknum||' '||v_name||' '||v_sum);
END LOOP;
END;
This is the output when I execute this code.
P3W1 COMM CNTRL ISAM 213 26961.61
P3W2 COMM CNTRL ISAM 213 12870.4
P3W3 COMM CNTRL ISAM 213 245.88
P3W1 COMM CNTRL ISAM 273 72831.2
P3W2 COMM CNTRL ISAM 273 8739.38
P3W3 COMM CNTRL ISAM 273 3764.92
P3W1 COMM CNTRL TAM 213 49844
P3W2 COMM CNTRL TAM 213 20515.17
P3W3 COMM CNTRL TAM 213 16167.46
P3W2 COMM CNTRL TAM 216 12561.4
P3W3 COMM CNTRL TAM 216 2027.1
P3W1 COMM CNTRL TAM 273 -3336.71
P3W2 COMM CNTRL TAM 273 -1376.68
P3W3 COMM CNTRL TAM 273 19707.42
P3W1 Damon Walters -609.07
P3W2 Damon Walters 30030.24
P3W3 Damon Walters 37475.1
This is the output I'd like to get
P3W1 COMM CNTRL ISAM 213 26961.61
P3W2 COMM CNTRL ISAM 213 12870.4
P3W3 COMM CNTRL ISAM 213 245.88
P3W4 COMM CNTRL ISAM 213
P3W5 COMM CNTRL ISAM 213
P3W1 COMM CNTRL ISAM 273 72831.2
P3W2 COMM CNTRL ISAM 273 8739.38
P3W3 COMM CNTRL ISAM 273 3764.92
P3W4 COMM CNTRL ISAM 273
P3W5 COMM CNTRL ISAM 273
P3W1 COMM CNTRL TAM 213 49844
P3W2 COMM CNTRL TAM 213 20515.17
P3W3 COMM CNTRL TAM 213 16167.46
P3W4 COMM CNTRL TAM 213
P3W5 COMM CNTRL TAM 213
P3W1 COMM CNTRL TAM 273 -3336.71
P3W2 COMM CNTRL TAM 273 -1376.68
P3W3 COMM CNTRL TAM 273 19707.42
P3W4 COMM CNTRL TAM 273
P3W5 COMM CNTRL TAM 273
P3W1 Damon Walters -609.07
P3W2 Damon Walters 30030.24
P3W3 Damon Walters 37475.1
P3W4 Damon Walters
P3W5 Damon Walters Edited by: polasa on Oct 28, 2008 6:42 PMSure, in a Single SQL ->
satyaki>
satyaki>select * from v$version;
BANNER
Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Prod
PL/SQL Release 10.2.0.3.0 - Production
CORE 10.2.0.3.0 Production
TNS for 32-bit Windows: Version 10.2.0.3.0 - Production
NLSRTL Version 10.2.0.3.0 - Production
Elapsed: 00:00:00.01
satyaki>
satyaki>
satyaki>-- Start Of Test Data --
satyaki>with week_tab
2 as
3 (
4 select 1 period_num, 1 week_num, 10 bkg1 from dual
5 union all
6 select 1, 2, 40 from dual
7 union all
8 select 1, 3, 30 from dual
9 union all
10 select 1, 2, 20 from dual
11 union all
12 select 1, 1, 10 from dual
13 union all
14 select 1, 1, 20 from dual
15 union all
16 select 1, 3, 10 from dual
17 union all
18 select 2, 1, 15 from dual
19 union all
20 select 2, 2, 20 from dual
21 union all
22 select 2, 3, 10 from dual
23 union all
24 select 2, 1, 15 from dual
25 union all
26 select 2, 2, 30 from dual
27 union all
28 select 2, 3, 20 from dual
29 )
30 -- End Of Test Data --
31 select period_num,
32 week_num,
33 (
34 select sum(week_tab.bkg1)
35 from week_tab
36 where period_num = m.period_num
37 and week_num = m.week_num
38 group by week_num, period_num
39 ) sum_bkg1
40 from (
41 select dum.week_num,
42 wk.period_num
43 from (
44 select 1 week_num from dual
45 union all
46 select 2 from dual
47 union all
48 select 3 from dual
49 union all
50 select 4 from dual
51 union all
52 select 5 from dual
53 ) dum ,
54 (
55 select distinct period_num
56 from week_tab
57 ) wk
58 ) m;
PERIOD_NUM WEEK_NUM SUM_BKG1
1 1 40
1 2 60
1 3 40
1 4
1 5
2 1 30
2 2 50
2 3 30
2 4
2 5
10 rows selected.
Elapsed: 00:00:00.48
satyaki>Regards.
Satyaki De. -
How can I put a Logo in the Browser-Register?
Hey guys, does anybody knows, how I can put a Logo in the Browser Register? For example, watch this picture below; I want a Logo like the Facebook Logo, but I don't know how I can make this. The blue mark is my Website.
Is this possible with Adobe Muse?
Thank you.Hope this helps
David -
How can I put a div at the TOP of the page with a background color? No white space
I am attempting to put an orange bar at the very top of a page and one that also stretches across the entire width of the page, no matter the page size.
With the code below the orange bar appears but there is white space between the top of the browser and the orange bar.
<div style="background-color:#f79321;height:30;width:auto;"> <p> </p></div>
How can I get rid of this white space? I tried setting margin and padding to 0px but that did not work.I'm still getting the spacing:
<html>
<head>
<style>
body
margin: 0;
padding: 0;
font-family: Georgia, serif;
text-align: left;
font-size: 16px;
line-height: 1.2;
word-wrap: break-word;
text-rendering: optimizeLegibility;/* kerning, pri*/
h2
font-family:Arial, sans- serif;
font-size: 28px;
color: #fb8700;
h2 a
font-family: "bebas-neue",sans-serif;
font-size: 40px;
h2 a:visited
color:#fbb100;/* visited - orange*/
text-decoration:none;
h2 a:active
color:#fbb100;/* selected- orange*/
text-decoration:none;
h2 a:hover
color:#c9c9c9;/* mouseover- light grey*/
text-decoration:none;
h4
font-family: "bebas-neue",sans-serif;
font-size: 50px;
color: #fbb100;
#page-wrap
width: 960px;
margin: 0 auto;
p.topFormat
font-family: Georgia, serif;
font-size:16px;
text-align:center;
p.footerFormat
font-family: Georgia, serif;
font-size:16px;
text-align:left;
line-height: 150%;
a:link {color:#fbb100;text-decoration:none;} /* unvisited - orange*/
a:visited {color:#fbb100;text-decoration:none;} /* visited - orange*/
a:active {color:#fbb100;text-decoration:none;} /* selected - orange*/
a:hover {color:#636363;} /* mouse over - grey*/
</style>
<script type="text/javascript" src="//use.typekit.net/ppq8ria.js"></script>
<script type="text/javascript">try{Typekit.load();}catch(e){}</script>
</head>
<body>
<div style="background-color: #f79321; height: 31px; width: auto;">
<p> </p>
</div>
<div>
Maybe you are looking for
-
SQL Report return No Data Found
I have a page with a SQL Report that runs a very complex query. If the returns are that nothing is found, I want to run some JavaScript. How can I determine the count of the result set or the capture the exception? Or is there another way without rer
-
Sharing an external HD on a Powermac Network
Hi ! I'm working in a graphic & motion design agency in Paris, and we would like to share on our network an external hard drive containing our picture, sound and video libraries, so that anyone can access it. Can anyone help us do that ? Do we need i
-
I cannot scrub an AVI file made in another adobe program.
When trying to play/scrub the video of a 1.3 gb AVI( made in flash professional) Premiere CS6 can load only a few frames and then the preview window freezes. During this time my CPU usage hovers at 6-10% and memory usage is 1.5-2.5 GB out of 8. I hav
-
NI 488.2 Install in Ubuntu 13.04
Are there any plans on supporting Debian based installations? I want to use Ubuntu and Raspberrypi for my instrument control and automation.
-
Does anyone know if there is a way to set minimum order amounts on parts in netpoint? I have a customer who wants to put some restrictions on some of the parts. I know I can customize to do this but are there any out of the box functions for this?