Relative Content

Tag Archive for image-manipulation

Resizing an image with a non-integral conversion factor

I’m resizing an image based on a non-integral conversion factor (a bmp image, in fact). I understand how resizing works, just non with a decimal number. For instance, if the factor were 2, I would simply write the individual pixels twice to the output file. You can’t really write 1.5 pixels if the factor were, say, 1.5. Conceptually, how might this play out?

Annotate source code with diagrams as comments

I write a lot of (primarily c++ and javascript) code that touches upon computational geometry and graphics and those kinds of topics, so I have found that visual diagrams have been an indispensable part of the process of solving problems.

Extracting color profile information from JPEG files

I’m trying to look up info about reading JPEG’s color profile info and to my surprise there’s very little open specific how-to information on that regard, but rather lots of general explanation on what it is.

What is watershed in the context of image processing?

I am new to image processing using Python. Now I am learning OpenCV and the mahotas module in Python. Many functions in these modules are related to watershed of an image. I don’t know what watershed means for an image. Here is an example from the OpenCV documentation: http://docs.opencv.org/search.html?q=watershed&check_keywords=yes&area=default

BW 16b pixel , set Brighness/Contrast

I have tried the following way to change Brightness+Contrast of grayscale 16 bit pixels. It does NOT have wide range of dynamic range and not accurate. contrast is of type double.