Beantwortet
Fusing one rgb image with one grayscale image using imfuse function
The contribution of either image is reduced by half, because that's what a 50% opacity blend is. It's the simple arithmetic mea...

fast 4 Jahre vor | 0

| akzeptiert

Beantwortet
I wanna know how imadjust is working. The whole algorithm and its reference paper.
Barring all the validation and ancillary stuff, the core operations are very simple. You can open imadjust.m and see for yourse...

fast 4 Jahre vor | 0

Beantwortet
Geometric mean with logarithmically spaced data?
"how do I do this?" % three vectors: A = logspace(0,2,10); B = logspace(0,1.9,10); C = logspace(0.2,2,10); % put them in ...

fast 4 Jahre vor | 0

| akzeptiert

Beantwortet
Meaning of 'offset' returned by imageinfo
imageinfo() is just a convenience tool for what imfinfo provides. That said, the metadata that's available depends on the file ...

fast 4 Jahre vor | 0

| akzeptiert

Beantwortet
Sum of products of odd index numbers (sum of content)
This is my guess. A = [1 2 3 ; 4 5 6; 7 8 9]; % assuming "index" means row/col subscripts sum(A(1:2:size(A,1),1:2:size(A,2)...

fast 4 Jahre vor | 0

Beantwortet
Converting a 3d array into a 4d array
For what it's worth, MIMT imdetile() makes this sort of thing extremely easy to write. It's just one line. % image is 876x1314...

fast 4 Jahre vor | 0

Beantwortet
I do not know how to make this condition on the hue work
You don't need any loops. You could just do: % no loops necessary mask = Hue>huev+0.1 | Hue<huev-0.1; imghsv(repmat(mask,[1 ...

fast 4 Jahre vor | 0

Beantwortet
Help needed with regular expressions
I'm sure someone can be more precise with this explanation, but here goes: [G] any one of the characters within the square brac...

fast 4 Jahre vor | 1

Beantwortet
Dilatation and Erosion as custom function for signal processing
The loop part can be cleaned up, but a big part of why the output looks messed up starts here: output = zeros(length(inputSigna...

fast 4 Jahre vor | 1

| akzeptiert

Beantwortet
I want to get result image and set to variable from output figure matlab
That depends on what exactly you mean by "image". If you want to capture the axes and its contents (plots, images, annotation...

fast 4 Jahre vor | 0

Beantwortet
How to manipulate/change hue, saturation, and value of an image all together?
If you like reinventing the wheel every single time and only want to use HSV, feel free. There are advantages in terms of flexi...

etwa 4 Jahre vor | 1

Beantwortet
How do I overlay a contour plot for a ROI onto a grayscale image?
I'm not really sure what you're asking for. It might look like you're trying to restrict the domain of the contourf() plot, but...

etwa 4 Jahre vor | 0

| akzeptiert

Beantwortet
Varying vector from [0 100] to [100 0]
Maybe something like this? npoints = 11; v = linspace(0,100,npoints); for p = 1:npoints thisv = [v(p) v(npoints-(p-1))];...

etwa 4 Jahre vor | 0

| akzeptiert

Beantwortet
how to remove the zeros inside a 3D matrix?
Assuming that each dim3 vector contains either 2 or 0 nonzero elements: % an example array A = cat(3,[0 0 0; 0 1 0; 5 0 0], .....

etwa 4 Jahre vor | 0

Beantwortet
Changing contrast of the image
To preface, I have no idea how PS actually calculates anything internally, and I don't have the original image, so this is not n...

etwa 4 Jahre vor | 0

Beantwortet
Automatic Image Level Adjustment
A simple linear "Levels" type adjustment tool is exactly what imadjust() provides. In the Photoshop UI, you have five parameter...

etwa 4 Jahre vor | 0

Beantwortet
How can I convert a black and white positive image into negative.
Either use imcomplement(), or do simple additive inversion. https://www.mathworks.com/matlabcentral/answers/251519-i-need-neg...

etwa 4 Jahre vor | 0

Beantwortet
How to save images!?
I have no idea what this code is, but the images are grayscale. When you isolate one color channel, that's all it is. It's a s...

etwa 4 Jahre vor | 0

Beantwortet
How to enhance underwater image?
MIMT has a simple tool based on this paper. A = imread('image.jpeg'); B = uwredcomp(A); % using defaults imshow([A;B]) ...

etwa 4 Jahre vor | 0

Beantwortet
how can i calculate brightness,contrast,hue and saturation of a image?
@Jurgen's answer recommending HSV is probably as appropriate as the vague question warrants. Still, since it seems people are s...

etwa 4 Jahre vor | 0

Beantwortet
how to plot multiple graph on top of images together?
This is an oversimplified example: % a picture comes from somewhere A = imread('peppers.png'); % some data comes from somew...

etwa 4 Jahre vor | 0

Beantwortet
How can I remove unwanted area by mask?
Just get the file names somehow and read/process/write the files in a loop. This is one example based on simple pattern matchin...

etwa 4 Jahre vor | 0

| akzeptiert

Beantwortet
Quickest way to join images preserving each colormap in MATLAB
Read the images into a cell array in the loop. If the images are indexed color images, then convert them to RGB using ind2rgb() ...

etwa 4 Jahre vor | 0

| akzeptiert

Beantwortet
Sum values from one column vector based on another column vector
Assuming A and B are different variable names with the same length: A = [1; 2; 4; 1]; B = [34; 78; 3; 28]; mysum = sum(B(A==1...

etwa 4 Jahre vor | 0

| akzeptiert

Beantwortet
Right-side text limit working erratically while changing the font
I played around with this in R2019b. Bear in mind that there are two relevant prefs here. The RH text limit is just an indicat...

etwa 4 Jahre vor | 1

| akzeptiert

Beantwortet
use of strcmp with two conditions
Just a guess, since I have no idea what your array content or size are. strcmp() takes two arguments, but you're feeding it t...

etwa 4 Jahre vor | 1

Beantwortet
webread not returning full html contents
Webread() just reads the page. It doesn't execute all the tons of scripts that are used to build the DOM. https://www.mathwork...

etwa 4 Jahre vor | 0

Beantwortet
imshow breaks after changing uiaxes limits
You're specifying that the axes limits should be outside of the image region. currentimage = imread('cameraman.tif'); hi = i...

etwa 4 Jahre vor | 0

| akzeptiert

Beantwortet
How can i fill NaN values on unwanted region of an image?
IPT regionfill() can do inpainting based on a logical mask. You could use isnan() to derive the mask from the image. Alterna...

etwa 4 Jahre vor | 1

Beantwortet
Openfig+hold on
openfig opens figures hold toggles properties of axes It doesn't make sense to try to put a figure inside an axes. Perhaps yo...

etwa 4 Jahre vor | 1

Mehr laden