-
April 6th, 2013, 01:15 PM
#1
Some suggestion about .1file type, .2 file type etc
Hello I have attached a picture to clarify my problem. In a folder named headsq, a number of files with same name has been saved. I think these are some raw images. Type of file has been written as "1 File (.1)", "2 File(.2)" etc when clicked for the properties. Now I have a number of files. How can I save them with same just shown in picture i.e. as " 1 File(.1)", "2 File (.2)" etc.
Thanks in advance.
-
April 6th, 2013, 01:37 PM
#2
Re: Some suggestion about .1file type, .2 file type etc
You may want to first enable to show file extensions in Windows explorer!
Victor Nijegorodov
-
April 6th, 2013, 07:35 PM
#3
Re: Some suggestion about .1file type, .2 file type etc
Here I have attached the properties of the file. I know these are raw image files, but what 1 File, 2 File etc means. Please help me clarify this.
-
April 6th, 2013, 07:54 PM
#4
Re: Some suggestion about .1file type, .2 file type etc
That's just the extension, like a somefile.doc is a .doc file. Since there's no application associate with .1, Explorer doesn't know what else to call it.
What's your Visual C++ question?
-
April 6th, 2013, 09:46 PM
#5
Re: Some suggestion about .1file type, .2 file type etc
I have a series of raw image files. I would like to put all of them in a folder and use that kind of extension as 1 File (.1) for those images. How can that be done?
-
April 7th, 2013, 01:04 AM
#6
Re: Some suggestion about .1file type, .2 file type etc
Originally Posted by jenny_wui
I have a series of raw image files. I would like to put all of them in a folder and use that kind of extension as 1 File (.1) for those images. How can that be done?
I don't know what kind of answer you're expecting except to use the various file I/O functions, FindFirstFile, FindNextFile, etc.
Regards,
Paul McKenzie
-
April 7th, 2013, 06:23 AM
#7
Re: Some suggestion about .1file type, .2 file type etc
Originally Posted by jenny_wui
I have a series of raw image files. I would like to put all of them in a folder and use that kind of extension as 1 File (.1) for those images. How can that be done?
Again, what's your Visual C++ question? Where are you stuck?
-
April 7th, 2013, 11:29 AM
#8
Re: Some suggestion about .1file type, .2 file type etc
If the only thing you need is to rename your files then as Paul already suggested use FindFirstFile, FindNextFile API (or CFileFind FMC class) to search for (enumerate) all files you need to rename and use MoveFile API to rename (change the extension) the files.
Or just rename them in Windows Explorer!
Victor Nijegorodov
-
April 7th, 2013, 03:23 PM
#9
Re: Some suggestion about .1file type, .2 file type etc
Just renaming the files does not work,
-
April 7th, 2013, 03:42 PM
#10
Re: Some suggestion about .1file type, .2 file type etc
Originally Posted by jenny_wui
Just renaming the files does not work,
Why?
Victor Nijegorodov
-
April 7th, 2013, 05:30 PM
#11
Re: Some suggestion about .1file type, .2 file type etc
Originally Posted by jenny_wui
Just renaming the files does not work,
You've yet to ask a meaningful question. You said, "Before I was trying used some code written in VTK, but it requires images files to be of the form 1 File(.1), 2 File (.2) etc. That's why I was asking whether it is possible to convert my file type (.IMG) to that.", and that really doesn't tell us anything. You need to be more specific about the current format and the format you need. All you've done so far is talk about extensions.
-
April 7th, 2013, 07:28 PM
#12
Re: Some suggestion about .1file type, .2 file type etc
Originally Posted by jenny_wui
Just renaming the files does not work,
What do you mean by "does not work"?
I can take any file that I have access to and change the extension to anything I want. That "works" perfectly for me, whether I'm in Explorer, or with a program using rename() or other I/O function.
So if that is not what you mean by "does not work", then you need to explain what you mean by "does not work".
It would also help if you answered my previous question: What do you mean by "convert"?
Do you mean
1) Open the file and read its contents.
2) Take those contents, apply some transformation to those contents, creating a different set of contents.
3) Save those new contents to another file.
Regards,
Paul McKenzie
-
April 8th, 2013, 09:51 AM
#13
Re: Some suggestion about .1file type, .2 file type etc
Thanks for the suggestion. It would have been good if I could attach the file, but unfortunately I can't, the system does not allow. Now I would like to do what Paul suggested, reading the binary file, read the contents and diplaying the point clouds Later I would like to generate different iso-surface for different pixel values of the point clouds. That's the goal. Upto displaying of the point cloud, i am ok. But I need some help about generating iso-surface i.e. polyginizing for the model for different iel values. Thanks.
-
April 8th, 2013, 10:01 AM
#14
Re: Some suggestion about .1file type, .2 file type etc
Originally Posted by jenny_wui
Thanks for the suggestion. It would have been good if I could attach the file, but unfortunately I can't, the system does not allow.
Which "system" does not allow you to attach a file?
Did you read Announcements, section Attachments?
Attachments
Most of the forums will allow you to add an attachment. Just because you can, doesn't mean you should. If you are going to include an attachment to your post consider the following:
- Do you really need an attachement? If providing the attachment doesn't add to your question, then don't include it. Most people won't look at an attchment. If your attachment is a short code listing, then you are better to include the code (or a snippet of your code) in your message rather than as an attached file.
- What files do you really need to attach? Granted, it is a zip file that you will most likely attach; however, what files do you really need to include? In most cases, you will only need the .h and .cpp files for C++ and VC++ files. In VB you will only need the forms and coding files. If there are files that are not needed, then don't include them.
- Many people use dial-up. Larger attachements will be avoided because they take too long to download. In general, you should try to keep your attachments under 100k.
Victor Nijegorodov
-
April 8th, 2013, 02:26 PM
#15
Re: Some suggestion about .1file type, .2 file type etc
I could not attach my files as it the system does not allow this. I have uploaded two files Iin a zipped folder named images) to the following link (one my .img file and another 1 File type) so that you can take a look. Both contains image data.:
http://www.filedropper.com/images_1
Now can the .img file be converted to 1 File type.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|