The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
 All Forums
 Origin Forum for Programming
 Forum for Origin C
 Image import to matrix

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
bnahir Posted - 03/07/2008 : 11:27:17 AM
Origin Version (Select Help-->About Origin): 8 SR1
Operating System: Windows XP

Is it possible to import a .tif image directly to an internal matrix (i.e. without invoking labtalk)?

Also, I've been trying to use ImportFile but keep getting the following error:
Linking...
X:\Software\OriginC\Tools\On-line\Origin 8\BN_linescan.c(44) :Error, Function ImportFile@IAAAAAAADDAAAAAABCAAAAAADAAAAAAABCAAAAAADAAAAAAAIAAAAAAA was called, but its body could not be located during linking.
Linking Failed!

As far as I can tell, the error is essentially saying the header file but not the c file has been found. I tried including FileImport.c in the System directory of the workspace but to no avail.
Here is the code I've used to generate this error. All the function calls are to built in OriginC functions:

void lsdata(){
string strFile, strLSDfile;
string strFilter="X:\Software\OriginC\Import Filters\PVLSD.oif";

strFile=GetOpenBox("*.lsd");
if(strFile.IsEmpty()){
out_str("Please select a file.");
return;
}
string strLabel=GetFileName(strFile);

WorksheetPage wpg;
wpg.Create("Origin.otp");
Worksheet wks;
wks=wpg.Layers(0);

int iRet=ImportFile(wpg, strFilter, strFile);
}

Thanks,
Ben

Edited by - bnahir on 03/07/2008 2:01:48 PM
1   L A T E S T    R E P L I E S    (Newest First)
Echo_Chu Posted - 03/08/2008 : 05:25:01 AM
Hi, Ben,

It is because FileImport.c, where ImportFile() located is not compiled. Could you also add FileImport.c to your workspace, in addition your c file

Echo
OriginLab Corp

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000