Open 3D binary image in Matlab [closed] - image

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
I'm trying to open a .bin file in Matlab. The file is a xcat phantom of human body.
dims: 320,128,666
vxsize: 2.5,2.5,2.5
data type: 32-bit float, littleendian
And what I want is to open/see image of a specific slice of this file.

The XCAT phantom comes in raw format. Just use fopen, fread (with the precision flag set to the correct type) and fclose. Then you will likely need to reshape what fread returns.
Once you have the 3D image in MATLAB, then just slice it with indexes img(:,100,:)

Related

How can I detect skewed lines in images using Go? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 days ago.
Improve this question
I would like to use lines in captured photos to detect and correct image skew. How would I do this in Go? Most of the packages I've seen on github don't seem to support edge detection or some way to figure out a contiguous line or perhaps a couple markers like QR codes use.

is possible to "hash" a ssim from original image so i dont have to read the image again? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 5 months ago.
Improve this question
Currently I started working on a personal project where you will constantly receive images, similar or not. Every new image received do I need to loop through absolutely every other image already saved to compare ssim?
The answer is No you can't recover the image from SSIM and Yes you'd have to loop over all images for comparison.
However you may look at image compression to have faster evaluation of the SSIM.
Some example images would be welcome for a better answer.

How is automatic image optimization performed? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 1 year ago.
Improve this question
How is automatic image optimization performed? I'm looking for a general understanding or areas where I can read more into this, for example with the top image the bottom was automatically optimized using an image optimizing service within a few seconds.
In this example the saturation, brightness, hue and various other parameters are changed.
Original:
Optimized:
One possible method to produce a similar result is to convert to LAB colorspace, stretch the hisogram to full dynamic range separately for the L channel and the A and B channels (the same), then convert back to (s)RGB colorspace.
Input:
Output:

steganography image im image by using k-mean [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 1 year ago.
Improve this question
When I hide an image within a picture using the ( k-mean clustering) technique, I have a problem when scaling ( entropy major ) appears. I have the measurement ( 5.6) even though the size of the original image is ( 7.6) it appears to be very little and I do not know where the problem is

How to convert .mat file to NIFTI file with Matlab? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I have a .mat file, called m1.mat, the size of which is 40*40*20 double.
The values in the m1.mat file is either 0 or 1. I want to convert this .mat file to NIFTI format by using Matlab? How to do it?
This package from MathWorks FEX seems to be what you're looking for: http://www.mathworks.com/matlabcentral/fileexchange/8797-tools-for-nifti-and-analyze-image . This package was written by Jimmy Shen from the Rotman Research Institute at Baycrest, which is affiliated with the University of Toronto in Canada.
However, to be self-contained, I'll provide you with some sample code to get started using this package.
Assuming your 3D matrix is stored in a variable called im, you would first need to build a NIfTI structure from the 3D matrix, and then you'd save the NIfTI structure.
Something like this:
nii_img = make_nii(im);
save_nii(nii_img, 'm1.nii');

Resources