Tag Info

New answers tagged

5

Using the images in the duplicate question, grey = Import["hstbasils.jpg"]; colour = Import["St.-Basils-Cathedral-001.jpg"]; {grey, colour} transform = Last@FindGeometricTransform[colour, grey]; tcolour = ImageTransformation[colour, transform, DataRange -> Full, PlotRange -> Transpose@{{0, 0}, ImageDimensions@grey}]; ...


3

Here is one approach that does not respect object boundaries that uses HistogramTransform` in the HSB color space. For example, you can colorize the black and white image imgBW (according to the colors in the reference image img) using: img = ...


1

You could make a mask like this: i = Import@"http://i.stack.imgur.com/Gmpar.png"; mask = Closing[SelectComponents[MorphologicalBinarize@i,"Area",# > Times@@ImageDimensions@i/2 &], 2]; gs = ColorConvert[ImageMultiply[i, mask], "Grayscale"] And then (I still don't understand why you want to do it, but anyway), you could perform any arithmetic ...


3

I finally found a solution: mask = (* As seen above, copied from masking tool as a "Image *) pos = Position[mask // ImageData, 1]; spectra = Extract[img, pos];



Top 50 recent answers are included