Answered
how to recoup a watermark image !
Try this. mat = imread('cameraman.tif'); % host image watermark = imread('cameraman.tif'); % payload image B2 = im2bw(water...

20 dagen ago | 1

| accepted

Answered
How to edit the font size and font name of y-labels while using the toolbox of addaxis?
It seems addaxis() is a bit in need of maintenance. The object handles are supposed to be stored in the userdata of the main ax...

20 dagen ago | 0

| accepted

Answered
Someone knows why this is happening? and it work a few days ago
You have a script called polar.m which is shadowing the builtin function polar(). Change the name of that script.

20 dagen ago | 1

| accepted

Answered
Save/Crop Figure (bmp) file without background
If you have a raster image displayed in a figure, don't save it from the figure. Use imwrite(). Doing this: A = imread('camer...

20 dagen ago | 1

| accepted

Answered
how can i bring 2 figures together?
If you look, the two x vectors are not the same. They differ in length by 1. You can reuse the latter x if you want. Either w...

20 dagen ago | 1

| accepted

Answered
RIO iteratively to create mask
This is a start im = imread("coloredChips.png"); numROI = 6; % create ROI objects and adjust them imshow(im); for k = 1:n...

21 dagen ago | 0

| accepted

Answered
How to project and fit a 2D path onto a 3D surface?
Something like N = 1000; nturns = 10; rmax = pi; zscale = 0.1; zoffset = 0.5; r = linspace(0,rmax,N); th = linspace(0,n...

21 dagen ago | 0

Answered
how can we increase a value until we get answer
This can be simplified, but let's start with the given approach. format long alpha = [510; 310; 78; 120; 350; 490; 53; 150...

21 dagen ago | 1

| accepted

Answered
How to read jpg in format CMYK?
If imread() can't read CMYK JPG files (as most things can't), then you'll obviously have to use something else to convert the im...

21 dagen ago | 0

Answered
How to extract data from a particular column of matrix?
Something like this should work: Y = A(20:3500,6);

22 dagen ago | 0

Answered
How can I multiply 2 signals?
Something like x = (-1 :.05 :1); % pay attention to scale and limits y = cos(2*pi*x).*exp(-5*x); % elementwise multiply with ....

23 dagen ago | 1

| accepted

Answered
How to remove narrow cavities and passages in a binary image
Simple morphological operations should suffice. Morphological closing removes background (zero-valued) features smaller than a ...

24 dagen ago | 2

Answered
How to do a cycle in the graph each time of plot
You can use mod() and simple masking to avoid the loop and conditional. K_t = 750; K_r = 250; b = 5; f_z = 0.1; theta =...

24 dagen ago | 1

Answered
How can I transform 'line' in Binary Image to function like y=x ? How can i find coordinates of line?
Raster Image Processing You can do this by just processing the raster image as has been already described, but you'll have to d...

24 dagen ago | 0

Answered
How can I iterate across the opposite diagonal?
You can also do: HM = fliplr(toeplitz([6 4 zeros(1,7)])) That said, it's unclear whether you're actually intending for the out...

24 dagen ago | 0

Answered
Create a plot with 2 left axes and 1 right axis
I don't know how it would be done with yyaxis (if possible) There are a number of old tools on the File Exchange that still wor...

25 dagen ago | 0

Answered
Evaluating maxima and minima of functions of two variables
How would you solve a minimization problem on paper? If you use the symbolic toolbox, it's basically the same. syms x y D...

25 dagen ago | 0

| accepted

Answered
Why image doesnt show correctly while reading a binary file?
The files are just literal text files with a .bin extension. The easy way to deal with that is just rename the file. If you wa...

25 dagen ago | 1

| accepted

Answered
To find Volume under Surface
Rearrange the implicit equation and observe symmetry and intersections to simplify the task. syms x y z0 = 0; z1 = x+y-1; ...

26 dagen ago | 0

| accepted

Answered
Inserting non zero element in diagonal position of a nonzero matrix
This isn't that much different than Benjamin's answer now that I look at it, but eh. I guess it's my own spin. This should wor...

26 dagen ago | 1

| accepted

Answered
I need help clarifying this part of the code
I'm going to assume that the intent is to simplify the operations and that X and Y are numeric column vectors whose values may n...

26 dagen ago | 0

Answered
Thinning: a sequence of four structuring elements, b set A, c to k thinning by each of the structuring elements, l result after convergence, m conversion to m connectivity
Let's assume that the image is confusingly backwards and that black is true and white is false. This is what the existing tools...

26 dagen ago | 0

Answered
One command to extract all the data
Just permute the array dimensions. sla = cat(3,(1:10).',(11:20).',(21:30).',(31:40).'); % smaller example array size(sla) % 4 ...

27 dagen ago | 0

| accepted

Answered
Merging two images with background
This should be a start fg = imread('bball.jpg'); bg = imread('lights.jpg'); % resize fg fg = imresize(fg,0.5); sfg = size...

27 dagen ago | 0

| accepted

Answered
Grouping minute data by day and assigning to a variable
I never really do much with datetime objects, so I'm sure that there are better ways. This is at least a start. This should gr...

27 dagen ago | 0

Answered
Create colormap and set it for a plot3(x,y,z,colormap_value)
That should be simple enough. Since you're plotting markers only, just use scatter3(). n = 50; t = linspace(0,pi,n); x = cos...

27 dagen ago | 0

Answered
which imshow is true?
Tools like imshow() and imwrite() expect image data to be scaled according to class-dependent limits. For floating-point image ...

28 dagen ago | 0

| accepted

Answered
mean filter special matrix apply to image. Salt and pepper noise
Normalize the filter sum and apply it with imfilter(). originalimg = imread('coins.png'); noisyimg = imnoise(originalimg,'salt...

29 dagen ago | 0

Answered
Preserve the label information when extracing boundaries from label matrix
You can do something like this: A = imread('blobs.png'); L = bwlabel(A); B = L.*boundarymask(L); % multiply [min(L(:)) m...

29 dagen ago | 0

Answered
Hello everyone , how can i remove the noise in the image without having effect on my RIO?
Here's a start. There's more that could be done, but don't assume this is universally applicable. A = rgb2gray(imread('https:/...

ongeveer een maand ago | 0

Load more