-
1 Attachment(s)
Some suggestion about .1file type, .2 file type etc
Attachment 31257
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.
-
Re: Some suggestion about .1file type, .2 file type etc
You may want to first enable to show file extensions in Windows explorer!
-
1 Attachment(s)
Re: Some suggestion about .1file type, .2 file type etc
Attachment 31259
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.
-
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?
-
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?
-
Re: Some suggestion about .1file type, .2 file type etc
Quote:
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
-
Re: Some suggestion about .1file type, .2 file type etc
Quote:
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?
-
Re: Some suggestion about .1file type, .2 file type etc
Thank you all for taking time to answer. I think I made every body a bit confused. As I mentioned that I have a set of raw images. What I would like to do is as follows:
make a 3D meshed model out of the images.
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.
Any way, I would like do it myself. I would be happy if anybody provide me some suggestions about its implementation.
Thanks.
-
Re: Some suggestion about .1file type, .2 file type etc
Quote:
Originally Posted by
jenny_wui
Before I was trying used some code written in VTK,
What is "VTK"?
Quote:
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.
What do you mean by "convert"? Just change the extension? Take the file and manipulate it in some way to be in a different format?
The reason why there is confusion is that there is no specific Visual C++ question being asked.
Regards,
Paul McKenzie
-
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!
-
Re: Some suggestion about .1file type, .2 file type etc
Just renaming the files does not work,
-
Re: Some suggestion about .1file type, .2 file type etc
Quote:
Originally Posted by
jenny_wui
Just renaming the files does not work,
Why?
-
Re: Some suggestion about .1file type, .2 file type etc
Quote:
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.
-
Re: Some suggestion about .1file type, .2 file type etc
Quote:
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
-
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.
-
Re: Some suggestion about .1file type, .2 file type etc
Quote:
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?
Quote:
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.
-
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.
-
Re: Some suggestion about .1file type, .2 file type etc
Quote:
Originally Posted by
jenny_wui
I could not attach my files as it the system does not allow this.
:mad:
Again:
Quote:
Originally Posted by
VictorN
Which "system" does not allow you to attach a file?
-
Re: Some suggestion about .1file type, .2 file type etc
Quote:
Originally Posted by
jenny_wui
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.
Nobody knows what a .1 file type is. You're hung up on that, but all it refers to is the extension. It's NOT a type.
-
Re: Some suggestion about .1file type, .2 file type etc
Codeguru only allows to attach jpg, png etc certain type of files that's what I meant by system does not allow attaching .img, .1 file etc. Any way, I have been able to use my images to construct polygonal model using VTK. Thanks every body for suggestion.
-
Re: Some suggestion about .1file type, .2 file type etc
Quote:
Originally Posted by
jenny_wui
Codeguru only allows to attach jpg, png etc certain type of files that's what I meant by system does not allow attaching .img, .1 file etc.
Your conclusion or your actions were wrong. In such a case you should have packed your file in a zip archive (as it was recommended in Announcements I referred to):
Quote:
What files do you really need to attach? Granted, it is a zip file that you will most likely attach;
Quote:
Originally Posted by
jenny_wui
Any way, I have been able to use my images to construct polygonal model using VTK. Thanks every body for suggestion.
Again, what is VTK?
-
Re: Some suggestion about .1file type, .2 file type etc
Yes, I understand I have to zip the files for attachment. VTK is visualization tool kit. I used vtkImageReader to construct surface.